Skip to content
Snippets Groups Projects
Commit a60ccdf9 authored by Yume's avatar Yume
Browse files

week08

parent b670513a
No related branches found
No related tags found
No related merge requests found
Pipeline #181957 passed
......@@ -70,7 +70,14 @@ And here it goes!
### **Program with C language**
Then I tried to program the hello board I made in Electronics design week:
![](../images/week06/week06-26.png)
#### **Code**
I wanted to make the LED blinking to the alphabet thats being input based on the alphabet's binary code. My strategy was to combine the echo.hello [code](http://academy.cba.mit.edu/classes/embedded_programming/hello.ftdi.44.echo.c) from FabAcademy class with an LED blink [code](http://fabacademy.org/2019/labs/kamakura/students/kae-nagano/images/week09/Led1.c) by Kae Nagano from FabAcademy2019.
To understand where to modify on the echo.hello code, I received a helpful recitation from Kae-san.
......
......@@ -14,7 +14,7 @@ I made Elmo - the drunken conductor.
The idea is to make Elmo dancing to the rhythm.
## **Machine building**
## **Machine prototyping**
I made the structure using LEGO parts like this. The structure is mainly consist of linkages.
......@@ -453,28 +453,142 @@ I plugged it to a charger that supplies 2.0A and it successfully powered 2 servo
## **Overall**
## **Prototype outcome**
Elmo's arms and legs are connected to the parts with rubber band.
The batton is also attached to the hand using a rubber band.
This dude deserves a hero shot :)
<video width="600" controls>
<source src="../../images/week17/elmo.mp4" type="video/mp4">
</video>
## **(Actual) Machine building**
When I started to have lab access again, I decided to build a proper machine instead of taping Elmo onto bottles for stability and reproducibility.
While still using 2 servo motors to control each side of the Elmo body, I decided to use a gear system instead of a linkage system.
![](../images/week17/week17-14.jpg)
On each side there will be 2 gears. 1 gear is connected to the servo motor, and the other gear would have opposite movement when the 1st gear moves.
### **Design**
I firstly used Fusion360 to do the design work.
I refered to this [video](https://www.youtube.com/watch?v=Z0cY8L8te6o) on how to make gears and simulate the movement.
To make a gear, I opened Scripts and Add-Ins in Tools > ADD-INS.
In there I chose SpurGear ran with Python. (It seems that either Python or C++ would work the same.)
![](../images/week17/week17-15.png)
I made 2 same gears with:
- Pressure angle 20
- Module 3.00
- Number of teeth 13
- Gear thickness 3mm
- Hole diameter 3.2mm
Once these parameters are set, it tells you that the pitch diameter would be 39mm.
And I manually dragged to place the 2 gears so their pitch circle touches each other.
![](../images/week17/week17-16.png)
Then I sketched circles that align with the hole of each gear, extruded them to make cylindars as axis.
![](../images/week17/week17-17.png)
To simulate the movement of gear spinning, I added joint (ASSEMBLE > joints) with the hole of the gear, and the circular surface of the cylindar as faces.
![](../images/week17/week17-18.png)
After setting joints on both gears, I used motion link (ASSEMBLE > motion links) to link the movements of the 2 gears.
I selected the joints as rev 1 and rev 2.
![](../images/week17/week17-19.png)
<iframe src="https://player.vimeo.com/video/445805077" width="600" height="600" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
I exported the sketch of gears as DXF.
But when I opened it in Inkscape...
![](../images/week17/week17-20.png)
... :(
Inkscape couldn't sketch the curves... It seems that it works with Illustrator well, but not Inkscape.
So I made vector file for gears using this webpage based [Involute Spur Gear Builder](http://hessmer.org/gears/InvoluteSpurGearBuilder.html).
I refered to the parameters I set on Fusion 360.
Here are the parameters I changed:
- Pressure Angle 20
- Wheel 1 tooth count 13
- Wheel 1 hole diameter 3.2
- Show Wheel 1 only
Circular pitch is calculated automatically based on the parameter input.
![](../images/week17/week17-21.png)
After hitting "Update", I hit "generate DXF" to export the DXF file.
So I was able to open it in Inkscape.
I added 2 holes with diameter of 3.2mm so I can screw the gear onto the servo motor.
![](../images/week17/week17-22.png)
I saved it as .svg file and cut 4 gears.
The servo motor comes with accessories including a plate that fits onto the servo. I opened 2 holes on the plate with hand drill to align with the holes on the gear, and screwed the gear onto it.
I put a screw in the middle to screw the gear onto the axis of the motor too.
![](../images/week17/week17-23.png)
Great thanks to Homma-san for all the help regarding network,
Oguri-san for all the advices on machine building,
Yamamoto-san for the advices on electronics as always.
## **Files**
- servo motor under MQTT communication .ino [file](../projects/materials/mqtt.servo.ino)
\ No newline at end of file
......@@ -17,6 +17,23 @@ Complete your final project, tracking your progress:
## **What tasks have been completed, and what tasks remain?**
Since I'm documenting this after my final presentation, here are the tasks that I have completed:
- Fabricate the distillation tower.
- Fabricate a peristaltic pump.
- Fabricate a control panel.
- Figure out the power supply since DC motor and solenoid pump requires 6V and 12V power.
- Produce a PCB that controls the whole system.
- Program the system.
- Integrate all the parts to ensure safety, and rather neat wiring.
## **What's working? What's not?**
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 793.70081 1122.5197"
id="svg24"
version="1.1"
height="1122.5197"
width="793.70081"
sodipodi:docname="InvoluteGear_1 (1).svg"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1440"
inkscape:window-height="814"
id="namedview18"
showgrid="false"
inkscape:zoom="0.84096523"
inkscape:cx="287.58905"
inkscape:cy="751.5174"
inkscape:window-x="0"
inkscape:window-y="1"
inkscape:window-maximized="1"
inkscape:current-layer="g20" />
<metadata
id="metadata28">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<desc
id="desc2">/Users/yumexu/Downloads/InvoluteGear_1 (1).dxf - scale = 1.000000, origin = (0.000000, 0.000000), method = auto</desc>
<defs
id="defs14">
<marker
style="overflow:visible"
refY="0"
refX="0"
orient="auto"
id="DistanceX">
<path
id="path4"
style="stroke:#000000;stroke-width:0.5"
d="M 3,-3 -3,3 M 0,-5 V 5" />
</marker>
<pattern
y="0"
x="0"
width="8"
patternUnits="userSpaceOnUse"
id="Hatch"
height="8">
<path
id="path7"
stroke-width="0.25"
stroke="#000000"
linecap="square"
d="M8 4 l-4,4" />
<path
id="path9"
stroke-width="0.25"
stroke="#000000"
linecap="square"
d="M6 2 l-4,4" />
<path
id="path11"
stroke-width="0.25"
stroke="#000000"
linecap="square"
d="M4 0 l-4,4" />
</pattern>
</defs>
<g
id="g20"
style="stroke-width:0.8;stroke-miterlimit:4;stroke-dasharray:none">
<path
id="path16"
style="fill:none;stroke:#ed0000;stroke-width:0.37795276;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 410.88664,509.0024 2.11934,-3.35147 1.55428,-3.64803 -1.51177,-2.6634 -3.83463,-4.7675 -3.20083,-2.87787 -2.09506,-1.34644 -0.62038,-0.26971 -1.11487,-0.28348 -3.67538,-1.79909 -1.45305,-2.05884 2.40622,-9.76241 2.2434,-1.14775 4.09047,0.11502 1.1189,0.2671 0.67467,0.0495 2.4808,-0.21859 4.17161,-1.06072 5.61096,-2.43938 2.57635,-1.65576 0.31908,-3.95249 -0.31908,-3.95248 -2.57635,-1.65576 -5.61096,-2.43938 -4.17161,-1.06072 -2.4808,-0.21859 -0.67467,0.0495 -1.1189,0.2671 -4.09047,0.11502 -2.2434,-1.14775 -2.40622,-9.76241 1.45305,-2.05884 3.67538,-1.79909 1.11487,-0.28348 0.62038,-0.26971 2.09506,-1.34644 3.20083,-2.87787 3.83463,-4.7675 1.51177,-2.6634 -1.55428,-3.64803 -2.11934,-3.35147 -3.05072,-0.26881 -6.10189,0.44758 -4.18672,0.99942 -2.29823,0.95933 -0.57439,0.35735 -0.86661,0.75648 -3.56848,2.00278 -2.51982,0.0263 -6.66742,-7.52596 0.32983,-2.49828 2.41831,-3.30106 0.85542,-0.76911 0.42398,-0.52712 1.22936,-2.16584 1.49679,-4.03572 1.17982,-6.00346 0.10087,-3.06088 -3.07158,-2.50786 -3.43408,-1.98267 -2.8262,1.17972 -5.19496,3.232 -3.2427,2.83061 -1.58916,1.91749 -0.34252,0.58335 -0.4158,1.07257 -2.22899,3.43172 -2.21897,1.1943 -9.4012,-3.56541 -0.86896,-2.36539 0.60723,-4.04678 0.40001,-1.07855 0.13045,-0.66378 0.082,-2.48907 -0.55015,-4.26904 -1.74527,-5.86409 -1.33314,-2.75715 -3.88521,-0.79317 -3.96213,-0.15967 -1.95423,2.35799 -3.09792,5.27602 -1.55582,4.01334 -0.51603,2.43636 -0.0322,0.67571 0.13028,1.14294 -0.37887,4.07451 -1.40979,2.0887 -9.98127,1.21195 -1.86868,-1.69063 -1.34296,-3.86544 -0.14703,-1.1409 -0.19297,-0.64837 -1.08409,-2.24208 -2.47107,-3.52438 -4.27053,-4.38133 -2.46175,-1.82179 -3.80878,1.10323 -3.58249,1.69991 -0.63458,2.99607 -0.29118,6.11136 0.48748,4.27666 0.67531,2.3971 0.28552,0.61328 0.6465,0.95148 1.55805,3.78386 -0.27764,2.50462 -8.27476,5.71165 -2.44031,-0.62855 -2.98549,-2.79858 -0.66039,-0.94189 -0.47218,-0.48443 -2.00186,-1.48145 -3.82588,-1.97233 -5.81747,-1.89486 -3.0264,-0.46908 -2.85982,2.74689 -2.38215,3.17006 0.83046,2.9478 2.58226,5.54665 2.4191,3.56025 1.71196,1.8087 0.53781,0.41034 1.01462,0.54205 3.13803,2.62639 0.91812,2.34675 -4.67259,8.90289 -2.45289,0.57751 -3.94408,-1.09059 -1.02247,-0.5271 -0.64322,-0.20951 -2.46103,-0.38145 -4.30423,0.0316 -6.0317,1.02571 -2.89774,0.99108 -1.2557,3.76127 -0.63609,3.914 2.10524,2.22421 4.86414,3.71128 3.79654,2.02823 2.35641,0.80594 0.6669,0.11341 1.15031,0.008 3.99913,0.86724 1.90354,1.65127 v 10.05458 l -1.90354,1.65128 -3.99913,0.86724 -1.15031,0.008 -0.6669,0.11341 -2.35641,0.80594 -3.79654,2.02823 -4.86414,3.71128 -2.10524,2.22421 0.63609,3.914 1.2557,3.76127 2.89774,0.99108 6.0317,1.02571 4.30423,0.0316 2.46103,-0.38145 0.64322,-0.20951 1.02247,-0.5271 3.94408,-1.09059 2.45289,0.57751 4.67259,8.90289 -0.91812,2.34675 -3.13803,2.62639 -1.01462,0.54205 -0.53781,0.41034 -1.71196,1.8087 -2.4191,3.56024 -2.58226,5.54666 -0.83046,2.94779 2.38215,3.17007 2.85982,2.74689 3.0264,-0.46908 5.81747,-1.89486 3.82588,-1.97233 2.00186,-1.48145 0.47218,-0.48443 0.66039,-0.9419 2.98549,-2.79857 2.44031,-0.62855 8.27476,5.71165 0.27764,2.50462 -1.55805,3.78386 -0.6465,0.95148 -0.28552,0.61328 -0.67531,2.3971 -0.48748,4.27666 0.29118,6.11136 0.63458,2.99607 3.58249,1.69991 3.80878,1.10323 2.46175,-1.82179 4.27053,-4.38133 2.47107,-3.52438 1.08409,-2.24208 0.19297,-0.64837 0.14703,-1.1409 1.34296,-3.86544 1.86868,-1.69063 9.98127,1.21195 1.40979,2.0887 0.37887,4.07451 -0.13028,1.14294 0.0322,0.67571 0.51603,2.43636 1.55582,4.01334 3.09792,5.27602 1.95423,2.35799 3.96213,-0.15967 3.88521,-0.79317 1.33314,-2.75715 1.74527,-5.86409 0.55015,-4.26905 -0.082,-2.48906 -0.13045,-0.66378 -0.40001,-1.07855 -0.60723,-4.04678 0.86896,-2.36539 9.4012,-3.56541 2.21897,1.1943 2.22899,3.43172 0.4158,1.07257 0.34252,0.58335 1.58916,1.91749 3.2427,2.83061 5.19496,3.232 2.8262,1.17972 3.43408,-1.98267 3.07158,-2.50787 -0.10087,-3.06087 -1.17982,-6.00346 -1.49679,-4.03572 -1.22936,-2.16584 -0.42398,-0.52713 -0.85542,-0.76911 -2.41831,-3.30105 -0.32983,-2.49828 6.66742,-7.52596 2.51982,0.0263 3.56848,2.00278 0.86661,0.75648 0.57439,0.35735 2.29823,0.95933 4.18672,0.99942 6.10189,0.44758 3.05072,-0.26881 z" />
<path
id="path18"
style="fill:none;stroke:#ed0000;stroke-width:0.37795276;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 338.96448,472.04617 -1.2573,0.13215 -1.25729,-0.13215 -1.20234,-0.39066 -1.09485,-0.63211 -0.93949,-0.84593 -0.74309,-1.02277 -0.51421,-1.15492 -0.26284,-1.2366 v -1.26421 l 0.26284,-1.2366 0.51421,-1.15492 0.74309,-1.02277 0.93949,-0.84593 1.09485,-0.63211 1.20234,-0.39066 1.25729,-0.13215 1.2573,0.13215 1.20234,0.39066 1.09484,0.63211 0.9395,0.84593 0.74309,1.02277 0.5142,1.15492 0.26285,1.2366 v 1.26421 l -0.26285,1.2366 -0.5142,1.15492 -0.74309,1.02277 -0.9395,0.84593 -1.09484,0.63211 z" />
<circle
r="6.0472431"
cy="465.92035"
cx="386.67557"
id="path4533"
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#ed0000;stroke-width:0.37795276;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill" />
<circle
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#ed0000;stroke-width:0.37795276;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill"
id="circle5114"
cx="288.48895"
cy="466.25369"
r="6.0472431" />
</g>
<g
id="g22" />
</svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment