...
 
Commits (4)
......@@ -148,10 +148,26 @@
<span class="image main"><img src="../images/final/pcbs.jpg" alt="pcbs" /></span>
<p></p>
<span class="image main"><img src="../images/final/pcb-hero.jpg" alt="pcb-hero" /></span>
<p> <br>Here are c codes and make files:
<p> <br>Here are the c codes and make files:
<br><a href="../cad files/final/sun.44.zip">sun.44.zip</a> For light sensing
<br><a href="../cad files/final/dc.44.zip">dc.44.zip</a> For DC driver
</p>
<h2>BOM</h2>
<p><b>Total 34191AMD 71.5$</b>
<br>2 DC Motor Jameco 253471 15296AMD (32$)
<br>1 sheet of 150x150x10mm polished plywood 5800AMD (12.1$)
<br>2 M6x90mm bolts(400AMD)+ 10 M6x35mm bolts(1000AMD) + 13 M6 nuts(500AMD) + 23 M5x20mm bolts(2300AMD) + 31 M5 nuts(465AMD)=4665AMD (9.7$)
<br>4 thrust ball bearings 51105 3000AMD (6.2$)
<br>2 ATtiny44 microcontrollers 1400AMD (2.9$)
<br>2 LM3480IM3-5.0v regulator 800AMD (1.7$)
<br>2 A4953 full bridge 760AMD (1.6$)
<br>2m copper cable 500amd (1.1$)
<br>9 smd resistors(45AMD) + 6 smd capacitors(30AMD) + 4 LDR 5528 Q5(400AMD)=475AMD (1$)
<br>1m ribbon cable 478AMD (1$)
<br>2 696ZZ ball bearings 300AMD (0.6$)
<br>1 FR1 PCB board 717AMD 1.5$
<br>5 female 2x2 2.54mm + 5 male 2x2 2.54mm + 2 female 2x3 2.54mm + 3 male 2x3 2.54mm = ?
</p>
<!-- <a href=""></a> -->
......
......@@ -37,41 +37,58 @@
<!-- <a href=""></a> -->
<h2>Introduction --- Ներածություն</h2>
<p>For this week we had to:
<br>Propose a final project masterpiece that integrates the range of units covered,
<br>Propose a final project masterpiece that integrates the range of units covered,
answering:
<br>What will it do?
<br>Who's done what beforehand?
<br>What will you design?
<br>What materials and components will be used?
<br>Where will come from?
<br>How much will they cost?
<br>What parts and systems will be made?
<br>What processes will be used?
<br>What questions need to be answered?
<br>How will it be evaluated?
<br>What will it do?
<br>Who's done what beforehand?
<br>What will you design?
<br>What materials and components will be used?
<br>Where will come from?
<br>How much will they cost?
<br>What parts and systems will be made?
<br>What processes will be used?
<br>What questions need to be answered?
<br>How will it be evaluated?
Your project should incorporate 2D and 3D design,
additive and subtractive fabrication processes,
electronics design and production,
embedded microcontroller interfacing and programming,
system integration and packaging
additive and subtractive fabrication processes,
electronics design and production,
embedded microcontroller interfacing and programming,
system integration and packaging
Where possible, you should make rather than buy
the parts of your project
Projects can be separate or joint, but need to show individual
mastery of the skills, and be independently operable (individual assignment)
</p>
the parts of your project
Projects can be separate or joint, but need to show individual
mastery of the skills, and be independently operable (individual assignment)
</p>
<h2>What will it do?</h2>
<p>My final project will be a 2 axis solar tracking device. It will track the movement of the sun with two axis. This
kind of systems are used to increase solar energy harvesting. It is <a href="https://en.wikipedia.org/wiki/Solar_tracker">estimated</a>
that solar tracking can increase power output up to 30%.</p>
<h2>Who's done what beforehand?</h2>
<p>There are many types of solar trackers out there.
<br>FabAcademy 2013:<br>
FabLab Barcelona Mathew Owen <a href="http://fabacademy.org/archives/2013/students/owen.mathew/final-project.html">low cost solar tracker</a>
<br>FabAcademy 2016:<br>
GreenFabLab machine building week <a href="http://archive.fabacademy.org/archives/2016/greenfablab/students/365/exercise10.html">Dual Axis Solar Tracker</a>.
<br>FabAcademy 2017:<br>
FabLab Barcelona machine building week <a href="http://archive.fabacademy.org/archives/2017/fablabbcn/students/51/w11.html">solar tracker</a>.
<br>FabLab Israel Ilia Feldshtein <a href="http://archive.fabacademy.org/archives/2017/fablabisrael/students/104/final_result.html">solar tracking cooker</a>
</p>
<h2>What will you design?</h2>
<p>My design will have worm gear transmissions for both axis in order to lock the system during winds and while motors are idle and to maximise the load it can handle.
I will also put two pairs of thrust bearings one pair on each axle to minimise the wear and enable smooth movement.
</p>
<p>
<p>
Useful links
<br><a href="https://www.nongnu.org/avrdude/user-manual/avrdude_4.html">Avrdude option descriptions</a>
<br><a href="https://helpmanual.io/help/avrdude/">Avrdude help</a>
<br><a href="http://fabacademy.org/2019/labs/irbid/students/tarek-asfour/week11.html">Tarek Asfour week11</a>
</p>
<!-- <a href=""></a> -->
</section>
</div>
</div>
</p>
<!-- <a href=""></a> -->
</section>
</div>
</div>
</div>
</div>
......
......@@ -166,8 +166,8 @@
alt="freecad-parametric-comb-1" /></span>
<p>I extruded the sketch to illustrate the comb in 3d and finally export it to <b>.svg</b>
</p>
<span class="image main"><img src="../images/week4/freecad-parametric-comb-2.jpg"
alt="freecad-parametric-comb-2" /></span>
<span class="image main"><img src="../images/week4/parametric-comb3d.jpg"
alt="parametric-comb3d" /></span>
<p>After measuring the media thickness I did the final cut.</p>
<span class="image main"><img src="../images/week4/tolerance-test.jpg"
alt="tolerance-test" /></span>
......
This diff is collapsed.
......@@ -21,17 +21,10 @@
#define pin_test(pins,pin) (pins & pin) // test for port pin
#define bit_test(byte,bit) (byte & (1 << bit)) // test for bit set
#define on_delay() _delay_us(3) // PWM on time
#define fast_off_delay() _delay_us(0) // PWM fast off time
#define medium_off_delay() _delay_us(3) // PWM medium off time
#define slow_off_delay() _delay_us(5) // PWM slow off time
#define PWM_count 20000 // number of PWM cycles
#define cycle_count 5 // number of speed cycles
#define input_port PORTB
#define input_direction DDRB
#define input_pino (1 << PB0)//button
#define input_pini (1 << PB1)//button
#define input_pino (1 << PB0)
#define input_pini (1 << PB1)
#define input_pins PINB
#define bridge_port PORTA // H-bridge port
......@@ -49,7 +42,7 @@ int main(void) {
//
// set clock divider to /1
//
CLKPR = (1 << CLKPCE);
CLKPR = (1 << CLKPCE); // enable a change to CLKPR
CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0);
//
// initialize H-bridge pins
......@@ -58,6 +51,10 @@ int main(void) {
output(bridge_direction, IN1);
clear(bridge_port, IN2);
output(bridge_direction, IN2);
clear(bridge_port, IN3);
output(bridge_direction, IN3);
clear(bridge_port, IN4);
output(bridge_direction, IN4);
set(input_port, input_pino); // turn on pull-up
set(input_port, input_pini);
......
......@@ -37,7 +37,7 @@ void initADCul()
(0 << ADLAR) | // left shift result
(0 << REFS1) | // Sets ref. voltage to VCC, bit 1
(0 << REFS0) | // Sets ref. voltage to VCC, bit 0
(0 << MUX3) | // use ADC1 for input (PA0), MUX bit 3
(0 << MUX3) | // use ADC0 for input (PA0), MUX bit 3
(0 << MUX2) |
(0 << MUX1) |
(0 << MUX0);
......@@ -54,7 +54,7 @@ void initADCur()
(0 << ADLAR) | // left shift result
(0 << REFS1) | // Sets ref. voltage to VCC, bit 1
(0 << REFS0) | // Sets ref. voltage to VCC, bit 0
(0 << MUX3) | // use ADC2 for input (PA1), MUX bit 3
(0 << MUX3) | // use ADC1 for input (PA1), MUX bit 3
(0 << MUX2) |
(0 << MUX1) |
(1 << MUX0);
......@@ -71,7 +71,7 @@ void initADCdl()
(0 << ADLAR) | // left shift result
(0 << REFS1) | // Sets ref. voltage to VCC, bit 1
(0 << REFS0) | // Sets ref. voltage to VCC, bit 0
(0 << MUX3) | // use ADC2 for input (PA3), MUX bit 3
(0 << MUX3) | // use ADC3 for input (PA3), MUX bit 3
(0 << MUX2) |
(1 << MUX1) |
(1 << MUX0);
......@@ -88,7 +88,7 @@ void initADCdr()
(0 << ADLAR) | // left shift result
(0 << REFS1) | // Sets ref. voltage to VCC, bit 1
(0 << REFS0) | // Sets ref. voltage to VCC, bit 0
(0 << MUX3) | // use ADC2 for input (PA4), MUX bit 3
(0 << MUX3) | // use ADC4 for input (PA4), MUX bit 3
(1 << MUX2) |
(0 << MUX1) |
(0 << MUX0);
......