tag:blogger.com,1999:blog-47812780987454930512024-03-14T00:30:27.512-07:00Metal Film ResistorTSJWang's blog on his electronic projects. Hopefully you find this helpful!tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-4781278098745493051.post-34264731511331965752017-03-09T11:37:00.003-08:002017-03-09T11:37:44.137-08:00Inside 1980s Sanyo Radio Alarm Clock<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
When my Dad was in college in Boston, there was a nearby RadioShack where he got all his parts.</div>
<div class="separator" style="clear: both; text-align: left;">
I believe this is one of those purchase from said RadioShack. </div>
<div class="separator" style="clear: both; text-align: left;">
This alarm clock has been in my room (used by my brother) for as long as I can remember. I brought it to college with me as a desk clock. I thought it was a beautiful design, and I liked looking at it when I was working.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-0tSpm6bEmB0/WMGCu8nOogI/AAAAAAAAGEE/3RSUxPmi1-0BDaO8ZVG7em4bSe04PjR9ACLcB/s1600/IMG_20170216_134551.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="360" src="https://3.bp.blogspot.com/-0tSpm6bEmB0/WMGCu8nOogI/AAAAAAAAGEE/3RSUxPmi1-0BDaO8ZVG7em4bSe04PjR9ACLcB/s640/IMG_20170216_134551.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Cosmo Model CR 2001A</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This past December I believe there was a power surge while we were on break. I came back to a broken hard drive and a busted alarm clock. I attempted to fix it. Here are some pictures of the insides for anyone interested!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-o2U3PlpyTL4/WMGCu73g9MI/AAAAAAAAGEI/K86tyn_haxQQJeu2hCogQ3fjmN2dp1JHQCLcB/s1600/IMG_20170216_134530.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-o2U3PlpyTL4/WMGCu73g9MI/AAAAAAAAGEI/K86tyn_haxQQJeu2hCogQ3fjmN2dp1JHQCLcB/s320/IMG_20170216_134530.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There's a 9v battery in case of power outages to keep time.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-tQSX92-e-vI/WMGCuzDvn3I/AAAAAAAAGEA/3xcQ6J3fT1sDMESG9IJuzsHg-XKd54pzACLcB/s1600/IMG_20170216_134534.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-tQSX92-e-vI/WMGCuzDvn3I/AAAAAAAAGEA/3xcQ6J3fT1sDMESG9IJuzsHg-XKd54pzACLcB/s320/IMG_20170216_134534.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
A warning that I will not heed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-wSq0Dt5ZigE/WMGCvEutltI/AAAAAAAAGEM/jrzZhztBsgIZkntqjZFgCjcM3gvmVSWtwCLcB/s1600/IMG_20170216_134748.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-wSq0Dt5ZigE/WMGCvEutltI/AAAAAAAAGEM/jrzZhztBsgIZkntqjZFgCjcM3gvmVSWtwCLcB/s640/IMG_20170216_134748.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Taking off the front cover</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-zu3zBDDBJkA/WMGCvACfhHI/AAAAAAAAGEU/K82iC4e58w87oO21bsp3_Nq5SzClBxJFgCLcB/s1600/IMG_20170216_134754.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-zu3zBDDBJkA/WMGCvACfhHI/AAAAAAAAGEU/K82iC4e58w87oO21bsp3_Nq5SzClBxJFgCLcB/s640/IMG_20170216_134754.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-LQung5qZ_rA/WMGCvJTwJKI/AAAAAAAAGEQ/4xNcg6c3kjsh_2OpI4mtWky82BLqmvLyACLcB/s1600/IMG_20170216_135254.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-LQung5qZ_rA/WMGCvJTwJKI/AAAAAAAAGEQ/4xNcg6c3kjsh_2OpI4mtWky82BLqmvLyACLcB/s640/IMG_20170216_135254.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I was stunned when I opened this up. It didn't hit me that in the 1980s, electronics were still very new.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Q0qV6ow6q1o/WMGCvV8wRrI/AAAAAAAAGEY/k_rZl3NqruIKvc9_ohyKoUms5W8utXu0ACLcB/s1600/IMG_20170216_135307.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-Q0qV6ow6q1o/WMGCvV8wRrI/AAAAAAAAGEY/k_rZl3NqruIKvc9_ohyKoUms5W8utXu0ACLcB/s640/IMG_20170216_135307.jpg" width="360" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The entire interior was very dusty and fragile.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-44ijYCyTH1c/WMGCvVBrxlI/AAAAAAAAGEc/JzjQqKtsHiAwyGCOzFsHTjlXbotwgoaoQCLcB/s1600/IMG_20170216_135316.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://1.bp.blogspot.com/-44ijYCyTH1c/WMGCvVBrxlI/AAAAAAAAGEc/JzjQqKtsHiAwyGCOzFsHTjlXbotwgoaoQCLcB/s640/IMG_20170216_135316.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
A better look inside. The speaker is on the top, the clock circuit is on the left, and the AM/FM radio is on the right.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-7jOq_hcMP1M/WMGCvdaM0SI/AAAAAAAAGEg/sJ0UiICoyVcNEfW4du4RkaZd6Mv0wXMwACLcB/s1600/IMG_20170216_135332.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-7jOq_hcMP1M/WMGCvdaM0SI/AAAAAAAAGEg/sJ0UiICoyVcNEfW4du4RkaZd6Mv0wXMwACLcB/s400/IMG_20170216_135332.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-lQAoBPDd_ok/WMGCvS1r_hI/AAAAAAAAGEo/2ftZ7JNOllU061syULgCgxQya3GOaVpCgCLcB/s1600/IMG_20170216_135506.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-lQAoBPDd_ok/WMGCvS1r_hI/AAAAAAAAGEo/2ftZ7JNOllU061syULgCgxQya3GOaVpCgCLcB/s400/IMG_20170216_135506.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The circuit board for the switches and buttons is screwed to the top cover.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-zWMsTqa22SA/WMGCvqGTqyI/AAAAAAAAGEk/GY-DnJzKp0gQXaSLLf1XcmYRwntYfusfwCLcB/s1600/IMG_20170216_135512.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://2.bp.blogspot.com/-zWMsTqa22SA/WMGCvqGTqyI/AAAAAAAAGEk/GY-DnJzKp0gQXaSLLf1XcmYRwntYfusfwCLcB/s640/IMG_20170216_135512.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The circuit boards made back usually have phenolic as a substrate</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-D-18m2iAN_E/WMGCvkwbiJI/AAAAAAAAGEs/tRnYYStSYDw17MRBRZVVVkCIksLO28w_wCLcB/s1600/IMG_20170216_135523.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-D-18m2iAN_E/WMGCvkwbiJI/AAAAAAAAGEs/tRnYYStSYDw17MRBRZVVVkCIksLO28w_wCLcB/s640/IMG_20170216_135523.jpg" width="360" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Look at this crazy tuner! A string is wrapped around the potentiometer to move the pointer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-xgFwPnXNiZ0/WMGCvlnX28I/AAAAAAAAGE0/WbVhf01Nbo4ZR0NydVjzwoKUHIjxMx-qgCLcB/s1600/IMG_20170216_135528.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://4.bp.blogspot.com/-xgFwPnXNiZ0/WMGCvlnX28I/AAAAAAAAGE0/WbVhf01Nbo4ZR0NydVjzwoKUHIjxMx-qgCLcB/s400/IMG_20170216_135528.jpg" width="225" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Wz1DmiqP4lM/WMGCvmaSFeI/AAAAAAAAGEw/o-kQF449dlQfboSfhh1H0n_yy5tTku1wACLcB/s1600/IMG_20170216_135542.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-Wz1DmiqP4lM/WMGCvmaSFeI/AAAAAAAAGEw/o-kQF449dlQfboSfhh1H0n_yy5tTku1wACLcB/s400/IMG_20170216_135542.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is such a clever way of making a display.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-BmwGgZhtAts/WMGCvxwrpLI/AAAAAAAAGFA/Kw78pgyw_206aEBJ0SW5VE_jSvMRtZSjACLcB/s1600/IMG_20170216_135551.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-BmwGgZhtAts/WMGCvxwrpLI/AAAAAAAAGFA/Kw78pgyw_206aEBJ0SW5VE_jSvMRtZSjACLcB/s640/IMG_20170216_135551.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The wires are kind of messy. Old circuit boards have a lot of smooth traces.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-9cC6aKzC46A/WMGCv5xC_DI/AAAAAAAAGE4/qOIN0ksWjwMWm03676aXXWlWoS85wi0cgCLcB/s1600/IMG_20170216_135637.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-9cC6aKzC46A/WMGCv5xC_DI/AAAAAAAAGE4/qOIN0ksWjwMWm03676aXXWlWoS85wi0cgCLcB/s640/IMG_20170216_135637.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Top view of the radio board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-eTP24OokYl8/WMGCv6tCN-I/AAAAAAAAGE8/3y5w0zVOoxwu09EM9mjNj7FDaZkK-7m2QCLcB/s1600/IMG_20170216_135751.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-eTP24OokYl8/WMGCv6tCN-I/AAAAAAAAGE8/3y5w0zVOoxwu09EM9mjNj7FDaZkK-7m2QCLcB/s640/IMG_20170216_135751.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-bixn_1KUQMk/WMGCwFhy6YI/AAAAAAAAGFE/_gNojIv3k_09TLwf2iTUWbnSVwvnNnIhwCLcB/s1600/IMG_20170216_210307.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-bixn_1KUQMk/WMGCwFhy6YI/AAAAAAAAGFE/_gNojIv3k_09TLwf2iTUWbnSVwvnNnIhwCLcB/s640/IMG_20170216_210307.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The clock doesn't display correctly.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-UpJseGt-R1M/WMGCwHxTVII/AAAAAAAAGFI/a0oFlOBYItwXZpZI31e42S9KzzA3x22TwCLcB/s1600/IMG_20170216_210826.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-UpJseGt-R1M/WMGCwHxTVII/AAAAAAAAGFI/a0oFlOBYItwXZpZI31e42S9KzzA3x22TwCLcB/s640/IMG_20170216_210826.jpg" width="360" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I decided that perhaps the problem was in this IC chip.</div>
<div class="separator" style="clear: both; text-align: center;">
This is the <a href="http://www.paulanders.com/G5-LED/ver1/datablad.pdf">LM8560</a>, which is used specifically for alarm clocks.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-C8_cOsH-Mas/WMGpHVJOiZI/AAAAAAAAGFg/1pmB_Y16r9U9rnZkj_Sub-HIXrZLnuhSwCKgB/s1600/IMG_20170221_105703.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://4.bp.blogspot.com/-C8_cOsH-Mas/WMGpHVJOiZI/AAAAAAAAGFg/1pmB_Y16r9U9rnZkj_Sub-HIXrZLnuhSwCKgB/s400/IMG_20170221_105703.jpg" width="225" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Thanks to eBay, I could buy one of these outdated chips!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-xb108q8Hi0s/WMGpHR80lHI/AAAAAAAAGFg/TjqYB5izj-Ezi5kcCdIQOuxvX9VibQFtACKgB/s1600/IMG_20170221_105734.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-xb108q8Hi0s/WMGpHR80lHI/AAAAAAAAGFg/TjqYB5izj-Ezi5kcCdIQOuxvX9VibQFtACKgB/s640/IMG_20170221_105734.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I soldered in the new chip. It was painful, I broke several pads.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-jmv2GSqiLCI/WMGpHWAemsI/AAAAAAAAGFg/GAu24Q_hfq8DFsmaRARsw7fd4IiMtbQCACKgB/s1600/IMG_20170221_105754.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-jmv2GSqiLCI/WMGpHWAemsI/AAAAAAAAGFg/GAu24Q_hfq8DFsmaRARsw7fd4IiMtbQCACKgB/s640/IMG_20170221_105754.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Notice anything broken? Me neither.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-9MP9IA4Z3tg/WMGpHYvxB8I/AAAAAAAAGFg/YCcewo7QWpItsEObcaJsRKtsvsRdPdcRQCKgB/s1600/IMG_20170221_113716.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-9MP9IA4Z3tg/WMGpHYvxB8I/AAAAAAAAGFg/YCcewo7QWpItsEObcaJsRKtsvsRdPdcRQCKgB/s640/IMG_20170221_113716.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Broken pads are pretty hard to find, especially if you didn't make them. I had to jump some connections.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-r2Obf3r1ON0/WMGpHZp9GXI/AAAAAAAAGFg/-ET3Tr2zl5IpoNyuuhjOMmCEz5yi_dSLACKgB/s1600/IMG_20170221_113734.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://1.bp.blogspot.com/-r2Obf3r1ON0/WMGpHZp9GXI/AAAAAAAAGFg/-ET3Tr2zl5IpoNyuuhjOMmCEz5yi_dSLACKgB/s640/IMG_20170221_113734.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You also sometimes discover broken components! This capacitor was bulging like crazy and had a broken lead.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-wpW98sVZjy0/WMGpHUl2SwI/AAAAAAAAGFg/I4zg1fB7IRITSdzDoyxidc2thvGLRk7gACKgB/s1600/IMG_20170221_113729.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-wpW98sVZjy0/WMGpHUl2SwI/AAAAAAAAGFg/I4zg1fB7IRITSdzDoyxidc2thvGLRk7gACKgB/s400/IMG_20170221_113729.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It's amazing how components deteriorate over time. There were plenty of resistors that didn't have paint on them anymore.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-2EpTD7rrDyA/WMGCwVtVLjI/AAAAAAAAGFM/NQrPpB263gIXaINbHtXAlDTDqEJBocZXQCLcB/s1600/IMG_20170216_211343.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://1.bp.blogspot.com/-2EpTD7rrDyA/WMGCwVtVLjI/AAAAAAAAGFM/NQrPpB263gIXaINbHtXAlDTDqEJBocZXQCLcB/s640/IMG_20170216_211343.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The college dorm life...</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I couldn't fix the alarm clock. Unfortunately, the IC chip was not the issue. I tried tested out the other components.<br />
However, every time I desoldered, tested, or even touched a component, I risked breaking a very delicate and irreplaceable part.<br />
<br />
<h4 style="text-align: center;">
<i>Primum non nocere - "First, do no harm" - </i>from the Hippocratic Oath (??)</h4>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
I decided that I was probably going to do more damage than help, so I put the clock back together.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
At least the radio works!</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/S6ByxyGV8Js" width="560"></iframe>
</div>
</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com4tag:blogger.com,1999:blog-4781278098745493051.post-20508777576617581122016-07-28T12:26:00.001-07:002016-07-28T12:26:26.926-07:00Casio CA-501 Restoration<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
I think it's safe to say that I'm in love with Casio</div>
<div class="separator" style="clear: both; text-align: left;">
Here's a little <a href="https://en.wikipedia.org/wiki/Casio">background</a>. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After WWII, Japan was able to rebuild and many new companies sprouted from the ashes. One of these companies was Casio, in 1946.</div>
<div class="separator" style="clear: both; text-align: left;">
Their first invention was a ring that could hold a cigarette. </div>
<div class="separator" style="clear: both; text-align: left;">
After the success from the yubiwa pipe, the company used the profits to make a calculator that worked with solenoids instead of hand crank gears. The calculator had a single keypad (instead of a <a href="http://www.vintagecalculators.com/assets/images/Sumlock993s_1.JPG">full keypad</a>) </div>
<div class="separator" style="clear: both; text-align: left;">
and a single screen to display instead of three. This is basically what your modern day calculator looks like: you can thank Casio.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After that they built a bunch of other electronics like keyboards, PDAs, clocks, printers, etc etc and watches.</div>
<div class="separator" style="clear: both; text-align: left;">
AND WATCHES.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I admire Casio for their true talent for their feats in electrical engineering. I'm a big fan of low level programming and not a huge fan of higher level things like Computer Science, so I really admire Casio for the cute gadgets that they make.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I also appreciate most of old technology, and watches, and 80s fashion. I stumbled upon an old Casio catalog</div>
<h3 style="clear: both; text-align: left;">
http://www.angelfire.com/80s/ron28/casio/index1.html<br />Nostalgia.</h3>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Scroll down and you'll find the CA-501.</div>
<div class="separator" style="clear: both; text-align: left;">
I've been looking for a calculator watch for along time with certain features</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Solid single module (as compared to a Casio DBC610A, which you can see is sort of two parted)</li>
<li>Flat band (this is very native to the 1980s. Look at Gerald Genta's design for the royal oak and other watches designed in the 80s. Flat bands are hard to find these days)</li>
<li>Full metal</li>
<li>Water resistant</li>
</ul>
<div>
And I stumbled upon the CA-501.</div>
<div>
<br /></div>
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-7mazvohK1mU/V5pZyUNTWYI/AAAAAAAAC6w/8KOjJPljyQo62Uvj3Keh6tWQKowVqKXZACLcB/s1600/2520-400x500.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://3.bp.blogspot.com/-7mazvohK1mU/V5pZyUNTWYI/AAAAAAAAC6w/8KOjJPljyQo62Uvj3Keh6tWQKowVqKXZACLcB/s320/2520-400x500.jpg" width="256" /></a></div>
<br /></div>
<div style="text-align: center;">
What a beauty.</div>
<br />
Most of these watches are extremely damaged from wear and time. You can purchase a scratched up and beaten CA-501 for about $75 on eBay.<br />
<br />
I really wanted one.<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So I bought one for $30.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-vUmJg9fTlts/V5oXvncf9YI/AAAAAAAAC4w/ed2l94nQZbUyMK73j433pJs6S5J177RlwCLcB/s1600/DSC_6686.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://1.bp.blogspot.com/-vUmJg9fTlts/V5oXvncf9YI/AAAAAAAAC4w/ed2l94nQZbUyMK73j433pJs6S5J177RlwCLcB/s640/DSC_6686.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
As you can see the watch doesn't work. The module itself is damaged.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-z88qyIcZV_0/V5oXvQ42XfI/AAAAAAAAC4s/uJeJ4AN9MR4noF8Edfxkca2q32uVE9KawCLcB/s1600/DSC_6687.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-z88qyIcZV_0/V5oXvQ42XfI/AAAAAAAAC4s/uJeJ4AN9MR4noF8Edfxkca2q32uVE9KawCLcB/s400/DSC_6687.JPG" width="400" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-4beHWlH87YM/V5oXsOu0yPI/AAAAAAAAC4o/PY-EvBFbYXQ0EOoIe_QsMIf3TZxHqtx0QCLcB/s1600/DSC_6688.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-4beHWlH87YM/V5oXsOu0yPI/AAAAAAAAC4o/PY-EvBFbYXQ0EOoIe_QsMIf3TZxHqtx0QCLcB/s400/DSC_6688.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
While the module was damaged there were no signs of wear on the watch at all. No scratches, no stretch on the band.</div>
<div class="separator" style="clear: both; text-align: center;">
I love the flat link band.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-iaujgvdw1Xs/V5oXv95X22I/AAAAAAAAC40/2qcjuhdmZMQ-j1RWzH07CapVIMKYe8HHQCLcB/s1600/DSC_6689.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-iaujgvdw1Xs/V5oXv95X22I/AAAAAAAAC40/2qcjuhdmZMQ-j1RWzH07CapVIMKYe8HHQCLcB/s400/DSC_6689.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
CA-501</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In the past I have had experience with Casio watches. There are multiple models of watches but certain models can share the same electronic module on the inside.</div>
<div class="separator" style="clear: both; text-align: left;">
What does that mean?</div>
<div class="separator" style="clear: both; text-align: left;">
This watch, according to the 1984 catalog, uses the Module No. 437. I just need to obtain a working module and replace it in this watch, and I will have a CA-501 in almost brand new condition.</div>
<div class="separator" style="clear: both; text-align: left;">
I'm not sure how valuable the watch would be, but probably greater than $75.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Luckily for me, Casio still sells watches that use the 437 module.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-jfzdhNorau8/V5oX0-zMsGI/AAAAAAAAC44/lv_xcnG82T8HtFxpp7CzoEzFJf1qPduKQCLcB/s1600/DSC_6690.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-jfzdhNorau8/V5oX0-zMsGI/AAAAAAAAC44/lv_xcnG82T8HtFxpp7CzoEzFJf1qPduKQCLcB/s640/DSC_6690.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the CA-53, a calculator watch you can buy for $15 at your local Walmart.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-zPgJOSllldk/V5oX4GsRjAI/AAAAAAAAC5A/xyZ4gSYuPP0tMiIDSqZBbhuGZZIDP-kawCLcB/s1600/DSC_6691.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-zPgJOSllldk/V5oX4GsRjAI/AAAAAAAAC5A/xyZ4gSYuPP0tMiIDSqZBbhuGZZIDP-kawCLcB/s400/DSC_6691.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The beauty of this is that if any parts break, or buttons get lost on the CA-501, most of them are interchangeable with teh CA-53</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Az-3kGaGYkc/V5oX4MSFPiI/AAAAAAAAC48/32pBtz4daJEaLyepkse3PWrIlv6Fy-b9ACLcB/s1600/DSC_6692.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-Az-3kGaGYkc/V5oX4MSFPiI/AAAAAAAAC48/32pBtz4daJEaLyepkse3PWrIlv6Fy-b9ACLcB/s400/DSC_6692.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The bottom</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-7vXMX-LSP0E/V5oX8YbrRQI/AAAAAAAAC5E/JkOz9XP8yqANLfJmJfIYUK8t_JY9MdwJQCLcB/s1600/DSC_6693.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-7vXMX-LSP0E/V5oX8YbrRQI/AAAAAAAAC5E/JkOz9XP8yqANLfJmJfIYUK8t_JY9MdwJQCLcB/s400/DSC_6693.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
First step of switching modules is removing the back cover. The CA-501 has an interesting case. I needed to remove the bands before I could remove the back.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Qgs2byVLTLY/V5oX_9AY_xI/AAAAAAAAC5I/B1R0dCApvg4WzUbEvHywDxViBrB9QY3OwCLcB/s1600/DSC_6694.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-Qgs2byVLTLY/V5oX_9AY_xI/AAAAAAAAC5I/B1R0dCApvg4WzUbEvHywDxViBrB9QY3OwCLcB/s400/DSC_6694.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
I used a flathead screwdrived to pry open the case</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-zl-mOD5f-6c/V5oX_4CQuMI/AAAAAAAAC5M/MK4aYqQuz4Isf7epBej3BSsAbKTotLmfACLcB/s1600/DSC_6695.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-zl-mOD5f-6c/V5oX_4CQuMI/AAAAAAAAC5M/MK4aYqQuz4Isf7epBej3BSsAbKTotLmfACLcB/s400/DSC_6695.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-fJWyu6GwgJA/V5oYCfCE49I/AAAAAAAAC5Q/c37HdWOhPSwzOnj12DOVsDXCc9UYbohzACLcB/s1600/DSC_6696.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-fJWyu6GwgJA/V5oYCfCE49I/AAAAAAAAC5Q/c37HdWOhPSwzOnj12DOVsDXCc9UYbohzACLcB/s400/DSC_6696.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The back cover is clip on...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-ZFYrOdYyghc/V5oYFRQzU4I/AAAAAAAAC5U/dImq-MetuBMuV2N5mW9G_nIVWkTUpuJZgCLcB/s1600/DSC_6697.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-ZFYrOdYyghc/V5oYFRQzU4I/AAAAAAAAC5U/dImq-MetuBMuV2N5mW9G_nIVWkTUpuJZgCLcB/s400/DSC_6697.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The broken module, with battery removed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-OoMb1itiU6o/V5oYFj1--aI/AAAAAAAAC5Y/ci67v2_g9GYXmw6zjumzm27ICLDhcXDlwCLcB/s1600/DSC_6698.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-OoMb1itiU6o/V5oYFj1--aI/AAAAAAAAC5Y/ci67v2_g9GYXmw6zjumzm27ICLDhcXDlwCLcB/s400/DSC_6698.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Gently pry out the module.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-iIqQQjJFipI/V5oYISkQcyI/AAAAAAAAC5c/OL04Bqe9HvgNzC-qA-tfvKRMfJZsKDEvgCLcB/s1600/DSC_6699.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-iIqQQjJFipI/V5oYISkQcyI/AAAAAAAAC5c/OL04Bqe9HvgNzC-qA-tfvKRMfJZsKDEvgCLcB/s400/DSC_6699.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Open up the CA-53 to access the working module.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-EzQ3xGJlgJc/V5oYLm_2EQI/AAAAAAAAC5g/phwxlwLYP0EAXIRyS2C4qX5Z7X6YOaksQCLcB/s1600/DSC_6700.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-EzQ3xGJlgJc/V5oYLm_2EQI/AAAAAAAAC5g/phwxlwLYP0EAXIRyS2C4qX5Z7X6YOaksQCLcB/s400/DSC_6700.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
A tiny comparison of the modules. The CA-53 seems to use a more updated module.</div>
<div class="separator" style="clear: both; text-align: center;">
However both are 437 modules. They will fit if we switch them.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-vsA7lLIlQjs/V5oYTfou3mI/AAAAAAAAC50/kj7iJHGKVFMvJyMC9lcoyo-IXWLeBjTnwCLcB/s1600/DSC_6701.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-vsA7lLIlQjs/V5oYTfou3mI/AAAAAAAAC50/kj7iJHGKVFMvJyMC9lcoyo-IXWLeBjTnwCLcB/s400/DSC_6701.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-RsGOfXKi3ts/V5oYOJcAcPI/AAAAAAAAC5k/iN7RuYd8_kcbagWdUXWAC28iZgX3wQEMgCLcB/s1600/DSC_6702.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-RsGOfXKi3ts/V5oYOJcAcPI/AAAAAAAAC5k/iN7RuYd8_kcbagWdUXWAC28iZgX3wQEMgCLcB/s640/DSC_6702.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is surgery.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-bXNbgLdm2pM/V5oYPhBBY9I/AAAAAAAAC5o/iA-xykscXUAcFcWh7bRbLcZhtESwHk7OACLcB/s1600/DSC_6703.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-bXNbgLdm2pM/V5oYPhBBY9I/AAAAAAAAC5o/iA-xykscXUAcFcWh7bRbLcZhtESwHk7OACLcB/s400/DSC_6703.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The new module is inserted</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-dHUJ2DKjqrQ/V5oYRjinFCI/AAAAAAAAC5s/uf0iA60Cx9wjas76yQPnZpbl5Jyp3akrACLcB/s1600/DSC_6704.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-dHUJ2DKjqrQ/V5oYRjinFCI/AAAAAAAAC5s/uf0iA60Cx9wjas76yQPnZpbl5Jyp3akrACLcB/s640/DSC_6704.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Something you might notice different is that the modules seem to be flipped... You can notice some features on each module that seem like they're mirror images. This created a bit of the problem. The piezo buzzer was in the wrong place now.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-Vcbe3HuJlwE/V5oYTO1EA5I/AAAAAAAAC5w/y7cf_2m8RTsIO70gyRGp7cmFEtcebZSFQCLcB/s1600/DSC_6705.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-Vcbe3HuJlwE/V5oYTO1EA5I/AAAAAAAAC5w/y7cf_2m8RTsIO70gyRGp7cmFEtcebZSFQCLcB/s400/DSC_6705.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
As you can see on the CA-53, the buzzer is usually on the bottom of the caseback.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-_pLFCDeZuPU/V5oYW5dqDwI/AAAAAAAAC54/Lwy33izBFAE3ORIUgWubV4mJSLGP-uPcgCLcB/s1600/DSC_6706.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-_pLFCDeZuPU/V5oYW5dqDwI/AAAAAAAAC54/Lwy33izBFAE3ORIUgWubV4mJSLGP-uPcgCLcB/s400/DSC_6706.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
On the CA-501 the buzzer was on the top of the caseback.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-UgVFLgDenCM/V5oYYjPAVZI/AAAAAAAAC58/NFpjDMDokvoy7sT4tx3GrRnAc-8pi9o7wCLcB/s1600/DSC_6707.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-UgVFLgDenCM/V5oYYjPAVZI/AAAAAAAAC58/NFpjDMDokvoy7sT4tx3GrRnAc-8pi9o7wCLcB/s400/DSC_6707.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Whatever, just rotate it 180.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-_JoOzWGSWEQ/V5oYZfcXe0I/AAAAAAAAC6A/coR7K_rr-lsOxIVc6RC03kobUUfjpcHMwCLcB/s1600/DSC_6708.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-_JoOzWGSWEQ/V5oYZfcXe0I/AAAAAAAAC6A/coR7K_rr-lsOxIVc6RC03kobUUfjpcHMwCLcB/s400/DSC_6708.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-RvJQyJi2J9k/V5oYdNBww8I/AAAAAAAAC6E/K5X1fGmmDV42Uht0EEFUSlymkqMSBTKKgCLcB/s1600/DSC_6709.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-RvJQyJi2J9k/V5oYdNBww8I/AAAAAAAAC6E/K5X1fGmmDV42Uht0EEFUSlymkqMSBTKKgCLcB/s400/DSC_6709.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
And snap the case back on! Of course it's upside down now, but it works. No one will ever see under a watch.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-EtUmxUCe-zE/V5oYfaY0reI/AAAAAAAAC6I/-6Kqm6Dv50gueaB7kK9GLz_Lu6cVyLs3QCLcB/s1600/DSC_6710.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-EtUmxUCe-zE/V5oYfaY0reI/AAAAAAAAC6I/-6Kqm6Dv50gueaB7kK9GLz_Lu6cVyLs3QCLcB/s640/DSC_6710.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
It's alive!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-rPdit2B-OJI/V5oYgUbXlxI/AAAAAAAAC6M/1IUEzDOWNQMqHY25DNzB-SH7OBOdC0n1QCLcB/s1600/DSC_6711.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-rPdit2B-OJI/V5oYgUbXlxI/AAAAAAAAC6M/1IUEzDOWNQMqHY25DNzB-SH7OBOdC0n1QCLcB/s640/DSC_6711.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
A beautiful functioning CA-501.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-WPM_dacbPJc/V5oYhnwlHWI/AAAAAAAAC6Q/uTUP6kVNFqoGx3EyzaCUvP9227NOCQtzACLcB/s1600/DSC_6712.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-WPM_dacbPJc/V5oYhnwlHWI/AAAAAAAAC6Q/uTUP6kVNFqoGx3EyzaCUvP9227NOCQtzACLcB/s640/DSC_6712.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-TQ4A-JbAYio/V5oYi4-ytJI/AAAAAAAAC6U/2n026mum9ccgxC0BFx2-bptZm8fpEL2igCLcB/s1600/DSC_6713.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-TQ4A-JbAYio/V5oYi4-ytJI/AAAAAAAAC6U/2n026mum9ccgxC0BFx2-bptZm8fpEL2igCLcB/s640/DSC_6713.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I hope this was helpful. Use this knowledge to switch out Casio modules. For example, the Casio A159 uses the same module as the A158 and the ubiquitous F91.<br />
<br />
Have fun!</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com3tag:blogger.com,1999:blog-4781278098745493051.post-66421540455799288022016-06-09T00:32:00.001-07:002016-06-09T00:32:28.648-07:00Arduino and Television display<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
The best ideas come to me at 3AM when I'm trying to fall asleep.</div>
<div class="separator" style="clear: both; text-align: left;">
In EDD our project involved using an ESP8266 WiFi module to communicate with a server. I realized how amazing this $3 module was that I bought a few for myself to play with. I was trying to think of cool projects to build with it when I found this:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://fablab.ruc.dk/get-xmpp-protocol-on-arduino/">http://fablab.ruc.dk/get-xmpp-protocol-on-arduino/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This person basically used the ESP8266 to act like a chatbot and display a message.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Recently in our school we sort of adopted the S A D B O Y vaporwave culture ironically. We bought bucket-hats and started spelling English words out in Japanese.</div>
<div class="separator" style="clear: both; text-align: left;">
I observed that a key component of vaporwave culture is outdated technology and a hopeless nostalgia to return to the 80s-90s era.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
At 3 that night I had an idea to turn a TV into a text display.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 style="clear: both; text-align: left;">
Imagine you're in a basement</h3>
<div>
and theres an old TV sitting there. No cable box, no antenna. Just plugged into the wall.</div>
<div>
Suddenly out of nowhere a message appears on the screen. White text on black. It's speaking to YOU.</div>
<div>
<br /></div>
<div>
I think I'm gonna install a camera somewhere and observe the victim, while I type in something creepy and strangely specific based on visual input from the camera like "I like your red shirt".</div>
<div>
The television will be receiving input from an Arduino connected to a chat box through the ESP8266.</div>
<div>
<br /></div>
<div>
I think it'll be a lot of fun to build.</div>
<div>
<br /></div>
<div>
I haven't completed it yet, but so far I am able to type text to the serial port and have it displayed on the TV.</div>
<div>
<br /></div>
<div>
I will walk you through the process of the build so far.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-XW7qHnmsIwQ/V1kUQqFX11I/AAAAAAAACaM/WJxv8HNOAqMBlI2BFIvBxAA_JL8_GxMzACLcB/s1600/DSC_6660.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://1.bp.blogspot.com/-XW7qHnmsIwQ/V1kUQqFX11I/AAAAAAAACaM/WJxv8HNOAqMBlI2BFIvBxAA_JL8_GxMzACLcB/s640/DSC_6660.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Take apart the TV. It should be unplugged of course. Use a screwdriver to short some capacitors if you're paranoid. CRT monitors use a flyback transformer which can do some serious damage to you.</div>
<div class="separator" style="clear: both; text-align: center;">
I would recommend vacuuming out spider webs and dust before continuing. It would make the build a lot cleaner, and safer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-ZB5lERo8BDk/V1kURlUrKLI/AAAAAAAACaQ/dfNzQsnE5r8QdjB_fwX3HhhmA2V1ZgZAgCLcB/s1600/DSC_6661.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-ZB5lERo8BDk/V1kURlUrKLI/AAAAAAAACaQ/dfNzQsnE5r8QdjB_fwX3HhhmA2V1ZgZAgCLcB/s640/DSC_6661.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You should where the audio and RCA plugs are located on the TV. This is a pic of the circuitboard.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-3wLNqMDHpy0/V1kURsvX_hI/AAAAAAAACaU/pJu_48FJVecCZb3JxZXH2EHjtVORGS81wCLcB/s1600/DSC_6662.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://2.bp.blogspot.com/-3wLNqMDHpy0/V1kURsvX_hI/AAAAAAAACaU/pJu_48FJVecCZb3JxZXH2EHjtVORGS81wCLcB/s640/DSC_6662.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder 3 wires: GND, Audio, Video</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-wrWcmjVHaFQ/V1kUUNlXkeI/AAAAAAAACag/rYQOLEAfxkg6fQhCVk8DFRnbReYN7rQDwCLcB/s1600/DSC_6663.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-wrWcmjVHaFQ/V1kUUNlXkeI/AAAAAAAACag/rYQOLEAfxkg6fQhCVk8DFRnbReYN7rQDwCLcB/s320/DSC_6663.JPG" width="212" /></a><a href="https://4.bp.blogspot.com/-zOvtkDRjTDE/V1kUVdvwP6I/AAAAAAAACas/K9wPzp_fSEwWVBDiyDoJnX0OljVQSFoCACLcB/s1600/DSC_6664.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://4.bp.blogspot.com/-zOvtkDRjTDE/V1kUVdvwP6I/AAAAAAAACas/K9wPzp_fSEwWVBDiyDoJnX0OljVQSFoCACLcB/s320/DSC_6664.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is just a fun artsy pic of the electronics inside of a television.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-JZBbQ-qAQIg/V1kUZHDg9cI/AAAAAAAACa8/EYlQkIhVbC0gBVjoX0i1JdMioUiddje7gCLcB/s1600/DSC_6668.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-JZBbQ-qAQIg/V1kUZHDg9cI/AAAAAAAACa8/EYlQkIhVbC0gBVjoX0i1JdMioUiddje7gCLcB/s640/DSC_6668.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You can get a USB wall charger at Five Below for... $5.</div>
<div class="separator" style="clear: both; text-align: center;">
You will need this so that you can power your Arduino inside of your TV without another cord. The idea is so that there is only one cord from the TV: power. The Arduino and all the circuitry will be inside the TV once it's done. The idea is stealth so that the TV looks like it has a soul of its own.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-lmC_x-OsnMs/V1kUbwbR-YI/AAAAAAAACbQ/ERQBQ_QJjno4PYZQn6y34ZiU_FUj9b4VACLcB/s1600/DSC_6669.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-lmC_x-OsnMs/V1kUbwbR-YI/AAAAAAAACbQ/ERQBQ_QJjno4PYZQn6y34ZiU_FUj9b4VACLcB/s640/DSC_6669.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut the plug off.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-ytRboNY6hy4/V1kUc1zxaeI/AAAAAAAACbc/9GW5jTTRdbs5oQ7RgUddG4K-AunIWX8jgCLcB/s1600/DSC_6670.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-ytRboNY6hy4/V1kUc1zxaeI/AAAAAAAACbc/9GW5jTTRdbs5oQ7RgUddG4K-AunIWX8jgCLcB/s640/DSC_6670.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Strip the wire. Cheap chargers like this only have + and - wires</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-yjpxmt3_hVg/V1kUeAe1TCI/AAAAAAAACbg/r3DNhTs1U54xF6jFFS9q04jGILa0e2ItwCLcB/s1600/DSC_6671.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-yjpxmt3_hVg/V1kUeAe1TCI/AAAAAAAACbg/r3DNhTs1U54xF6jFFS9q04jGILa0e2ItwCLcB/s640/DSC_6671.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Find where the wall plug power goes into on the TV.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-v0u1AORrYDQ/V1kUgTLV1cI/AAAAAAAACbo/J4YbDX9EybUxZ--hF6KbOsD5QRFfjBvYQCLcB/s1600/DSC_6672.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-v0u1AORrYDQ/V1kUgTLV1cI/AAAAAAAACbo/J4YbDX9EybUxZ--hF6KbOsD5QRFfjBvYQCLcB/s640/DSC_6672.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Get two >=18 gauge wires</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-6-16XmGmKko/V1kUhIShjkI/AAAAAAAACb0/-e3Vt2Cb9-oa58pabqjZiE2AsTSuz60JACLcB/s1600/DSC_6673.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-6-16XmGmKko/V1kUhIShjkI/AAAAAAAACb0/-e3Vt2Cb9-oa58pabqjZiE2AsTSuz60JACLcB/s640/DSC_6673.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder them onto where the wall power comes it</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-_FbazV1e0X0/V1kUicMFQ4I/AAAAAAAACb8/g9z0GkVH5tors8CCQbpb3tiNb-uaFItOwCLcB/s1600/DSC_6674.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://2.bp.blogspot.com/-_FbazV1e0X0/V1kUicMFQ4I/AAAAAAAACb8/g9z0GkVH5tors8CCQbpb3tiNb-uaFItOwCLcB/s640/DSC_6674.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder the other end to the phone charger. The charger is now in parallel to the TV whenever the TV turns on.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-61k5v0lpisA/V1kUkdJdRfI/AAAAAAAACcE/kSQXt2tXbZMagYKcmGVEnqxMoob0Mz7EACLcB/s1600/DSC_6675.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-61k5v0lpisA/V1kUkdJdRfI/AAAAAAAACcE/kSQXt2tXbZMagYKcmGVEnqxMoob0Mz7EACLcB/s640/DSC_6675.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You will really want to wrap this well in electrical tape: maybe you even want to seal this off with glue.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-wrZD4lBcm_A/V1kUlLK6J5I/AAAAAAAACcI/sICMiMhQMpQwL5OH-XQJUzmRNcSBnJb9gCLcB/s1600/DSC_6676.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-wrZD4lBcm_A/V1kUlLK6J5I/AAAAAAAACcI/sICMiMhQMpQwL5OH-XQJUzmRNcSBnJb9gCLcB/s640/DSC_6676.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
When the TV is plugged in, you should get ~5v from the charger.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-QaHQEXqmzW0/V1kUmDm47yI/AAAAAAAACcQ/OsvPdTOJnJclKiiAQHXfNB6yEhxHRQj1QCLcB/s1600/DSC_6677.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://2.bp.blogspot.com/-QaHQEXqmzW0/V1kUmDm47yI/AAAAAAAACcQ/OsvPdTOJnJclKiiAQHXfNB6yEhxHRQj1QCLcB/s640/DSC_6677.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
According to the TVout library, you will need two resistors for the circuit</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-ecJ6LKNxuig/V1kUon0eQaI/AAAAAAAACcY/a9ld35VHo1YARchme_mO3dMT8b7tAuQBwCLcB/s1600/DSC_6678.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-ecJ6LKNxuig/V1kUon0eQaI/AAAAAAAACcY/a9ld35VHo1YARchme_mO3dMT8b7tAuQBwCLcB/s640/DSC_6678.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Make sure you install the TVout library for Arduino.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-tqLW8lIErfQ/V1kUpVgMcDI/AAAAAAAACcc/eRMBT2EhzbInM9Dv1EJLfhMbgmD6zlJYwCLcB/s1600/DSC_6679.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-tqLW8lIErfQ/V1kUpVgMcDI/AAAAAAAACcc/eRMBT2EhzbInM9Dv1EJLfhMbgmD6zlJYwCLcB/s640/DSC_6679.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wire up the circuit</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-X-Qo1ne1Qks/V1kUqbLYjCI/AAAAAAAACck/HZ_btC4V6K4pKLtQK5S8HVv6BcvxNK_zQCLcB/s1600/DSC_6680.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://1.bp.blogspot.com/-X-Qo1ne1Qks/V1kUqbLYjCI/AAAAAAAACck/HZ_btC4V6K4pKLtQK5S8HVv6BcvxNK_zQCLcB/s640/DSC_6680.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Upload the TVout example and turn on the TV.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-9tdK9Vv6FsE/V1kUsnMOYkI/AAAAAAAACcs/GtF0hCXRc58vCHLVBo10udoOa7UOGL0kACLcB/s1600/DSC_6681.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-9tdK9Vv6FsE/V1kUsnMOYkI/AAAAAAAACcs/GtF0hCXRc58vCHLVBo10udoOa7UOGL0kACLcB/s640/DSC_6681.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It works!</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-ycWFgnB7aNo/V1kUtXo43cI/AAAAAAAACc0/cMRhBilBqhslsaXxV-_veznofPISxaAHQCLcB/s1600/DSC_6682.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-ycWFgnB7aNo/V1kUtXo43cI/AAAAAAAACc0/cMRhBilBqhslsaXxV-_veznofPISxaAHQCLcB/s640/DSC_6682.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I wrote my own code which I will publish later that writes to the TV whatever is inputted on the serial monitor. We needed to set a baudrate of 1200 because the TV is very slow.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-1U2nGGtYNGA/V1kUuI48muI/AAAAAAAACc8/ds6K933SCOw4nGjDny48VAgGNM7WEwP-ACLcB/s1600/DSC_6683.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://3.bp.blogspot.com/-1U2nGGtYNGA/V1kUuI48muI/AAAAAAAACc8/ds6K933SCOw4nGjDny48VAgGNM7WEwP-ACLcB/s640/DSC_6683.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-o8gpZrGqZxU/V1kUwOGTzeI/AAAAAAAACdI/cTvrWm1QtnEXhN_tLe1muV6__cWVk6WkwCLcB/s1600/DSC_6684.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-o8gpZrGqZxU/V1kUwOGTzeI/AAAAAAAACdI/cTvrWm1QtnEXhN_tLe1muV6__cWVk6WkwCLcB/s640/DSC_6684.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The future goal is to implement this tiny $3 WiFi module.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-1WVINuAXHf0/V1kUwZKMr0I/AAAAAAAACdM/shKeHILl7NgCTIxtsVJWmHy0OcOst9fywCLcB/s1600/DSC_6685.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-1WVINuAXHf0/V1kUwZKMr0I/AAAAAAAACdM/shKeHILl7NgCTIxtsVJWmHy0OcOst9fywCLcB/s640/DSC_6685.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
lol</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I hope you enjoyed!</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-31580256392306858972016-05-11T20:30:00.001-07:002016-05-11T20:30:54.107-07:00MATE PA 2016<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
I joined HTHS Robotics in my freshman year. </div>
<div class="separator" style="clear: both; text-align: left;">
Usually freshmen don't do much. In my year we were just assigned to build props that were never actually used. The upperclassmen were like genius gods who somehow had enough skill to build an amazing robot. HTHS doesn't teach you everything you need to know to build an underwater ROV</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In fact it probably only prepares you for 30% of the way. </div>
<div class="separator" style="clear: both; text-align: left;">
Throwing some shade here on VEX, but this is <i>true </i>robotics. Start from scratch, engineer or ratchet your way up to a working robot. We don't believe in pre-built parts, spending excessive amount of money, or outsourcing our design to professional companies.</div>
<div class="separator" style="clear: both; text-align: left;">
We believe in autonomy.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2009: The only year we made it to internationals: https://sites.google.com/site/hthsrobotics/</div>
<div class="separator" style="clear: both; text-align: left;">
According to Zach Darby (2012), the whole robot was built by one guy. Dedication</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2013: We reused the 2012 frame, with all the same electronics, attempting to waterproof the pelican box better: failed horribly. The whole thing flooded. I remember the legendary Austin Eng whipping out his pocket knife to cut the electronics cable before it shorted out the topside electronics.</div>
<div class="separator" style="clear: both; text-align: left;">
The club sucked then.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2014: Club still wasn't amazing. No one was invested. This year I rebuilt the H-bridge electronics to be on topside. The robot frame was literally PVC duct taped together. To be honest it was wretched. There were still bottomside electronics, I remember. It shorted out of course.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2015: Ayy we dem boiz: The underclassmen become elected and we make a lot of changes to the club. We make all electronics topside and keep the robot design extremely simple. We win Second, qualifying for internationals, but since HTHS is mean, we weren't able to go.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2016: This year. The push year. After the high from second last year we were confident of our major strides from the previous year and aim for first place. This year was so different. Everything was predesigned, engineered the best we could, and precisely machined. It was the most expensive robot our club has ever seen: $1,200. We worked every weekend, and twice a week. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This year's competition:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://pennsylvania.marinetech2.org/rangerspecs2016">http://pennsylvania.marinetech2.org/rangerspecs2016</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.marinetech.org/files/marine/files/ROV%20Competition/2016%20competition/Missions/Updated%20files/RANGER%20MANUAL_FINAL_cover_3_1_2016.pdf">http://www.marinetech.org/files/marine/files/ROV%20Competition/2016%20competition/Missions/Updated%20files/RANGER%20MANUAL_FINAL_cover_3_1_2016.pdf</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Our documentation:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://document.li/7XKb">http://document.li/7XKb</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.pdf-archive.com/2016/05/12/hthstechnicalreport2016-6/preview/page/1/">http://www.pdf-archive.com/2016/05/12/hthstechnicalreport2016-6/preview/page/1/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I'm not going to talk about the entire robot in this blog, but I will talk about the week leading up to the competition.</div>
<div class="separator" style="clear: both; text-align: left;">
In summary this is what happened</div>
<div class="separator" style="clear: both; text-align: left;">
<b>January</b></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Design robot frame</li>
<li>gather parts and materials, logistics of robot, planning out system</li>
<li>building topside electronics box</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: left;">
<b>February</b></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Still building topside electronics box</li>
<li>3D printing the parts we need, remodeling (first time is never right)</li>
<li>Get frame machined</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: left;">
<b>March</b></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Assemble frame</li>
<li>Write example/test codes</li>
<li>Start assembling parts</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: left;">
<b>April - cram</b></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Build bottomside electronics</li>
<li>assemble motors</li>
<li>waterproof everything</li>
<li>Attempt to get a working code</li>
<li>build claw</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: left;">
<b>May</b></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Test</li>
<li>debug (what I will be talking about)</li>
</ul>
<div>
<br /></div>
<div>
Our robot is b e a u t i f u l.</div>
<div>
Anything more beautiful than our robot is a trillion (exaggeration) more times expensive and had a lot of outside help. Keep in mind that our robot was hand built by a group of high schoolers who were busy with SATs, APs, and HTHS workload on their hands. This is real engineering.</div>
<div>
<br /></div>
<div>
We engineered the <i>shit </i>out of this. I've never seen so much applied science in my life. </div>
<div>
<br /></div>
<div>
I'm (I was) Electronics President. My primary job is to build the topside and bottomside electronics, and waterpoof the entire thing and make sure the person who is writing the code for the robot doesn't have a hard time. </div>
<div>
<br /></div>
<div>
This is topside:</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-1RGcbQce4V8/VzPwEt6HIhI/AAAAAAAACY4/N1Gs1o6haNAyp6hdE3LCob14qNgSfhn2QCLcB/s1600/20160414_163823.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://2.bp.blogspot.com/-1RGcbQce4V8/VzPwEt6HIhI/AAAAAAAACY4/N1Gs1o6haNAyp6hdE3LCob14qNgSfhn2QCLcB/s640/20160414_163823.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
You can read about it in the documentation</div>
<br /></div>
<div>
This is bottomside:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-ntxo40F8P9U/VzPwR8MRFJI/AAAAAAAACZA/rtlE22-GfNUvrU_oC5z3s_prGm8id4k5gCLcB/s1600/20160330_153138.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://2.bp.blogspot.com/-ntxo40F8P9U/VzPwR8MRFJI/AAAAAAAACZA/rtlE22-GfNUvrU_oC5z3s_prGm8id4k5gCLcB/s400/20160330_153138.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Top</div>
<div class="separator" style="clear: both; text-align: center;">
Note TLC and all the H-bridges</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-RVfitWv3jKc/VzPwSBpCKzI/AAAAAAAACZE/b6DUPF4ZVrMyscGfs87XszHjMVOJ9Rg8gCLcB/s1600/20160330_153145.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://4.bp.blogspot.com/-RVfitWv3jKc/VzPwSBpCKzI/AAAAAAAACZE/b6DUPF4ZVrMyscGfs87XszHjMVOJ9Rg8gCLcB/s400/20160330_153145.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Bottom</div>
<div class="separator" style="clear: both; text-align: center;">
note the 5V regulator</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Htwgr1TgybU/VzPwRocpYXI/AAAAAAAACY8/WE260sabYfI2Cou4mLWvgKzukE013YfOgCLcB/s1600/20160330_154254.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://4.bp.blogspot.com/-Htwgr1TgybU/VzPwRocpYXI/AAAAAAAACY8/WE260sabYfI2Cou4mLWvgKzukE013YfOgCLcB/s400/20160330_154254.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
In tube</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-H0UGyPKD7f0/VzPwUsDKEgI/AAAAAAAACZI/SZnpB0DWLXgjR2HuIheE_BZvLXURjQq6ACLcB/s1600/20160330_154307.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-H0UGyPKD7f0/VzPwUsDKEgI/AAAAAAAACZI/SZnpB0DWLXgjR2HuIheE_BZvLXURjQq6ACLcB/s400/20160330_154307.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Hlw4Q0LqQ-M/VzPwVzgGOYI/AAAAAAAACZQ/J6TghhGyOog4MPM5eogd2eKhJJuDEv5aACLcB/s1600/20160401_093349.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://1.bp.blogspot.com/-Hlw4Q0LqQ-M/VzPwVzgGOYI/AAAAAAAACZQ/J6TghhGyOog4MPM5eogd2eKhJJuDEv5aACLcB/s400/20160401_093349.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Waterproofed cap</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-1II14V6DGkA/VzPwViZ7IeI/AAAAAAAACZM/Mx599kTCkRwkTNjmoJWSUgP3aAY155tTwCLcB/s1600/20160401_152541.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-1II14V6DGkA/VzPwViZ7IeI/AAAAAAAACZM/Mx599kTCkRwkTNjmoJWSUgP3aAY155tTwCLcB/s640/20160401_152541.jpg" width="360" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
My basement is ruined</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-S9lbiOMIQmk/VzPwWiFCCYI/AAAAAAAACZU/T1Lq1RVWS8Q8vdIaX_01NpF_U1zi5howACLcB/s1600/20160401_174925.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-S9lbiOMIQmk/VzPwWiFCCYI/AAAAAAAACZU/T1Lq1RVWS8Q8vdIaX_01NpF_U1zi5howACLcB/s640/20160401_174925.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
This is the finished tube!</div>
Random pics of the rest of the robot:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-SWrVT43mmbo/VzPw35DNMwI/AAAAAAAACZc/flrlzmQ5C9oiE87kadrmhqAQ0eDenOs8gCLcB/s1600/20160409_161351.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://1.bp.blogspot.com/-SWrVT43mmbo/VzPw35DNMwI/AAAAAAAACZc/flrlzmQ5C9oiE87kadrmhqAQ0eDenOs8gCLcB/s400/20160409_161351.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
My basement is ruined, part 2</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-MJ9vZOJF0uI/VzPw3-MCOQI/AAAAAAAACZk/wTQOfUNzVdwcC6jorf_GKh8pZw6wT30awCLcB/s1600/20160409_182944.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-MJ9vZOJF0uI/VzPw3-MCOQI/AAAAAAAACZk/wTQOfUNzVdwcC6jorf_GKh8pZw6wT30awCLcB/s400/20160409_182944.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-JDx1X5E1uHE/VzPw35_U3zI/AAAAAAAACZg/Wjd6uzcoGaoXw0D2arK6cwoNi_atU-8XwCLcB/s1600/20160409_183139.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-JDx1X5E1uHE/VzPw35_U3zI/AAAAAAAACZg/Wjd6uzcoGaoXw0D2arK6cwoNi_atU-8XwCLcB/s400/20160409_183139.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<i>MY FLOOR</i></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-Ur218gaohtE/VzPw5Tev2oI/AAAAAAAACZo/BO6hjBne5V8SLqvP2SvVzwKNj-mu9z2yQCLcB/s1600/20160410_151756.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://2.bp.blogspot.com/-Ur218gaohtE/VzPw5Tev2oI/AAAAAAAACZo/BO6hjBne5V8SLqvP2SvVzwKNj-mu9z2yQCLcB/s400/20160410_151756.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
My car is ruined</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-79fSSaLCUDw/VzPw5_WribI/AAAAAAAACZs/1jMFVutNR9cB-l4H51eqvXdkOERaude8QCLcB/s1600/20160412_152311.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://2.bp.blogspot.com/-79fSSaLCUDw/VzPw5_WribI/AAAAAAAACZs/1jMFVutNR9cB-l4H51eqvXdkOERaude8QCLcB/s400/20160412_152311.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
ft. the power m8s</div>
<br /></div>
<div>
<br /></div>
So, this is what happened<br />
<b>Sunday</b><b> - 5/1</b><br />
<br />
<ul style="text-align: left;">
<li>Test at Pat Meng's House</li>
<ul>
<li>but in reality we were finishing up the code before we could test</li>
</ul>
<li>We found some moisture problems in the tube: A few motors were crapping out, and somehow touching solder joints and measuring wires seemed to fix the problem</li>
<li>We have silica gel packets inside the tube to absorb water, but they only absorb if it's in the atmosphere</li>
<ul>
<li>what happens is water leaks in reaally slowly (this time not flooding in, so success)</li>
<li>the drips hang onto wherever they leaked in. Over time temperature and pressure difference causes it to evaporate into the tube atmosphere</li>
<li>The water eventually condenses on the electronics and the tube walls</li>
<li>Things short out and stop working right</li>
</ul>
<li>We added a fan to the inside of the tube. Why?</li>
<ul>
<li>Theory is, if we assist water in evaporating (by agitating the atmosphere), we will get the water into the silica gel packets faster, and therefor water will go into the silica gel instead of on the electronics</li>
</ul>
<li>Did it work?</li>
<ul>
<li>yes, but it backfired.</li>
<li>The water evaporated faster, but that just made it easier to condense on electronics. Never again.</li>
</ul>
</ul>
<br />
<b>Monday</b><b> - 5/2</b><br />
<br />
<ul style="text-align: left;">
<li>Meeting at my house to</li>
<ul>
<li>install camera sheaths for fisheye lenses (these ended up not being waterproof and foggin gup)</li>
<li>determine Roger's control preferences and finish the code</li>
<li>mount cameras</li>
</ul>
</ul>
<br />
<b>Tuesday</b><b> - 5/3</b><br />
<br />
<ul style="text-align: left;">
<li>Meeting at Jaden's Aunts pool</li>
<li>Documentation was due this night, we didn't get much testing done.</li>
<li>I think we just finished the code, tested it on the table, took pictures, and then we had to go inside</li>
<li>We finished mounting all the cameras on. Our distance measurement system (tape measure) was way too heavy</li>
<li>The rest of the meeting was attempting to balance the robot in the water</li>
<li>Stay up all night to finish documentation</li>
</ul>
<br />
<b>Wednesday</b><b> - 5/4</b><br />
<br />
<ul style="text-align: left;">
<li>Stayed home because no sleep</li>
<li>Went to Jaden's Aunts pool to finish balancing the robot.</li>
<li>Finish Tech report this night</li>
</ul>
<br />
<b>Thursday</b><b> - 5/5</b><br />
<br />
<ul style="text-align: left;">
<li>We actually finally got to test. Everything was horrible.</li>
<li>The fan backfired, and we only had 1 day to fix this moisture problem</li>
<li>I forgot my mother's birthday.</li>
<ul>
<li>this was pretty bad</li>
</ul>
<li>SOLUTIONS TO MOISTURE PROBLEM</li>
<ul>
<li>10k pullup resistors on all H-Bridge inputs for electrical stability and durability</li>
<li>Tape silica gel packets on strategically determined positions to assist in moisture absorption (AKA put them where the leak is)</li>
<li>Spray the whole circuit board in RustOleum NeverWet spray (smells horrible)</li>
</ul>
<li>I got no sleep.</li>
</ul>
<br />
<b>Friday</b><b> - 5/6</b><br />
<br />
<ul style="text-align: left;">
<li>Reupload code</li>
<li>Close the tube</li>
<li>Test</li>
<ul>
<li>EVERYTHING WORKS</li>
</ul>
</ul>
<div>
This was the first year our robot actually functioned.</div>
<div>
<ul style="text-align: left;">
<li>Motors were fast enough</li>
<li>Robot was balanced</li>
<li>Our claw could actually pick something up</li>
<li>We could easily get 100/260 points</li>
</ul>
<div>
We stayed up that Friday to do our ritual preparation over Google Hangouts</div>
</div>
<div>
<ul style="text-align: left;">
<li>Optimized task order (to get most points)</li>
<li>organized ride logistics and t-shirt distribution</li>
<li>The claw broke for the 5th time that week so I had to stay up again to fix it.</li>
</ul>
</div>
<br />
<b>Saturday - 5/7</b><br />
<br />
<ul style="text-align: left;">
<li>Ray and I wake up at 5 to drive to Villanova. I was surviving on 6 hours of sleep for the past 2 days and 2 cans of Monster.</li>
<li>The tube had moisture but we weren't worried</li>
<ul>
<li>At the pit we realized that our motors were crapping out again. We used a hairdryer to fix that problem and put it all back together.</li>
<li>Our robot worked perfectly. We could last 15 minutes in the pool without having a moisture problem.</li>
</ul>
<li>Get to the pool</li>
<ul>
<li>wait an HOUR because MATE PA logistics are the worst.</li>
<li>Plug in the robot</li>
</ul>
</ul>
<div>
This is when everything falls apart.</div>
<div>
We usually set our power supply to 12.3 volts. When we plugged in the robot our voltmeter read 12.7</div>
<div>
<ul style="text-align: left;">
<li>Run the code</li>
<li>Nothing works at all. except for cameras and servos, but no motor works.</li>
<ul>
<li>We panic.</li>
<li>we collect ourselves, check all connections, check the code, restart everything</li>
<li>our 5 minutes setup is up. Now we cut into our demonstration time.</li>
<li>I thought that perhaps we tightened the tube so much that a cable pushed the Arduino Mega out of it's sockets. We open up the tube so I can perhaps smear my hands on the electronics and hope something works.</li>
<li>Nothing works.</li>
<li>We close it up and throw the robot in the pool to at least measure temperature and use the cameras</li>
<ul>
<li>The cameras are all fogged</li>
<li>The code crashes from attempting to get serial data from a killed Arduino.</li>
</ul>
</ul>
</ul>
<div>
What I suspect happened is the unexpected large power supply killed our TLC or our Arduino, and none of the motors worked. Why did the servos work? I used an external regulator that could handle up to 20V for those motors.</div>
</div>
<div>
<br /></div>
<div>
This was supposed to be the year. But we just got really unlucky. Every year I see people jeering at us for having such a low score. This year it seemed like everyone was sulking in the pit, trying to debug their electronics. No one from lane 3 (our assigned lane) seemed very happy about their performance.</div>
<div>
<br /></div>
<div>
One thing in common? Power supply. I'm not saying the power supply was wrong, but there is a good amount of implications. We still need to autopsy our robot. RIP $1,200.</div>
<div>
<br /></div>
<div>
After that we were shoved into a presentation room of hungry and impatient judges who cut our presentation off mid sentence. I have to be honest, <b>those were the most rude judges</b> I have ever seen. I expect 20 year old college kids to have more decency and patience to accept handouts and allow exposition without letting their stomachs affect their mood...</div>
<div>
<br /></div>
<div>
Below are pictures of everything</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-cb6spa-lUnw/VzPiC8Y_qUI/AAAAAAAACWs/Ji-nPPneroIHZ1YLerJIOuTSbMkDNz9PgCLcB/s1600/2016-05-07%2B09.08.17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-cb6spa-lUnw/VzPiC8Y_qUI/AAAAAAAACWs/Ji-nPPneroIHZ1YLerJIOuTSbMkDNz9PgCLcB/s320/2016-05-07%2B09.08.17.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Our poster that somehow only won 3rd :(</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-uBLptmj8aoU/VzPiCqt_sXI/AAAAAAAACWo/oOVg-j1YVIQUI82s8_0q3uJbJL81UuBAACLcB/s1600/2016-05-07%2B10.26.03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-uBLptmj8aoU/VzPiCqt_sXI/AAAAAAAACWo/oOVg-j1YVIQUI82s8_0q3uJbJL81UuBAACLcB/s320/2016-05-07%2B10.26.03.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
The team that cheered us on and kept our spirits high</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-RHym9q_3Y28/VzPiCcPaj6I/AAAAAAAACWk/ijSOVJU_17UEflTZv53AgyieTpOuRhoTgCLcB/s1600/2016-05-07%2B10.33.53.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-RHym9q_3Y28/VzPiCcPaj6I/AAAAAAAACWk/ijSOVJU_17UEflTZv53AgyieTpOuRhoTgCLcB/s320/2016-05-07%2B10.33.53.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Waiting for a goddamn hour</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-OsNipVEDBZs/VzPiDPQ2o1I/AAAAAAAACWw/qOmbCNuNhqUbe5dr2-YQbQEagZf7CHyjACLcB/s1600/2016-05-07%2B11.42.45.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-OsNipVEDBZs/VzPiDPQ2o1I/AAAAAAAACWw/qOmbCNuNhqUbe5dr2-YQbQEagZf7CHyjACLcB/s320/2016-05-07%2B11.42.45.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Panic</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-CPtg2u3e6nA/VzPiGDGCygI/AAAAAAAACW0/_JVIqQ-6Oi490kaWwHrwluOMD_a9GfMVQCLcB/s1600/2016-05-07%2B15.39.30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://3.bp.blogspot.com/-CPtg2u3e6nA/VzPiGDGCygI/AAAAAAAACW0/_JVIqQ-6Oi490kaWwHrwluOMD_a9GfMVQCLcB/s320/2016-05-07%2B15.39.30.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
We are ded</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-yiA9Diu5DMk/VzPiGIEZQwI/AAAAAAAACW8/JSN8O4iH20Eh54EyoKZM13XjAlkTqqdRQCLcB/s1600/2016-05-07%2B15.39.55.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-yiA9Diu5DMk/VzPiGIEZQwI/AAAAAAAACW8/JSN8O4iH20Eh54EyoKZM13XjAlkTqqdRQCLcB/s320/2016-05-07%2B15.39.55.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
rip</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-F3OOUcVNftE/VzPiGEuXQ3I/AAAAAAAACW4/yTUvbwJ_LkcKEdZWtpsfdRuey_4s8-EpACLcB/s1600/20160410_151756.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://4.bp.blogspot.com/-F3OOUcVNftE/VzPiGEuXQ3I/AAAAAAAACW4/yTUvbwJ_LkcKEdZWtpsfdRuey_4s8-EpACLcB/s320/20160410_151756.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Robot in the car</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-rMETha188y4/VzPiJJNz5kI/AAAAAAAACXI/M1SVdvIFD-U-Eu4kybUVrtGGCiR8lR_iQCLcB/s1600/20160503_180129.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://2.bp.blogspot.com/-rMETha188y4/VzPiJJNz5kI/AAAAAAAACXI/M1SVdvIFD-U-Eu4kybUVrtGGCiR8lR_iQCLcB/s320/20160503_180129.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Robot that was alive on Friday</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-AV593F5l40o/VzPiLZAXmNI/AAAAAAAACXM/tvOeuylne2Q_-xWKdMK4UJyhlq2KGdHSQCLcB/s1600/image_2.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-AV593F5l40o/VzPiLZAXmNI/AAAAAAAACXM/tvOeuylne2Q_-xWKdMK4UJyhlq2KGdHSQCLcB/s320/image_2.jpeg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Carrying everything to competition pool</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-OVToig_PkOQ/VzPiL5YnnkI/AAAAAAAACXQ/tJHRLNypF9oB6tU1AgfPwgBAz5MmHyLOACLcB/s1600/image_3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://4.bp.blogspot.com/-OVToig_PkOQ/VzPiL5YnnkI/AAAAAAAACXQ/tJHRLNypF9oB6tU1AgfPwgBAz5MmHyLOACLcB/s320/image_3.jpeg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Realizing nothing works</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-RgU--b5mTZc/VzPiMmmyb0I/AAAAAAAACXU/vInvIs-MG5Y3_JTybLaVeSrwCa1QNOsegCLcB/s1600/image_5.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://1.bp.blogspot.com/-RgU--b5mTZc/VzPiMmmyb0I/AAAAAAAACXU/vInvIs-MG5Y3_JTybLaVeSrwCa1QNOsegCLcB/s320/image_5.jpeg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Trying to check all connections</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-PbKwsDKjgkQ/VzPiOBOSfAI/AAAAAAAACXc/7wAbsaybhPs1Nl10Xgl93s-Jg-bZ_WBowCLcB/s1600/image_6.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-PbKwsDKjgkQ/VzPiOBOSfAI/AAAAAAAACXc/7wAbsaybhPs1Nl10Xgl93s-Jg-bZ_WBowCLcB/s320/image_6.jpeg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
All the tasks that we didn't complete</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Sw0JrL-7FM4/VzPiN2zbZyI/AAAAAAAACXY/aJdOtiTn5T47SmTbuETlftRyJUEf6TJWwCLcB/s1600/image_7.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-Sw0JrL-7FM4/VzPiN2zbZyI/AAAAAAAACXY/aJdOtiTn5T47SmTbuETlftRyJUEf6TJWwCLcB/s320/image_7.jpeg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
We're done</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-VVEstj9X6o4/VzPiORmLKvI/AAAAAAAACXg/2VCTeBvlnvUO805VRbc9_xjXdimd2AvMQCLcB/s1600/image_8.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-VVEstj9X6o4/VzPiORmLKvI/AAAAAAAACXg/2VCTeBvlnvUO805VRbc9_xjXdimd2AvMQCLcB/s320/image_8.jpeg" width="240" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-wuOyAa2wXqw/VzPiH-x2ALI/AAAAAAAACXE/vCwx867iEowHHWcDnKuW-HXSbHVGn2xSACLcB/s1600/IMG_8047.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://2.bp.blogspot.com/-wuOyAa2wXqw/VzPiH-x2ALI/AAAAAAAACXE/vCwx867iEowHHWcDnKuW-HXSbHVGn2xSACLcB/s320/IMG_8047.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
In the pit, crying</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-QJgn0jWSX5w/VzPiHK2ONiI/AAAAAAAACXA/ALFR4CX9O18vgCZh7zlqPtBGfbfGrTMGQCLcB/s1600/IMG_8100.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://1.bp.blogspot.com/-QJgn0jWSX5w/VzPiHK2ONiI/AAAAAAAACXA/ALFR4CX9O18vgCZh7zlqPtBGfbfGrTMGQCLcB/s320/IMG_8100.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Somehow we won 4th out of 26 teams? With a robot that didn't even swim?</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Though we didn't win or even place this year, I'm still extremely happy with the performance of the club. We got more underclassmen involved than ever, and achieved our ultimate goal to finally build a working robot that looks decent. </div>
<div class="separator" style="clear: both; text-align: left;">
Sadly Ms. G is trading the club off next year. But I'm glad that the club members were able to get involved, and that next year they will NOT have to build from scratch like we have done every year.</div>
<div class="separator" style="clear: both; text-align: left;">
Ultimately, 2017 is so set up for first place from 2016. You're welcome. </div>
<div class="separator" style="clear: both; text-align: left;">
I hope you guys win so hard next year that N.E.R.D.S., Excelsior, SEA RAMS, and all those teams get so rekt that their sponsors all flock to us.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you want more info about the ROV or what we did, you can comment and I'll probably get an email.</div>
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-14400141117933183212016-04-12T20:58:00.000-07:002016-04-12T20:58:04.690-07:00Casio A159WGEA Review (my dream watch)<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
I've always wanted to do a review on my favorite watch of all time: particularly, the A159WGEA-5EF. This model has the maroon face:</div>
<div>
<br />
<div>
<div style="text-align: center;">
<img src="http://mlm-s1-p.mlstatic.com/reloj-casio-retro-a159-dorado-alarma-diaria-cronometro-luz-11684-MLM20047456040_022014-F.jpg" height="266" width="400" /></div>
<div style="text-align: center;">
I feel like the two colors compliment each other very well.</div>
<div style="text-align: left;">
I'll talk a bit about my history with the watch.</div>
<div style="text-align: left;">
I used to have a black Casio watch. I wore it since the 8th grade, and eventually the plastic band just decomposed on my wrist and fell apart.</div>
<div style="text-align: left;">
You might see it featured in some of my past blog posts.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I replaced the band with a gold Timex expansion band. Eventually I got sort of tired of the color mismatch.</div>
<div style="text-align: left;">
I bought a chepa $2 fake Casio online. It looked like this:</div>
<div style="text-align: center;">
<img height="400" src="https://zibbet.s3.amazonaws.com/uploads/photo/file/7361242/gallery_hero_7361242-original.jpg" width="266" /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
It worked well. It kept time. It wasnt bad. In the video below you will see the fake Casio's amazing ability to change colors:</div>
<div style="text-align: left;">
https://www.youtube.com/watch?v=F4tKiIOe_qY</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
There was one problem with it: The construction of course was extremely poor. I dropped the watch once, and the piezo crystal shifted and shorted out the watch. The construction was pretty cheap that just by moving my arm, I could destroy the delicate arrangement of the circuitry inside the watch.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I did some research: this was a fake version of the legendary A159 Casio watch.</div>
<div style="text-align: left;">
The A159 had the same internals as the even more legendary Casio F-91W:</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<img height="225" src="https://i.ytimg.com/vi/ckeETIwiel4/maxresdefault.jpg" width="400" /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Now THIS is a legendary watch with a long history.</div>
<div style="text-align: left;">
Because it was one of the first inexpensive digital watches, people all over bought them. This watch was like a Honda Civic 1995 of watches. It was cheap, it worked, it was reliable, and it has quite a history.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
<img src="http://i.iplsc.com/osama-bin-laden-dobrze-wiedzial-ze-casio-f-91w-to-bombowy-ze/0004JRZGOQPESUVU-C116-F4.jpg" height="268" width="400" /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
That's Osama wearing the watch. If you're likely to be "randomly selected" by the TSA for security check, you really shouldn't wear one of these watches. Al Qaeda trains it's militants how to make time bombs using these watches.</div>
<div style="text-align: left;">
For educational purposes only, I found these documents online:</div>
<div style="text-align: left;">
http://cnqzu.com/library/Anarchy%20Folder/Guerrilla%20Warfare,%20Terrorism/Al%20Qaeda%20Training%20Manual%201.pdf</div>
<div style="text-align: left;">
http://cnqzu.com/library/Anarchy%20Folder/Guerrilla%20Warfare,%20Terrorism/Al%20Qaeda%20Training%20Manual%202.pdf</div>
<div style="text-align: left;">
http://cnqzu.com/library/Anarchy%20Folder/Guerrilla%20Warfare,%20Terrorism/Al%20Qaeda%20Training%20Manual%203.pdf</div>
<div style="text-align: left;">
http://cnqzu.com/library/Anarchy%20Folder/Guerrilla%20Warfare,%20Terrorism/Al%20Qaeda%20Training%20Manual%204.pdf</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
These are archived and translated documents by the government. Somewhere in those documents it might tell you how to take advantage of the circuitry inside the watch.</div>
<div style="text-align: left;">
Here is an article explaining why you should avoid the F-91W: <span style="text-align: center;">http://www.bbc.com/news/magazine-13194733</span></div>
<div style="text-align: left;">
<span style="text-align: center;"><br /></span></div>
<div style="text-align: left;">
Tangent: </div>
<div style="text-align: left;">
I think it's extremely silly for airport security to flag this watch. Any person with basic electrical engineering knowledge would know how to make a time-trigger from ANY digital watch. I will not mention how to do this on this blog for the sake of safety of innocent people.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
So what did I do with the fake watch?</div>
<div style="text-align: left;">
I replaced the cheap internals of the fake A159 with the working ones of the F-91W.</div>
<div style="text-align: left;">
And I got this:</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-NSu7VUOKCyE/Vw3BH3VQrKI/AAAAAAAACWE/nAQcqEjry1okpB9lEQq-RHTkLsvYV9kigCLcB/s1600/20150104_181726.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://3.bp.blogspot.com/-NSu7VUOKCyE/Vw3BH3VQrKI/AAAAAAAACWE/nAQcqEjry1okpB9lEQq-RHTkLsvYV9kigCLcB/s400/20150104_181726.jpg" width="400" /></a></div>
<br />
That's my watch.<br />
<br />
<div style="text-align: left;">
Ever since the band broke this summer, it never felt the same. I've been buying a lot of watches and learning a lot about different movements since I've abandoned this watch. It has been an expensive and time draining hobby, but I learned A LOT from it.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Recently it was my 18th birthday, and I decided to treat myself to my dream watch. It wasn't expensive at all compared to the other watches I owned: only about $40.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I also purchased another fake $2 "retro gold digital watch" for comparison</div>
</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-EDHRM-VetpI/Vw27OGs4hVI/AAAAAAAACVE/hXLj90efYJUL_0MvBHZSDpcTPWNWHQgNQCLcB/s1600/DSC_6648.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-EDHRM-VetpI/Vw27OGs4hVI/AAAAAAAACVE/hXLj90efYJUL_0MvBHZSDpcTPWNWHQgNQCLcB/s400/DSC_6648.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Here are the two side by side. The one on the left is authentic, the right is fake.</div>
<div class="separator" style="clear: both; text-align: center;">
One obvious different is the band length and proportions</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-OJiSH-2JFD0/Vw27OXzrzsI/AAAAAAAACVM/eEpOVEE_DWoQ0EMfjJjLFrtoeJOOZ2uJwCLcB/s1600/DSC_6649.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-OJiSH-2JFD0/Vw27OXzrzsI/AAAAAAAACVM/eEpOVEE_DWoQ0EMfjJjLFrtoeJOOZ2uJwCLcB/s400/DSC_6649.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The authentic version is more finely detailed: brushed gold and gloss gold.</div>
<div class="separator" style="clear: both; text-align: center;">
The fake version is a bit messy. The entire watch is gloss gold. I've tested this watch before and the gold wears off in a single day.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-9z8lAvrZTiM/Vw27OaHftvI/AAAAAAAACVI/WhVn_jNqsOkGcqr6adKTl4Pl2_TX6gp3gCLcB/s1600/DSC_6650.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-9z8lAvrZTiM/Vw27OaHftvI/AAAAAAAACVI/WhVn_jNqsOkGcqr6adKTl4Pl2_TX6gp3gCLcB/s400/DSC_6650.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There is an obvious discrepancy in the band length and quality.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-7_VadeFup3I/Vw27Rff5XFI/AAAAAAAACVQ/uP1rKZ0zmnok-u8sw9u3IG5BnLXgofcHwCLcB/s1600/DSC_6651.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-7_VadeFup3I/Vw27Rff5XFI/AAAAAAAACVQ/uP1rKZ0zmnok-u8sw9u3IG5BnLXgofcHwCLcB/s400/DSC_6651.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The fake watch has some discoloration and distortion on the LCD display.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-CQT4IIp4dAY/Vw27R8LxQwI/AAAAAAAACVY/UJId2RwF7dgY_PMPbK85wk6jJaTQWr6awCLcB/s1600/DSC_6652.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-CQT4IIp4dAY/Vw27R8LxQwI/AAAAAAAACVY/UJId2RwF7dgY_PMPbK85wk6jJaTQWr6awCLcB/s400/DSC_6652.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
One doesn't say "Casio"</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-8T0JHhr0deY/Vw27R4rTTcI/AAAAAAAACVU/Bu4yryCA8AAVimUyqaCsbuOUtXJgJXHwQCLcB/s1600/DSC_6653.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-8T0JHhr0deY/Vw27R4rTTcI/AAAAAAAACVU/Bu4yryCA8AAVimUyqaCsbuOUtXJgJXHwQCLcB/s400/DSC_6653.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The fake watch's band is ALL gold. The real one is only plated on the outside. The method of folding the links can is different and can be noticed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-IqWWQSccx-c/Vw27USR_c8I/AAAAAAAACVc/HdxtyklkJzs0KT9E6rWIl1kbFOz6YUm2gCLcB/s1600/DSC_6654.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-IqWWQSccx-c/Vw27USR_c8I/AAAAAAAACVc/HdxtyklkJzs0KT9E6rWIl1kbFOz6YUm2gCLcB/s400/DSC_6654.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The fake watch is unbranded.</div>
<div class="separator" style="clear: both; text-align: center;">
When I opened up the internals of the fake watch, the piezo crystal is not attached to anything, and there is no gasket for waterproofing.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-Gw2qHOeRxSk/Vw27Vn_t-4I/AAAAAAAACVk/ZRsZ_vf6N-gS-wZOO3zaF51z2r8w-7mrwCLcB/s1600/DSC_6655.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-Gw2qHOeRxSk/Vw27Vn_t-4I/AAAAAAAACVk/ZRsZ_vf6N-gS-wZOO3zaF51z2r8w-7mrwCLcB/s400/DSC_6655.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The buckles for each watch is different.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-httUs615qSw/Vw27ViZjaqI/AAAAAAAACVg/BIIHs1G5-6MclVRAmFZzNzO5MIDIVeLLACLcB/s1600/DSC_6656.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-httUs615qSw/Vw27ViZjaqI/AAAAAAAACVg/BIIHs1G5-6MclVRAmFZzNzO5MIDIVeLLACLcB/s400/DSC_6656.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Holding down the START*STOP/12*24H button on the real casio will make the watch display CASIO.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-CDSo1-gCUAA/Vw27XCwB8oI/AAAAAAAACVo/Wg10wm8r7vgiGJ3OanG7mV4XitTj3uv-ACLcB/s1600/DSC_6657.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-CDSo1-gCUAA/Vw27XCwB8oI/AAAAAAAACVo/Wg10wm8r7vgiGJ3OanG7mV4XitTj3uv-ACLcB/s400/DSC_6657.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There is no response for the fake watch</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-RnCax_zP0pU/Vw27YZCfgYI/AAAAAAAACVs/8FZkJDJhN3gXPGk-7-etlzIY7c4fbHjjQCLcB/s1600/DSC_6658.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-RnCax_zP0pU/Vw27YZCfgYI/AAAAAAAACVs/8FZkJDJhN3gXPGk-7-etlzIY7c4fbHjjQCLcB/s400/DSC_6658.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-ZI1syLIXZaQ/Vw27YqfTbjI/AAAAAAAACVw/si3dzz74JQIR6JceiRqqFFEE_r7q-RkpQCLcB/s1600/DSC_6659.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-ZI1syLIXZaQ/Vw27YqfTbjI/AAAAAAAACVw/si3dzz74JQIR6JceiRqqFFEE_r7q-RkpQCLcB/s400/DSC_6659.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There are obvious quality discrepancies. </div>
<br />
The Casio A159 is just a gold version of the F-91W. If you get "randomly selected" often, you shouldn't wear the 159 or the 158 (silver version) to an airport.<br />
<br />
I absolutely love this watch to the point that I don't wear it: its just for display.<br />
It's simple: it tells the time, day and date, it has an alarm, and a stopwatch. If you're in the dark, it has a light.<br />
<br />
You might find a lot more gold and silver Casios these days, particularly the Casio A168<br />
<img alt=" photo A168WG.jpg" src="http://i896.photobucket.com/albums/ac163/iradd/A168WG.jpg" /><br />
<br />
These cheap gold watches have come into style these days among the hypebeasts and fuccbois. I'm honestly sort of sad about this because it ruins the sophistication of the watch, but I'm happy that people appreciate the style.<br />
<br />
<br /></div>
</div>
</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com3tag:blogger.com,1999:blog-4781278098745493051.post-56651285248781713382016-03-13T12:09:00.002-07:002016-03-13T12:09:20.379-07:00Portable Bluetooth Speakers (fin)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
I finally invested in a $20 heat gun from Lowes. They're not only useful for bending acrylic sheet but also for desoldering SMD components:</div>
<div class="separator" style="clear: both; text-align: left;">
http://www.instructables.com/id/Heatgun-Desoldering/?ALLSTEPS</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-tK9Lzp0iL_M/VuWOG-0bBoI/AAAAAAAACS4/4PKZ-SxXb1ES0aPOJwIjSLChMhoiFc1lg/s1600/DSC_6576.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-tK9Lzp0iL_M/VuWOG-0bBoI/AAAAAAAACS4/4PKZ-SxXb1ES0aPOJwIjSLChMhoiFc1lg/s400/DSC_6576.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You want to work on a surface that will not be damaged by heat. In this case I worked on some ceramic tiles and newspaper.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-SjHfHLlHHwQ/VuWOGt8BMxI/AAAAAAAACS0/c4WtDNMVXFQDG25OvbwSjshPq80TFlfdA/s1600/DSC_6577.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-SjHfHLlHHwQ/VuWOGt8BMxI/AAAAAAAACS0/c4WtDNMVXFQDG25OvbwSjshPq80TFlfdA/s400/DSC_6577.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This was the outcome of the first bend (crack is from the failure last time).</div>
<div class="separator" style="clear: both; text-align: center;">
Turn on the heat gun to full heat and run it up and down the line until the acrylics gets all floppy.</div>
<div class="separator" style="clear: both; text-align: center;">
When it's malleable enough, you can bend it to the correct angle and hold until it sets.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-YEiIGKF42A0/VuWOH1yzJgI/AAAAAAAACTA/CIRvWoscsWA0LN_EqHYVqUaQ7Zvn0L4xw/s1600/DSC_6578.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-YEiIGKF42A0/VuWOH1yzJgI/AAAAAAAACTA/CIRvWoscsWA0LN_EqHYVqUaQ7Zvn0L4xw/s400/DSC_6578.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Doing the second bend</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-BIfXtSzGfFs/VuWOIsGwg-I/AAAAAAAACTI/wJbzfGNWfrIjd8HwsO8ujB1edGhGyXwKQ/s1600/DSC_6579.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://1.bp.blogspot.com/-BIfXtSzGfFs/VuWOIsGwg-I/AAAAAAAACTI/wJbzfGNWfrIjd8HwsO8ujB1edGhGyXwKQ/s640/DSC_6579.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
All the bends are complete! we have a nice triangle.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-fyDv2uK0VRA/VuWOMGk8vLI/AAAAAAAACTo/wYXcBt98DWMtaffmZt1g-L9pf_uShBNzw/s1600/DSC_6588.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-fyDv2uK0VRA/VuWOMGk8vLI/AAAAAAAACTo/wYXcBt98DWMtaffmZt1g-L9pf_uShBNzw/s400/DSC_6588.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-tOKLhUQO7fA/VuWOM5yyUOI/AAAAAAAACTs/24u_SbDg4dIQxbxNUgs0V9uW6TrveSyJg/s1600/DSC_6589.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-tOKLhUQO7fA/VuWOM5yyUOI/AAAAAAAACTs/24u_SbDg4dIQxbxNUgs0V9uW6TrveSyJg/s400/DSC_6589.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I bought a huge sheet of faux leather for $10. I will be covering the frame in this so it looks sweg.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-BtXLpcDyeMo/VuWONW-oBfI/AAAAAAAACTw/VFIKK5affxgBpmzOOA5r76sCu5uRWOhsA/s1600/DSC_6590.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-BtXLpcDyeMo/VuWONW-oBfI/AAAAAAAACTw/VFIKK5affxgBpmzOOA5r76sCu5uRWOhsA/s400/DSC_6590.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Mark out the surface area of the triangle. Leave extra room for folding.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-fgcu4PY0vMk/VuWONqBi-_I/AAAAAAAACT0/ys23CV7K6fEahw0gB_G_qosLvf2GhF2aQ/s1600/DSC_6591.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-fgcu4PY0vMk/VuWONqBi-_I/AAAAAAAACT0/ys23CV7K6fEahw0gB_G_qosLvf2GhF2aQ/s400/DSC_6591.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This part isn't totally necessary, but it's good practice. You will want to line the inside of your speaker enclosure with some sort of dampening material so it doesn't vibrate and sound crappy.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-2tYeopJm8H0/VuWOOOxXzCI/AAAAAAAACT4/WnptbwEVeNMIOtRvw6uwuoVgzzw4QBsDg/s1600/DSC_6592.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-2tYeopJm8H0/VuWOOOxXzCI/AAAAAAAACT4/WnptbwEVeNMIOtRvw6uwuoVgzzw4QBsDg/s400/DSC_6592.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I used some material from an air filter. Here I measured out how much I needed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-3jk9fkQLIDg/VuWOPO4vdTI/AAAAAAAACUA/1ry46kH4iQUj2j643S3dn9SLGC1alq3Hw/s1600/DSC_6593.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-3jk9fkQLIDg/VuWOPO4vdTI/AAAAAAAACUA/1ry46kH4iQUj2j643S3dn9SLGC1alq3Hw/s400/DSC_6593.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut holes for the speakers.</div>
<div class="separator" style="clear: both; text-align: center;">
I secured the material in place with hot glue.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-6mtzlvtceYk/VuWOO6st7FI/AAAAAAAACT8/_iY6HGpgydgOSdQ2zpuef5r-Xnjz53HdA/s1600/DSC_6594.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-6mtzlvtceYk/VuWOO6st7FI/AAAAAAAACT8/_iY6HGpgydgOSdQ2zpuef5r-Xnjz53HdA/s400/DSC_6594.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I didn't have a great method of securing the leather onto the surface. I used a combination of glue stick glue and hot glue to secure the leather in place.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-waMyVHhuU8Y/VuWOPWIHfnI/AAAAAAAACUE/-kT86nbuLMk6CzTf2MS0A7hmoNWu7geIA/s1600/DSC_6595.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-waMyVHhuU8Y/VuWOPWIHfnI/AAAAAAAACUE/-kT86nbuLMk6CzTf2MS0A7hmoNWu7geIA/s400/DSC_6595.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Simply wrap the leather around the plastic casing.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-uZGvSsiXFck/VuWOQsp5LvI/AAAAAAAACUI/7cKcNZW8nV0DV1hN6E2xGY6JJVyyQNyGw/s1600/DSC_6596.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://4.bp.blogspot.com/-uZGvSsiXFck/VuWOQsp5LvI/AAAAAAAACUI/7cKcNZW8nV0DV1hN6E2xGY6JJVyyQNyGw/s400/DSC_6596.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The downside of using some sort of solid glue is that it leaves marks.</div>
<div class="separator" style="clear: both; text-align: center;">
After you're done wrapping, cut out the holes that were there with a knife.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
This next part is an overview of the circuitry inside of the portable speakers.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-FNYzhdqrz80/VuWOISruxbI/AAAAAAAACTE/MuRSoiSjAX07EJ44bxTzmjHLN2sqjHlew/s1600/DSC_6580.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-FNYzhdqrz80/VuWOISruxbI/AAAAAAAACTE/MuRSoiSjAX07EJ44bxTzmjHLN2sqjHlew/s400/DSC_6580.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I took apart a portable phone charger for the 5v power source. This power source was a bit small and couldn't provide sufficient power for max volume. You would want to take apart a battery back that has more than 1000mAh capacity.</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-uFU4KyHU8TE/VuWOJllKGYI/AAAAAAAACTQ/Q5kcgUmcoTMSU2YLrDBY1QjLFea8a8TEw/s1600/DSC_6582.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://3.bp.blogspot.com/-uFU4KyHU8TE/VuWOJllKGYI/AAAAAAAACTQ/Q5kcgUmcoTMSU2YLrDBY1QjLFea8a8TEw/s400/DSC_6582.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I removed the USB socket from the board to save space.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/--2S9xIOE1Fw/VuWOKHbM_HI/AAAAAAAACTU/GGOXA_O9N1MQQz-UbRqD19gjURzwwhAEw/s1600/DSC_6583.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/--2S9xIOE1Fw/VuWOKHbM_HI/AAAAAAAACTU/GGOXA_O9N1MQQz-UbRqD19gjURzwwhAEw/s400/DSC_6583.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldered wires to the aux female connector.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-cn96dW8YNDI/VuWOKT_buZI/AAAAAAAACTY/6qkdYusprRMwST7RP7BC2__OVqw9zZWdA/s1600/DSC_6584.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-cn96dW8YNDI/VuWOKT_buZI/AAAAAAAACTY/6qkdYusprRMwST7RP7BC2__OVqw9zZWdA/s400/DSC_6584.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldering the aux plug to the PAM8403 amplifier.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-SOgGS87q1Yk/VuWOLw1_maI/AAAAAAAACTk/0ctln9h-Tk0Yq8IuJ7opgSBocNQwSLVsg/s1600/DSC_6587.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://2.bp.blogspot.com/-SOgGS87q1Yk/VuWOLw1_maI/AAAAAAAACTk/0ctln9h-Tk0Yq8IuJ7opgSBocNQwSLVsg/s400/DSC_6587.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Here, everything is connected.</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<ul>
<li style="text-align: left;">Speakers connected to respective "left" and "right" outputs of the PAM8403 amplifier</li>
<li style="text-align: left;">TRS female connected to respective "left" and "right" inputs of the amplifier</li>
<li style="text-align: left;">Power source connected to switch, connected to the amplifier.</li>
</ul>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
We almost forgot to add bluetooth!</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-oE2jDysVrEc/VuWOQy8MxxI/AAAAAAAACUM/Qsf567tvxIcMi0jr3CkKqc-CpWFrQnyHA/s1600/DSC_6597.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://1.bp.blogspot.com/-oE2jDysVrEc/VuWOQy8MxxI/AAAAAAAACUM/Qsf567tvxIcMi0jr3CkKqc-CpWFrQnyHA/s400/DSC_6597.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I bought a USB powered bluetooth module for ~$5. These are extremely useful if you want to add bluetooth audio to your car.</div>
<div class="separator" style="clear: both; text-align: center;">
We just need to take this apart, connect it to the speaker power, and connect the audio output in parallel to the existing plug.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-WpWEsT5EyMo/VuWOQwemVHI/AAAAAAAACUQ/-Vg7AI0dm1UmcOpcZkBexZj5sZX19hfaA/s1600/DSC_6598.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://2.bp.blogspot.com/-WpWEsT5EyMo/VuWOQwemVHI/AAAAAAAACUQ/-Vg7AI0dm1UmcOpcZkBexZj5sZX19hfaA/s640/DSC_6598.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I asked a friend to cut out the endcaps for this project. The outcome was beautiful.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-B97IMpSrtBk/VuWORdox9PI/AAAAAAAACUU/jBUr3ATZxNss04WisViuHI0fWXtnr8d3g/s1600/DSC_6599.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://4.bp.blogspot.com/-B97IMpSrtBk/VuWORdox9PI/AAAAAAAACUU/jBUr3ATZxNss04WisViuHI0fWXtnr8d3g/s640/DSC_6599.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-ZTjzl6UhZ7w/VuWPWnQjKYI/AAAAAAAACUk/XQdxDtd8GaE1TROQI06Luke_25PecDuiw/s1600/20160211_015800.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://4.bp.blogspot.com/-ZTjzl6UhZ7w/VuWPWnQjKYI/AAAAAAAACUk/XQdxDtd8GaE1TROQI06Luke_25PecDuiw/s640/20160211_015800.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After all the electronics were finished, I shoved everything into the speaker box and glued in the end caps.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Sn_9HGI_3aI/VuWPWvDGylI/AAAAAAAACUo/eme3xQhJAac1wW8rERAZYSDt1GKKQv_Jg/s1600/20160211_015820.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://3.bp.blogspot.com/-Sn_9HGI_3aI/VuWPWvDGylI/AAAAAAAACUo/eme3xQhJAac1wW8rERAZYSDt1GKKQv_Jg/s640/20160211_015820.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I have the recharging circuit board poking out so I can charge it </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Suggestions for the future:<br />
<br />
<ul style="text-align: left;">
<li>Use a 10,000mAH power source. with more power, your speakers will be louder, last longer, and have exceptional range for bluetooth</li>
<li>perhaps have a circuit board in the future so the inside isn't a messy nest of wires.</li>
</ul>
<br />
That's it for now! Hope you guys enjoyed.<br />
<br />
<br />
<br />
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-28006726075601985772016-01-24T08:54:00.000-08:002016-01-24T08:54:03.383-08:00Portable Bluetooth Speakers<div dir="ltr" style="text-align: left;" trbidi="on">
Back in 8th grade when I had a lot more time on my hands, I always wanted to build a <b>decent</b> pair of speakers.<br />
I had built several speakers back then already: some were literally just speakers with an amplifier circuit, all exposed<br />
some were speakers people threw out and I modified them<br />
most of them were just ugly, delicate, and not presentable or usable in everyday conditions.<br />
<br />
This folder of links has been on my Google Chrome browser for 4 years:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-P3ODgLjkVFE/VqT7c1n1z5I/AAAAAAAACR0/UElasmKq0rI/s1600/DSC_6575.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="265" src="http://2.bp.blogspot.com/-P3ODgLjkVFE/VqT7c1n1z5I/AAAAAAAACR0/UElasmKq0rI/s400/DSC_6575.JPG" width="400" /></a></div>
<br />
<br />
The links that I told myself I would look at eventually:<br />
<br />
<ul style="text-align: left;">
<li><a href="http://ccs.exl.info/cust_cr.html">http://ccs.exl.info/cust_cr.html</a> - this link was useful for finding out what components I needed to build a real nice amplifier circuit</li>
<li><a href="http://www.diyaudioandvideo.com/Guide/BuildSpeakerBox/">http://www.diyaudioandvideo.com/Guide/BuildSpeakerBox/</a> - this page gives data for calculating what the dimensions of your speaker box should be based on what tones you want to resonate most. It also gives data on what material you should use for your speakers, and what find of damping structure you should put inside your speaker box.</li>
<li><a href="http://www.circuits.dk/calculator_multi_layer_aircore.htm">http://www.circuits.dk/calculator_multi_layer_aircore.htm</a> - calculating the amount of turns you should have on an inductor coil for optimal bass response</li>
<li><a href="http://www.jlaudio.ca/header/Support/Tutorials/Enclosure+Bracing/Tutorial%3A+Enclosure+Bracing/624625">http://www.jlaudio.ca/header/Support/Tutorials/Enclosure+Bracing/Tutorial%3A+Enclosure+Bracing/624625</a> - this discusses the structure inside your speaker box so that air can move through it </li>
<li><a href="http://www.instructables.com/id/DIY-Hi-Fi-WiBAQ-Speakers/#intro">http://www.instructables.com/id/DIY-Hi-Fi-WiBAQ-Speakers/#intro</a> - general instructions on how to build speakers!</li>
</ul>
<div>
As you can see, building speakers is a <i style="font-weight: bold;">very</i> involved process. This is probably the reason why I did not go forth with this project back in 8th grade: the amount of things I needed to consider were daunting and I put it off.</div>
<div>
<ul style="text-align: left;">
<li>I would need to consider how much money I wanted to spend on what type of amplifier circuit: Class A? B? C? D? each class gives a different sound quality, but A is much more expensive than D, and much less power efficient. It's the difference between vacuum tube amplifiers, and a regular transistor based amplifier:<br /><div style="text-align: center;">
<img height="145" src="http://i.kinja-img.com/gawker-media/image/upload/s--EaYvwj2_--/18mo1dkqdusvajpg.jpg" width="200" />vs<img height="150" src="http://www.haoyuelectronics.com/Attachment/PAM8403/PAM8403_1.jpg" width="200" /></div>
</li>
<li>I would need to consider the shape of my speaker and the structure inside. There are two ways to approach this: a ton of trial and error or a ton of math.</li>
<li>I would need to consider what material I would build my box out of. Should I use the acrylic sheets I have lying around, or should I invest in MDF board for higher sound quality?</li>
</ul>
<div>
So I never took the time to consider all these things.</div>
</div>
<div>
<br /></div>
<div>
Yesterday I looked at the project again for the first time. I realized that sometimes you need to stop thinking and just do: otherwise you stay stuck. </div>
<div>
Here are the plans for the speaker:</div>
<div>
<ul style="text-align: left;">
<li>Triangular prism shape (like a Toblerone box)</li>
<li>Build out of acrylic sheet, covered with faux leather</li>
<li>Wooden end caps </li>
<li>two speakers in the front, two tweeter speakers on the side</li>
<li>Class D amplifier (This time around I don't think I want to get involved with figuring out circuitry, so I'm going to use a prebuilt Class D amplifier, the PAM8403. It's low voltage, cheap, and relatively high quality)</li>
<li>Bluetooth and auxiliary connectivity!</li>
<li>2600mAh rechargable battery</li>
</ul>
</div>
<div>
It might not be the highest quality or the most optimal design, but it's better to start something than to not do anything at all.</div>
<div>
<br /></div>
<div>
Here is the progress so far.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-B9qBNQGeWzc/VqT7XIGP_bI/AAAAAAAACQw/d2o9eZlXvSg/s1600/DSC_6566.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-B9qBNQGeWzc/VqT7XIGP_bI/AAAAAAAACQw/d2o9eZlXvSg/s400/DSC_6566.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You need an 11" x 14.75" sheet of acrylic</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-F8BWkMMRxOA/VqT7XRMiWYI/AAAAAAAACQ0/TBqcj5PnakI/s1600/DSC_6567.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-F8BWkMMRxOA/VqT7XRMiWYI/AAAAAAAACQ0/TBqcj5PnakI/s400/DSC_6567.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some random trash for dampening the inside of your speaker box (this is so that when the speaker shakes, the whole speaker box doesn't shake and cause distortion)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Yl-TRQVwp24/VqT7Xd55gGI/AAAAAAAACQ4/Cmwy1Tvx47g/s1600/DSC_6568.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-Yl-TRQVwp24/VqT7Xd55gGI/AAAAAAAACQ4/Cmwy1Tvx47g/s400/DSC_6568.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Speakers and tweeters</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-SIXG6Eg09MM/VqT7ZwUnY2I/AAAAAAAACRQ/pn0wHHa_UVw/s1600/DSC_6569.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-SIXG6Eg09MM/VqT7ZwUnY2I/AAAAAAAACRQ/pn0wHHa_UVw/s400/DSC_6569.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Switch, PAM8403, some nuts, LED + resistor (for power indication), 100uf capacitors for the high pass filter for tweeters</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-rzU57h-h8jc/VqT7Z2U4W2I/AAAAAAAACRI/MoZHWHEmZeQ/s1600/DSC_6570.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://1.bp.blogspot.com/-rzU57h-h8jc/VqT7Z2U4W2I/AAAAAAAACRI/MoZHWHEmZeQ/s400/DSC_6570.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut the sheet to size</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-t0GktzqppS0/VqT7ZzBxL3I/AAAAAAAACRM/OiFmVMyxUCA/s1600/DSC_6571.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-t0GktzqppS0/VqT7ZzBxL3I/AAAAAAAACRM/OiFmVMyxUCA/s400/DSC_6571.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
mark down where you need to bend it (for the equilateral triangle shape)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-xPoGAcB-Uag/VqT7btrliqI/AAAAAAAACRg/v3xfkUKNrzU/s1600/DSC_6572.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-xPoGAcB-Uag/VqT7btrliqI/AAAAAAAACRg/v3xfkUKNrzU/s400/DSC_6572.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
mark out where you need to cut the holes for the speakers</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-sifRXWeQ8i4/VqT7b3okaBI/AAAAAAAACRk/B40djnGQaA4/s1600/DSC_6573.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-sifRXWeQ8i4/VqT7b3okaBI/AAAAAAAACRk/B40djnGQaA4/s400/DSC_6573.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
nice fit!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-FPxRU4UCVbQ/VqT7cB3dApI/AAAAAAAACRs/6dove6Y2cPg/s1600/DSC_6574.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-FPxRU4UCVbQ/VqT7cB3dApI/AAAAAAAACRs/6dove6Y2cPg/s400/DSC_6574.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
attempt to bend plexiglass</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
This is where I stopped.<br />
Along with needing to acquire a bluetooth module, a battery, leather, wood, and an audio jack, I also needed to buy a heat gun.<br />
Usually when I bend small pieces of plexiglass I use a cigar torch lighter:<br />
<div style="text-align: center;">
<img src="http://ecx.images-amazon.com/images/I/413phftLdzL._SY355_.jpg" /></div>
<div style="text-align: left;">
I don't have a nichrome wire heating element to bend a whole sheet this large...</div>
<div style="text-align: left;">
For now this project is at a pause, but I will keep updated on the progress!</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-23439872412521400572016-01-10T18:49:00.002-08:002016-01-10T18:50:16.680-08:00Printing on Lighters<div dir="ltr" style="text-align: left;" trbidi="on">
In a previous post I showed how to engrave a metal lighter:<br />
http://tsjwang.blogspot.com/2015/09/bang-bang-zippo-engraving.html<br />
<br />
If you tried this method on a disposable lighter, the lighter would probably burst. You'd be making the walls thinner on a plastic container that's already under a bunch of pressure.<br />
<br />
So what if you want to customize your a lighter?<br />
<br />
Ayy<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7DNkr98Jzz8/VpMUGAXy68I/AAAAAAAACNE/9j1iojOHITg/s1600/DSC_6526.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-7DNkr98Jzz8/VpMUGAXy68I/AAAAAAAACNE/9j1iojOHITg/s640/DSC_6526.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is the first one lighter I personalized. (those splotches are totally intentional)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-W0UlW64hDWM/VpMUFyU07TI/AAAAAAAACM8/Eh-l7XnGvYc/s1600/DSC_6525.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-W0UlW64hDWM/VpMUFyU07TI/AAAAAAAACM8/Eh-l7XnGvYc/s640/DSC_6525.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;">The second lighter I tried (the fading was not intentional)</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;">Inspired by this Vic Mensa:</span></div>
<div class="separator" style="clear: both; text-align: center;">
<img height="221" src="https://jakekrzeczowski.files.wordpress.com/2013/11/vicmensa_bryanlamb_1.jpg?w=672&h=372&crop=1" style="text-align: left;" width="400" /><span style="text-align: left;"> </span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;">The story behind "SAVEMONEY": </span><span style="text-align: left;">https://www.redbullsoundselect.com/artists/SaveMoney</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
The method I used was similar to the way t-shirts are silkscreen printed. Just a stencil and some paint.<br />
This particular lighter I'm printing for a friend :D<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/--ZDqRDMN65o/VpMUGD2eSCI/AAAAAAAACNA/G1aXlDDggM4/s1600/DSC_6527.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://4.bp.blogspot.com/--ZDqRDMN65o/VpMUGD2eSCI/AAAAAAAACNA/G1aXlDDggM4/s400/DSC_6527.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Get a lighter. </div>
<div class="separator" style="clear: both; text-align: left;">
The Dollar Tree sells lighters at a really nice price. Bic Lighters usually cost $1 - 2.</div>
<div class="separator" style="clear: both; text-align: left;">
At the Dollar Tree, a pack of three lighters costs $1. The also come with adjustable flame in case you needed to use your lighter as a flamethrower for self defense.</div>
<div class="separator" style="clear: both; text-align: left;">
A pack of two Scripto lighters (better quality) also costs $1.</div>
<div class="separator" style="clear: both; text-align: left;">
Things generally cost $1 at the Dollar Tree.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-8dYE4wkbPVg/VpMUJXWzkTI/AAAAAAAACNU/x0xbDY4hlWA/s1600/DSC_6528.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-8dYE4wkbPVg/VpMUJXWzkTI/AAAAAAAACNU/x0xbDY4hlWA/s320/DSC_6528.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Get a design down. Featured above, common slang used in San Francisco.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-kjnHTDV3q9s/VpMUJ9-1GVI/AAAAAAAACNc/r5ekIMpAsXk/s1600/DSC_6529.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-kjnHTDV3q9s/VpMUJ9-1GVI/AAAAAAAACNc/r5ekIMpAsXk/s320/DSC_6529.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Print</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Y0upnZPvNXQ/VpMUJ6NnnpI/AAAAAAAACNY/o2dWxAB8beo/s1600/DSC_6530.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-Y0upnZPvNXQ/VpMUJ6NnnpI/AAAAAAAACNY/o2dWxAB8beo/s320/DSC_6530.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Break out the scissors and gluesticks!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-zfjfQOuTdmI/VpMUNtXt10I/AAAAAAAACNs/ZOivABRMOEE/s1600/DSC_6531.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-zfjfQOuTdmI/VpMUNtXt10I/AAAAAAAACNs/ZOivABRMOEE/s320/DSC_6531.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Glue the cut out onto the lighter. Make sure it's firmly impressed onto the lighter on the position you want.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Riw0tFEHBo0/VpMUOUMl4JI/AAAAAAAACN0/pESS1Ti6_XE/s1600/DSC_6532.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-Riw0tFEHBo0/VpMUOUMl4JI/AAAAAAAACN0/pESS1Ti6_XE/s320/DSC_6532.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Use an X-Acto knife to cut out horizontal lines first. Cut from left to right.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-vlV2dR57yoU/VpMUOYr-QUI/AAAAAAAACNw/OY4y_oMtAPs/s1600/DSC_6533.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-vlV2dR57yoU/VpMUOYr-QUI/AAAAAAAACNw/OY4y_oMtAPs/s320/DSC_6533.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After that, cut from top to bottom.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ykNCws8SGzo/VpMURBhzMlI/AAAAAAAACOE/GA4p6FSMj24/s1600/DSC_6534.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-ykNCws8SGzo/VpMURBhzMlI/AAAAAAAACOE/GA4p6FSMj24/s640/DSC_6534.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
All the letters removed. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-QMughcWXDpg/VpMUR0Fd3GI/AAAAAAAACOM/w9JPQHuiPkY/s1600/DSC_6535.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-QMughcWXDpg/VpMUR0Fd3GI/AAAAAAAACOM/w9JPQHuiPkY/s640/DSC_6535.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Apply your sister's nailpolish.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-KEkerYLNPGw/VpMURvO-yRI/AAAAAAAACOI/xzTLySanV_c/s1600/DSC_6536.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-KEkerYLNPGw/VpMURvO-yRI/AAAAAAAACOI/xzTLySanV_c/s640/DSC_6536.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After it dries for 30 minutes, rinse the paper portion of the lighter under water. I don't think you want to submerge the whole lighter if you want it to work in the future.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tPbO15krmpU/VpMUV_zIHOI/AAAAAAAACOc/emOMjC2t_U8/s1600/DSC_6537.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-tPbO15krmpU/VpMUV_zIHOI/AAAAAAAACOc/emOMjC2t_U8/s640/DSC_6537.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
When the paper is wet, it's a lot easier to peel off. The gluestick glue also dissolves in water, which is a big help.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-CiFriN1b1Hg/VpMUXE6vVAI/AAAAAAAACOk/hVotaQXLhx0/s1600/DSC_6538.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-CiFriN1b1Hg/VpMUXE6vVAI/AAAAAAAACOk/hVotaQXLhx0/s640/DSC_6538.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: center;">
After all the paper is peeled off, scratch off any blemishes and apply a coat of transparent lacquer (clear nailpolish)!</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bteXGRSXSeo/VpMUXBhFYPI/AAAAAAAACOo/fEP8WmM5EWE/s1600/DSC_6539.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://2.bp.blogspot.com/-bteXGRSXSeo/VpMUXBhFYPI/AAAAAAAACOo/fEP8WmM5EWE/s640/DSC_6539.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
And now you just wait for it to dry.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-mPuAFKFYerE/VpMUZSxJr4I/AAAAAAAACO0/HRaIjGdbzpY/s1600/DSC_6540.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-mPuAFKFYerE/VpMUZSxJr4I/AAAAAAAACO0/HRaIjGdbzpY/s640/DSC_6540.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RekZe4zFdl8/VpMUZlIMvhI/AAAAAAAACO4/1j0m954kvq0/s1600/DSC_6541.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-RekZe4zFdl8/VpMUZlIMvhI/AAAAAAAACO4/1j0m954kvq0/s640/DSC_6541.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
This method isn't only applicable to lighters. You could print on anything you shouldn't engrave or want color on, like your TI N-Spire, your phone case, etc.<br />
In the near future I think I would like to try printing some logos. Maybe I can start selling some Gucci Chanel Rolex lighters...<br />
<br />
I hope you learned! If you try this out, please post pictures of what you made!</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-66795943267610330052015-12-05T08:53:00.000-08:002015-12-05T08:54:22.641-08:00DIY Apple Clock<div dir="ltr" style="text-align: left;" trbidi="on">
In honor of my recent watch obsession and in obligation to post an old project, today I'll talk about my <a href="http://www.instructables.com/id/DIY-Apple-Clock/">DIY Apple Clock.</a><br />
<br />
Ever since I started tinkering with electronics I always wanted to build a clock of some sort. I feel like that's a sort of rite of passage for a lot of tinkerers.<br />
Building a clock tests your ability of learning how to use seven segment displays<br />
It also tests your understanding of keeping in your program and how to handle interrupts<br />
<br />
For me, I finally decided to build a clock because I wanted to build something beautiful and elegant. Most of the time I leave my projects as <a href="http://tsjwang.blogspot.com/2013_11_01_archive.html">bare </a><a href="http://tsjwang.blogspot.com/2013/08/diy-arduino-mega-2560.html">circuit</a><a href="http://www.instructables.com/id/Cheap-and-Easy-SD-WAVE-Player/"> boards</a><a href="http://www.instructables.com/id/DIY-5-USBTinyISP/">...</a> because I think it already looks nice. This time I decided to at least have an enclosure.<br />
I also had these <a href="https://www.sparkfun.com/products/retired/12710">bubble displays</a> lying around, and I thought they looked pretty damn nice.<br />
<br />
<br />
I also just came back from a summer program and got over my fear of reading datasheets. I took the opportunity of summer to test my datasheet reading abilities and use something outside of the comfort range of Arduino.<br />
<br />
The full Instructable is in that first link: I'm only going to give a digest of the project.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Ugj_Ib8n68o/VmJjtq4IZVI/AAAAAAAACDk/Ubw-yQf_mYY/s1600/20150904_125114.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="http://3.bp.blogspot.com/-Ugj_Ib8n68o/VmJjtq4IZVI/AAAAAAAACDk/Ubw-yQf_mYY/s640/20150904_125114.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is a picture to show you how the completed product looks. More photos at the end.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="http://4.bp.blogspot.com/-drZkyGIxIsw/VmJjzy8DukI/AAAAAAAACEM/HTdAtA55pBI/s1600/DSC_6439.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-drZkyGIxIsw/VmJjzy8DukI/AAAAAAAACEM/HTdAtA55pBI/s640/DSC_6439.JPG" width="640" /></a><br />
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Here is a layout of the parts we need. </div>
<div style="text-align: center;">
<br /></div>
<br />
<li style="text-align: left;">1x PCB (not shown)</li>
<li style="text-align: left;">1x Apple earbuds case (not shown)</li>
<li style="text-align: left;">1x 74HC595 shift register</li>
<li style="text-align: left;">1x ATTiny44 or ATTiny84</li>
<li style="text-align: left;">1x 16MHz crystal oscillator</li>
<li style="text-align: left;">1x 1N4001 or 4007 power diode</li>
<li style="text-align: left;">1x USB B mini port</li>
<li style="text-align: left;">1x Li-Ion rechargeable battery</li>
<li style="text-align: left;">1x bubble display</li>
<li style="text-align: left;">These two bags of nuts and bolts I bought at RadioShack and I don't know what to call it but its in the pictures</li>
<li style="text-align: left;">2x pushbutton switches</li>
<li style="text-align: left;">3x 10 kohm resistors</li>
<li style="text-align: left;">4x 330 ohm resistors</li>
<br />
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-heinjgymBac/VmJjx1mlU3I/AAAAAAAACD0/KMbWL6IBPJc/s1600/DSC_6435.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-heinjgymBac/VmJjx1mlU3I/AAAAAAAACD0/KMbWL6IBPJc/s640/DSC_6435.JPG" width="640" /></a></div>
<br />
<div style="text-align: left;">
This is how the working circuit looked like on a breadboard. Most people who build clocks go ahead and use the ATMega328... I wanted to challenge myself and make the design as cost effective as possible, so I used the ATTiny44. It was fun reading the <a href="http://www.atmel.com/images/doc8006.pdf">datasheet</a>s to get the most out of the chip.</div>
<div style="text-align: center;">
<br /></div>
I explain in heavy detail in the Instructables how I used Pin Change Interrupts (PCINT) instead of External Interrupts (INT)<br />
Here are good reads:<br />
<br />
<ul style="text-align: left;">
<li>http://thewanderingengineer.com/2014/08/11/arduino-pin-change-interrupts/</li>
<li>http://thewanderingengineer.com/2014/08/11/pin-change-interrupts-on-attiny85/</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3D2azfi8T_0/VmJkg9Cw5dI/AAAAAAAACMI/arkG2qhFyvg/s1600/FA00JC5IE4ZVO31.LARGE.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-3D2azfi8T_0/VmJkg9Cw5dI/AAAAAAAACMI/arkG2qhFyvg/s320/FA00JC5IE4ZVO31.LARGE.gif" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-hb30YcfTsjk/VmJkg_W5xLI/AAAAAAAACME/_ZSP-_RUIX0/s1600/FDNT4OCIE4ZVGCL.LARGE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="194" src="http://1.bp.blogspot.com/-hb30YcfTsjk/VmJkg_W5xLI/AAAAAAAACME/_ZSP-_RUIX0/s320/FDNT4OCIE4ZVGCL.LARGE.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Also featured in this project is multiplexing. How did I control 28 segments with only 3 pins???</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Z6FptIztpLo/VmJjxmY4nfI/AAAAAAAACDs/rZb5Z6kxpKw/s1600/DSC_6436.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://1.bp.blogspot.com/-Z6FptIztpLo/VmJjxmY4nfI/AAAAAAAACDs/rZb5Z6kxpKw/s400/DSC_6436.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is just another shot of the circuit. That green circuit board that has the light on is a voltage step-up. You can see the whole circuit being powered from one AA battery.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-7-z7v8TaCow/VmJjxzjEaMI/AAAAAAAACDw/2GRkWX6v7sc/s1600/DSC_6437.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://4.bp.blogspot.com/-7-z7v8TaCow/VmJjxzjEaMI/AAAAAAAACDw/2GRkWX6v7sc/s400/DSC_6437.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After the circuit was verified, I designed a PCB</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-qsk-8K04mx4/VmJjzB9CTVI/AAAAAAAACEE/mTZQ2Q-CyW8/s1600/DSC_6438.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-qsk-8K04mx4/VmJjzB9CTVI/AAAAAAAACEE/mTZQ2Q-CyW8/s400/DSC_6438.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is a second layer of the PCB for the power circuitry (charging and regulating)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-75_MPVGcXlA/VmJj0N9WD2I/AAAAAAAACEQ/4HPDNWcYxsY/s1600/DSC_6440.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-75_MPVGcXlA/VmJj0N9WD2I/AAAAAAAACEQ/4HPDNWcYxsY/s400/DSC_6440.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-aP8k8eL7hd8/VmJj1BSO5BI/AAAAAAAACEc/nbKqGB_GFfI/s1600/DSC_6441.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-aP8k8eL7hd8/VmJj1BSO5BI/AAAAAAAACEc/nbKqGB_GFfI/s400/DSC_6441.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-rF-qnHKLADw/VmJj2fneJQI/AAAAAAAACEk/1CjQVQTw4Vc/s1600/DSC_6442.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-rF-qnHKLADw/VmJj2fneJQI/AAAAAAAACEk/1CjQVQTw4Vc/s320/DSC_6442.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-hhjQohKwYfM/VmJj2Wckc9I/AAAAAAAACEo/bzlmNbemphI/s1600/DSC_6443.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-hhjQohKwYfM/VmJj2Wckc9I/AAAAAAAACEo/bzlmNbemphI/s320/DSC_6443.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Printing out transparencies and cutting out fiberglass board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OxmjRQOkJTM/VmJj2n-FE9I/AAAAAAAACEs/C3sluX7H0U8/s1600/DSC_6444.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://2.bp.blogspot.com/-OxmjRQOkJTM/VmJj2n-FE9I/AAAAAAAACEs/C3sluX7H0U8/s640/DSC_6444.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-NeZG2zGbkT4/VmJj5FVHUXI/AAAAAAAACFE/7qYr3CsNrao/s1600/DSC_6445.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-NeZG2zGbkT4/VmJj5FVHUXI/AAAAAAAACFE/7qYr3CsNrao/s320/DSC_6445.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Exposing the board for 7.5 minutes.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-pjjyBJ-1Z4w/VmJj4ZRD9LI/AAAAAAAACE8/xCXbfzUT680/s1600/DSC_6446.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-pjjyBJ-1Z4w/VmJj4ZRD9LI/AAAAAAAACE8/xCXbfzUT680/s400/DSC_6446.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-l8cCHB61oB0/VmJj5coFK7I/AAAAAAAACFI/clTgzCywc54/s1600/DSC_6447.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-l8cCHB61oB0/VmJj5coFK7I/AAAAAAAACFI/clTgzCywc54/s640/DSC_6447.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-9YujuUj8YXY/VmJj6dXPKaI/AAAAAAAACFY/CCHvndx2OA4/s1600/DSC_6448.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-9YujuUj8YXY/VmJj6dXPKaI/AAAAAAAACFY/CCHvndx2OA4/s320/DSC_6448.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-H9YXjC97Wi8/VmJj7Gi_CxI/AAAAAAAACFc/ORyAkvTZWI0/s1600/DSC_6449.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-H9YXjC97Wi8/VmJj7Gi_CxI/AAAAAAAACFc/ORyAkvTZWI0/s640/DSC_6449.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After putting the board through developer, this is how it turned out :D</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-TTexKqcABbg/VmJj7Y6ekWI/AAAAAAAACFk/AhXo2Js8BgE/s1600/DSC_6450.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-TTexKqcABbg/VmJj7Y6ekWI/AAAAAAAACFk/AhXo2Js8BgE/s640/DSC_6450.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Throw it into some etchant.</div>
<div class="separator" style="clear: both; text-align: center;">
I don't recall if I ever mentioned what etchant I use... This is a mixture of HCl and H2O2</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fmQlkNrPL3s/VmJj71XZnHI/AAAAAAAACFo/tm81gyTKKhY/s1600/DSC_6451.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-fmQlkNrPL3s/VmJj71XZnHI/AAAAAAAACFo/tm81gyTKKhY/s400/DSC_6451.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Expose and develop the second board!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2Din-LvNPRU/VmJj9VV_JgI/AAAAAAAACF4/kXRDv2moyHs/s1600/DSC_6452.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-2Din-LvNPRU/VmJj9VV_JgI/AAAAAAAACF4/kXRDv2moyHs/s320/DSC_6452.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-lvPG2xLRFEs/VmJj9pUVK2I/AAAAAAAACF8/spJzSHzKyhg/s1600/DSC_6453.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-lvPG2xLRFEs/VmJj9pUVK2I/AAAAAAAACF8/spJzSHzKyhg/s320/DSC_6453.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-hCscz0X_8lA/VmJj91lj1dI/AAAAAAAACGA/PyKnp5tNc7k/s1600/DSC_6454.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-hCscz0X_8lA/VmJj91lj1dI/AAAAAAAACGA/PyKnp5tNc7k/s640/DSC_6454.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-FQ3Vkhr1WOg/VmJj_2CLRdI/AAAAAAAACGY/9J3Q4Tv4yuM/s1600/DSC_6455.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-FQ3Vkhr1WOg/VmJj_2CLRdI/AAAAAAAACGY/9J3Q4Tv4yuM/s320/DSC_6455.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Ayy</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-8MrDxslRNx4/VmJj_0l0O4I/AAAAAAAACGU/67CYSVb8bq0/s1600/DSC_6456.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-8MrDxslRNx4/VmJj_0l0O4I/AAAAAAAACGU/67CYSVb8bq0/s320/DSC_6456.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Boy2ywIGflI/VmJj__IYI1I/AAAAAAAACGQ/jI-jFSDS74Q/s1600/DSC_6457.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-Boy2ywIGflI/VmJj__IYI1I/AAAAAAAACGQ/jI-jFSDS74Q/s320/DSC_6457.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-S2Bc_GLR3l4/VmJkCB6vuoI/AAAAAAAACGo/BDAvauUPQIw/s1600/DSC_6458.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-S2Bc_GLR3l4/VmJkCB6vuoI/AAAAAAAACGo/BDAvauUPQIw/s320/DSC_6458.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-c7b9EHgd_tU/VmJkCf_oEaI/AAAAAAAACGs/xxqlE0NgBWc/s1600/DSC_6459.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://3.bp.blogspot.com/-c7b9EHgd_tU/VmJkCf_oEaI/AAAAAAAACGs/xxqlE0NgBWc/s400/DSC_6459.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2RxDkBZiUVA/VmJkCf3EJ3I/AAAAAAAACGw/D-PqBSQeBic/s1600/DSC_6460.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-2RxDkBZiUVA/VmJkCf3EJ3I/AAAAAAAACGw/D-PqBSQeBic/s640/DSC_6460.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After a really long process of waiting, this is how the boards turned out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-gLBpvKRfF2U/VmJkEble6mI/AAAAAAAACHA/A8UfEvIycQM/s1600/DSC_6461.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-gLBpvKRfF2U/VmJkEble6mI/AAAAAAAACHA/A8UfEvIycQM/s640/DSC_6461.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Drilling the holes.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-hNH27_65yTs/VmJkFISMq3I/AAAAAAAACHM/mInyHFLr_S8/s1600/DSC_6462.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://4.bp.blogspot.com/-hNH27_65yTs/VmJkFISMq3I/AAAAAAAACHM/mInyHFLr_S8/s400/DSC_6462.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Upload the code.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-PH66DFEgDHM/VmJkE0t6HCI/AAAAAAAACHE/-NBC3isICbw/s1600/DSC_6463.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://1.bp.blogspot.com/-PH66DFEgDHM/VmJkE0t6HCI/AAAAAAAACHE/-NBC3isICbw/s400/DSC_6463.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Featuring: ATTiny44 and the $5 USBTiny programmer</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ST-2LYTHxL4/VmJkGYxOvjI/AAAAAAAACHY/JUv7k80mxr0/s1600/DSC_6465.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-ST-2LYTHxL4/VmJkGYxOvjI/AAAAAAAACHY/JUv7k80mxr0/s400/DSC_6465.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Sadly RadioShack is going out of business... I bought these nuts and bolts out of pity.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qI1xH6dwQoo/VmJkG_RyTMI/AAAAAAAACHc/MN0nknWn-20/s1600/DSC_6466.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-qI1xH6dwQoo/VmJkG_RyTMI/AAAAAAAACHc/MN0nknWn-20/s320/DSC_6466.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-w5G44qi6UMU/VmJkHaRvUNI/AAAAAAAACHk/3cH3JbSWaBQ/s1600/DSC_6467.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-w5G44qi6UMU/VmJkHaRvUNI/AAAAAAAACHk/3cH3JbSWaBQ/s640/DSC_6467.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is how the finished power supply board looks like. the Li-ion battery is glued onto the board, and the leads soldered to the board. I also soldered the green board directly on. A USB port is added to allow charging.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-YwTxUIgvpPI/VmJkINocreI/AAAAAAAACHw/kRFJRcO8PFQ/s1600/DSC_6468.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-YwTxUIgvpPI/VmJkINocreI/AAAAAAAACHw/kRFJRcO8PFQ/s640/DSC_6468.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Finished main circuit board. The button on the left decreases time, the right increases.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-NWQxoOu-kHQ/VmJkIwWD-II/AAAAAAAACH0/yk03TmRLzVg/s1600/DSC_6469.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-NWQxoOu-kHQ/VmJkIwWD-II/AAAAAAAACH0/yk03TmRLzVg/s640/DSC_6469.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Adding the screws onto the power board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-rLfXJ3nbvvs/VmJkJlggopI/AAAAAAAACIA/KWUE9XbCHR4/s1600/DSC_6470.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-rLfXJ3nbvvs/VmJkJlggopI/AAAAAAAACIA/KWUE9XbCHR4/s640/DSC_6470.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-nETw2DE9tvI/VmJkKbsYgxI/AAAAAAAACII/sAdMaZfHB-E/s1600/DSC_6471.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-nETw2DE9tvI/VmJkKbsYgxI/AAAAAAAACII/sAdMaZfHB-E/s640/DSC_6471.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldering the power wires to the main board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-yQHxJFTgWhY/VmJkKmyG14I/AAAAAAAACIM/fwu8k5pTkIE/s1600/DSC_6472.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://4.bp.blogspot.com/-yQHxJFTgWhY/VmJkKmyG14I/AAAAAAAACIM/fwu8k5pTkIE/s640/DSC_6472.JPG" width="424" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It's alive!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-zMB0jWesA9o/VmJkLVW7JgI/AAAAAAAACIU/ghaGQFgZirY/s1600/DSC_6473.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-zMB0jWesA9o/VmJkLVW7JgI/AAAAAAAACIU/ghaGQFgZirY/s320/DSC_6473.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Lq4moYHexSY/VmJkM931a1I/AAAAAAAACIg/1mhaZMrN3Ak/s1600/DSC_6474.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-Lq4moYHexSY/VmJkM931a1I/AAAAAAAACIg/1mhaZMrN3Ak/s640/DSC_6474.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After it's wired, I mounted the main board on top of the power board.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-wW5VLLDc5nw/VmJkNA88pAI/AAAAAAAACIo/quet9uuMEWA/s1600/DSC_6475.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://2.bp.blogspot.com/-wW5VLLDc5nw/VmJkNA88pAI/AAAAAAAACIo/quet9uuMEWA/s640/DSC_6475.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-N9kFUYboIN4/VmJkNfXLVUI/AAAAAAAACIs/PKAMUmuoubg/s1600/DSC_6476.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-N9kFUYboIN4/VmJkNfXLVUI/AAAAAAAACIs/PKAMUmuoubg/s640/DSC_6476.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It looks like a beautifully made sandwich.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-gUmecKLXk5U/VmJkObTHVNI/AAAAAAAACI4/jXvln9OsDAA/s1600/DSC_6477.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-gUmecKLXk5U/VmJkObTHVNI/AAAAAAAACI4/jXvln9OsDAA/s400/DSC_6477.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The next objective is to fit this device into an Apple Earbuds case.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qcRpzX04xOo/VmJkPszv9vI/AAAAAAAACJI/c-fr7QaEHGM/s1600/DSC_6478.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-qcRpzX04xOo/VmJkPszv9vI/AAAAAAAACJI/c-fr7QaEHGM/s320/DSC_6478.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-yCxAHd2mTI0/VmJkPclmw6I/AAAAAAAACJE/SH7-nzrvTvQ/s1600/DSC_6479.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-yCxAHd2mTI0/VmJkPclmw6I/AAAAAAAACJE/SH7-nzrvTvQ/s320/DSC_6479.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-SFM84SXCyqw/VmJkQEhZ28I/AAAAAAAACJY/9eXBoZh1sLk/s1600/DSC_6480.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-SFM84SXCyqw/VmJkQEhZ28I/AAAAAAAACJY/9eXBoZh1sLk/s400/DSC_6480.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-HtH9Jrpq7h8/VmJkRMfO_WI/AAAAAAAACJg/lACWeC5SK4Q/s1600/DSC_6481.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-HtH9Jrpq7h8/VmJkRMfO_WI/AAAAAAAACJg/lACWeC5SK4Q/s320/DSC_6481.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-UVsNNAdL3qo/VmJkRaxgUpI/AAAAAAAACJk/OQDROhiCeas/s1600/DSC_6482.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-UVsNNAdL3qo/VmJkRaxgUpI/AAAAAAAACJk/OQDROhiCeas/s640/DSC_6482.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I had to cut this groove for charging.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-a0W593Zew08/VmJkRmt590I/AAAAAAAACJo/yyXrfBhcbv8/s1600/DSC_6483.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-a0W593Zew08/VmJkRmt590I/AAAAAAAACJo/yyXrfBhcbv8/s320/DSC_6483.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-AlYAICqxZbg/VmJkS39Lb5I/AAAAAAAACJ4/_K1V2unt8Qc/s1600/DSC_6484.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-AlYAICqxZbg/VmJkS39Lb5I/AAAAAAAACJ4/_K1V2unt8Qc/s320/DSC_6484.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-I9cbo98O6X4/VmJkToWQsJI/AAAAAAAACKA/z9uZBYXkqyw/s1600/DSC_6485.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-I9cbo98O6X4/VmJkToWQsJI/AAAAAAAACKA/z9uZBYXkqyw/s640/DSC_6485.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Drill 4 holes for the screws.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-nkwernPVt3g/VmJkTypaZuI/AAAAAAAACKI/p4XLxFO9m54/s1600/DSC_6486.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="http://2.bp.blogspot.com/-nkwernPVt3g/VmJkTypaZuI/AAAAAAAACKI/p4XLxFO9m54/s400/DSC_6486.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-SDK7s6BNqxc/VmJkUih2blI/AAAAAAAACKM/13txw9PWbG4/s1600/DSC_6487.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-SDK7s6BNqxc/VmJkUih2blI/AAAAAAAACKM/13txw9PWbG4/s640/DSC_6487.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Everything mounted on</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-h3p5hN_Be8Y/VmJkVaEIvDI/AAAAAAAACKU/Pc7bF3wCg5Y/s1600/DSC_6488.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-h3p5hN_Be8Y/VmJkVaEIvDI/AAAAAAAACKU/Pc7bF3wCg5Y/s320/DSC_6488.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-pbH_g68Lwjw/VmJkWZH_UrI/AAAAAAAACKg/cW1VAsfR61g/s1600/DSC_6489.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-pbH_g68Lwjw/VmJkWZH_UrI/AAAAAAAACKg/cW1VAsfR61g/s640/DSC_6489.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I had to cut the screws down in size using a diamond cutting bit. I covered the circuit with masking tape so metal dust wouldn't fly into the circuit and short everything out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-CoDN10bWFuE/VmJkWltUgyI/AAAAAAAACKk/yP1FJ7QoVg4/s1600/DSC_6490.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-CoDN10bWFuE/VmJkWltUgyI/AAAAAAAACKk/yP1FJ7QoVg4/s640/DSC_6490.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-dEUqkWsQHd0/VmJkWx_ZB0I/AAAAAAAACKo/z4m4GksEGds/s1600/DSC_6491.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://2.bp.blogspot.com/-dEUqkWsQHd0/VmJkWx_ZB0I/AAAAAAAACKo/z4m4GksEGds/s640/DSC_6491.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Two holes were drilled so that you can change the time by pushing the buttons.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-iBSvqm0K1rA/VmJkYOOTE_I/AAAAAAAACK4/Ub9sEdl_idI/s1600/DSC_6492.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-iBSvqm0K1rA/VmJkYOOTE_I/AAAAAAAACK4/Ub9sEdl_idI/s320/DSC_6492.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-h28l76wyHzE/VmJkY-yqOoI/AAAAAAAACLA/rTWk6BQ0VIA/s1600/DSC_6493.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-h28l76wyHzE/VmJkY-yqOoI/AAAAAAAACLA/rTWk6BQ0VIA/s640/DSC_6493.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://soundcloud.com/octobersveryown/drake-charged-up">Charging up.</a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-41JZrwBBFFU/VmJkY_h9TLI/AAAAAAAACLE/oCOwyxCjva4/s1600/DSC_6494.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-41JZrwBBFFU/VmJkY_h9TLI/AAAAAAAACLE/oCOwyxCjva4/s320/DSC_6494.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xvHSNttA_UI/VmJkZXz-RrI/AAAAAAAACLI/nR3YhzmsfwI/s1600/DSC_6495.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-xvHSNttA_UI/VmJkZXz-RrI/AAAAAAAACLI/nR3YhzmsfwI/s640/DSC_6495.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
And it's finished. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xj_MmypDYrE/VmJkbMRoIsI/AAAAAAAACLY/DMR72hNkhaU/s1600/DSC_6496.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://3.bp.blogspot.com/-xj_MmypDYrE/VmJkbMRoIsI/AAAAAAAACLY/DMR72hNkhaU/s640/DSC_6496.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-gqTrn1XIp4M/VmJkbcfxfNI/AAAAAAAACLc/aSo3nqBYlbs/s1600/DSC_6497.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-gqTrn1XIp4M/VmJkbcfxfNI/AAAAAAAACLc/aSo3nqBYlbs/s640/DSC_6497.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-8Ma00Xuy5V4/VmJkbXmxTrI/AAAAAAAACLg/yUeo3AdHUTM/s1600/DSC_6498.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://2.bp.blogspot.com/-8Ma00Xuy5V4/VmJkbXmxTrI/AAAAAAAACLg/yUeo3AdHUTM/s640/DSC_6498.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VPNosx8UML0/VmJkci-NEzI/AAAAAAAACL0/NbI-r-cRPtY/s1600/DSC_6499.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://1.bp.blogspot.com/-VPNosx8UML0/VmJkci-NEzI/AAAAAAAACL0/NbI-r-cRPtY/s640/DSC_6499.JPG" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-lKf-egSyi8I/VmJkdOyLZeI/AAAAAAAACL4/3um2vFcr3s8/s1600/DSC_6500.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="http://4.bp.blogspot.com/-lKf-egSyi8I/VmJkdOyLZeI/AAAAAAAACL4/3um2vFcr3s8/s640/DSC_6500.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
That was the DIY Apple Clock.<br />
I should be up to speed now with all of the projects that I posted on I'ble but not on here. It's time to think of something new...<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span id="goog_1438912938"></span><span id="goog_1438912939"></span><br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-71039641396771086952015-10-11T20:54:00.001-07:002015-10-11T20:55:48.060-07:00I bought a watch<div dir="ltr" style="text-align: left;" trbidi="on">
So this is going to be one of those not-so-technical posts.<br />
I bought a watch this week at Sears.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-GT1FuTCP63I/Vhsn0HF0ndI/AAAAAAAACCw/abpMgIMcCh8/s1600/20151006_203145.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="http://4.bp.blogspot.com/-GT1FuTCP63I/Vhsn0HF0ndI/AAAAAAAACCw/abpMgIMcCh8/s640/20151006_203145.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
I love this picture.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The gold watch on the far left is the one I've been wearing for a while. I practically built the thing.</div>
<div class="separator" style="clear: both; text-align: left;">
I bought a fake Casio A159W watch, then bought a Casio F-91W and replaced the fake A159W with the innards from the F-91W.</div>
<div class="separator" style="clear: both; text-align: left;">
So that way I have a gold watch that won't break if I submerse it in water or drop it on the ground.</div>
<div class="separator" style="clear: both; text-align: left;">
I bought the oyster watch band to fit onto the watch. It's a pretty much a unique watch because I custom built it.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The silver watch on the top is a classic Casio A168W. Nothing too special about it.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The watch that I bought this week is the two tone analog watch to the left. That's what I bought for 60% off of $35, so I bought it for $15.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-XviB7NKGkYc/Vhsnzz_iUcI/AAAAAAAACCs/1SMXaUkOMY8/s1600/20151007_222538.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://1.bp.blogspot.com/-XviB7NKGkYc/Vhsnzz_iUcI/AAAAAAAACCs/1SMXaUkOMY8/s320/20151007_222538.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Chain shows up in everything.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
I didn't realize this when I bought it, but the Decade brand watch looks extremely similar to...<br />
<div style="text-align: center;">
<img src="http://ecx.images-amazon.com/images/I/512mHQpukdL._SY300_.jpg" /></div>
<div style="text-align: center;">
a Rolex Datejust</div>
<div style="text-align: center;">
http://www.rolex.com/watches/datejust/m116233-0149.html</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
a $12,000 watch. I was thrilled to realize this because I love buying knockoffs. It's flashy in a sort of ironic way.</div>
<div class="separator" style="clear: both; text-align: left;">
Here are some main similarities:</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>Fluted bezel (that gold ring around the whole watchface)</li>
<li>twotone </li>
<li>Jubilee bracelet</li>
<li>Gold crown (that thing to adjust the time)</li>
</ul>
<div>
Some main differences</div>
<div>
<ul style="text-align: left;">
<li>One is 1000x more expensive</li>
<li>Decade's bracelet is not solid metal</li>
<li>Decade's watch does not have date</li>
<li>Decade's watch is based on quartz movement, while Rolex is mechanical</li>
<li>Decade is just really cheap in all aspects. It's actually a terrible watch.</li>
</ul>
<div>
It's so cheap and that's why I love it. This Friday I didn't want to write college essays so I took some time to engrave my watch.</div>
</div>
<div>
As seen on my Snapchat story:</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KOQAS9CQQjs/VhsnyZBvSJI/AAAAAAAACCY/_99Qwg1N5xc/s1600/Snapchat-2150717792887622074.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://1.bp.blogspot.com/-KOQAS9CQQjs/VhsnyZBvSJI/AAAAAAAACCY/_99Qwg1N5xc/s640/Snapchat-2150717792887622074.jpg" width="360" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-vXa-dGdov_k/Vhsnz2aQlsI/AAAAAAAACCk/yeoV5YrnMUE/s1600/Snapchat-7127262610493256130.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://3.bp.blogspot.com/-vXa-dGdov_k/Vhsnz2aQlsI/AAAAAAAACCk/yeoV5YrnMUE/s400/Snapchat-7127262610493256130.jpg" width="225" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-lm0k99H61L8/VhsnzMGCTJI/AAAAAAAACCg/MvmkJ7PKPSE/s1600/Snapchat-6323112216683219795.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://3.bp.blogspot.com/-lm0k99H61L8/VhsnzMGCTJI/AAAAAAAACCg/MvmkJ7PKPSE/s640/Snapchat-6323112216683219795.jpg" width="360" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I engraved my initials TSJW on the flip clip. I usually wear my watch on the inside of the wrist, and there's nothing to show off on the outside if I do this. So I felt like engraving my initials on the outside makes it feel less wrong wearing my watch on the inside.<br />
<br />
<h3 style="text-align: center;">
It's so embarrassing to wear now.</h3>
<div>
So that's just some background on the watch. </div>
<div>
Whenever I buy something, I always end up thinking about taking it apart and modifying it (its inevitable).</div>
<div>
A few days ago I got the watch wet and had to take it apart to dry out the moisture.<br />
I realized how spacious the inside of the watch was... the quartz movement mechanism took up only an eight of the total space inside the watch... That gave me ideas.</div>
<div>
<br /></div>
<h4 style="text-align: left;">
The idea:</h4>
<div>
I honestly really don't like wearing analog watches. They give me a good sense of how much time is left in the day, but I spend at least five seconds reading it in order to understand what time it is actually. On a digital watch the numbers would just show up in X:XX form, but on this watch I have to spend a good amount of time decoding the placement of the hands.</div>
<div>
<br /></div>
<div style="text-align: right;">
Plus, the gold hands blend in with the gold face and everything is just so shiny and it makes it IMPOSSIBLE to read the time.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I love wearing digital watches, but they aren't flashy enough.</div>
<div style="text-align: left;">
The Casio watch I have right now isn't solid metal: It's metal plated and then gold plated, which means that after wearing it for a year the gold wears off (it already has).</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Literally no one sells a solid metal gold-plated digital watch at an affordable price.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
So here's the idea: replace the quartz movement in the watch with a digital watch module.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Sorry, I don't have any picture of this right now (because taking apart watches is actually the worst), but imagine the Decade watch with a display like this:</div>
<div style="text-align: center;">
<img src="http://www.geeky-gadgets.com/wp-content/uploads/2010/02/Burberry-Sport-Digital-Watch_1.jpg" height="400" width="400" /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Right now there are a few problems, and a few solutions that I've been thinking of.</div>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>Fitting the innards from another digital watch into the Decade watch</li>
<ul>
<li>find a small enough watch, and 3D print a holder that will make it fit snuggly so it doesn't shift around.</li>
</ul>
<li>What do you do about the four buttons on a digital watch when you only have a hole for one crown on an analog watch case?</li>
<ul>
<li>I still need to figure this out.</li>
</ul>
</ul>
<div>
For now I need to put off this project to concentrate on college applications, but I think this is a worthwhile project to look into. It'll probably be more difficult than my Zippo remote project, because this time I'm dealing with something a little more expensive than a lighter.</div>
<div>
<br /></div>
<div>
Hopefully when I come back to this idea a few months later I would have made some progress.</div>
</div>
</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-6665881206024802762015-10-04T13:29:00.000-07:002015-10-04T13:29:01.129-07:00Badass Zippo Remote<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
I made this project a year ago last summer. I was bored at home and I didn't want to do my summer homework.<br />
http://www.instructables.com/id/Krugers-Zippo-Remote/<br />
<br />
I started this draft also a year ago but I never got around to finishing it.<br />
First a video:<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/uzLWOxkQ8uw" width="640"></iframe>
I made this, again, when I was bored. The only thing I enjoyed about this was trying to sync up the music to the actions but this is actual trash.<br />
If you go to <i>0:20 and 1:51 </i>of the video, you'll see this guy pressing a button on a Zippo lighter and then an explosion ensuing that action.<br />
<br />
It's safe to assume that this awesome lighter wasn't for lighting up cigarettes but rather explosives<br />
<br />
<i>fun stuff.</i><br />
<i><br /></i>
Last year I was literally obsessed with these lighters. I still think they're awesome. I was really fascinated by the way the whole lighter was packaged. I thought to myself "what else can I fit in this thing..."<br />
Watching Captain America gave me some ideas.<br />
<br /></div>
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/BA4NecjrWyQ" width="640"></iframe><br />
<br />
Please excuse the title and the music. I was in a pretty good mood that day and I thought it was an excellent idea.<br />
The video only shows ONE way you can use the Zippo remote. You don't only have to use it for filling your basement with smoke. You can use it to open garages, turn on your ceiling fan, start your oven, whatever. You can do anything electrical with it.<br />
<br />
The real instructions are in that Instructables link up top, but I'll do some brief documentation on it below.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--5--K7Yh4g0/VhFtexheaAI/AAAAAAAABzI/GmHI1ubLAWk/s1600/DSC_6089.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/--5--K7Yh4g0/VhFtexheaAI/AAAAAAAABzI/GmHI1ubLAWk/s320/DSC_6089.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
First get a lighter. get an ATtiny45 or 85 with a V suffix. thats right.</div>
<div class="separator" style="clear: both; text-align: center;">
ATTINYX5V- 10PU is the part you want. This means it runs on low power very efficiently and we need that.</div>
<div class="separator" style="clear: both; text-align: center;">
I'm not going to go into too much detail about the parts.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-HZ5UZT4-3eM/VhFtenCMeYI/AAAAAAAABzA/gV65Ao8UQWI/s1600/DSC_6090.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-HZ5UZT4-3eM/VhFtenCMeYI/AAAAAAAABzA/gV65Ao8UQWI/s320/DSC_6090.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Just a picture comparing two lighters. The one on the left is fake which is why I don't mind taking it apart.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-qt5dFu01h7A/VhFte-mF3LI/AAAAAAAABzE/P3kK6NEsIzc/s1600/DSC_6091.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-qt5dFu01h7A/VhFte-mF3LI/AAAAAAAABzE/P3kK6NEsIzc/s320/DSC_6091.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-XgRK3UvsrLQ/VhFtf6wzXCI/AAAAAAAABzY/D47MtZ2RPi0/s1600/DSC_6092.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-XgRK3UvsrLQ/VhFtf6wzXCI/AAAAAAAABzY/D47MtZ2RPi0/s320/DSC_6092.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-atbpJ6V2JQI/VhFtgTKChcI/AAAAAAAABzc/HcY0LF1Q1gM/s1600/DSC_6093.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-atbpJ6V2JQI/VhFtgTKChcI/AAAAAAAABzc/HcY0LF1Q1gM/s320/DSC_6093.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some pictures of what the Zippo insert looks like. This one is fake.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-fv4p6xEqFCI/VhFtgroOA6I/AAAAAAAABzg/PbJcJWnZivA/s1600/DSC_6094.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-fv4p6xEqFCI/VhFtgroOA6I/AAAAAAAABzg/PbJcJWnZivA/s320/DSC_6094.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
We will be replacing the flint with a button, and placing an LED right next to the wick.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ZJYsQDRwjm0/VhFthJV7hMI/AAAAAAAABzs/vqupR75ReCc/s1600/DSC_6095.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-ZJYsQDRwjm0/VhFthJV7hMI/AAAAAAAABzs/vqupR75ReCc/s320/DSC_6095.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/--FaTcF5O9ms/VhFtiBoaVbI/AAAAAAAABz4/ZvZP1GnzxnQ/s1600/DSC_6096.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/--FaTcF5O9ms/VhFtiBoaVbI/AAAAAAAABz4/ZvZP1GnzxnQ/s320/DSC_6096.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-qAHUqpwISUs/VhFtiUbe8rI/AAAAAAAABz8/M9djIYhQNAY/s1600/DSC_6097.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-qAHUqpwISUs/VhFtiUbe8rI/AAAAAAAABz8/M9djIYhQNAY/s320/DSC_6097.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Take out the flint thing.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-vZszA6oxg_M/VhFtihY_WRI/AAAAAAAAB0A/tvtJtwWiQmQ/s1600/DSC_6098.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-vZszA6oxg_M/VhFtihY_WRI/AAAAAAAAB0A/tvtJtwWiQmQ/s320/DSC_6098.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
remove the wick and all the cotton balls.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KHRqbcj_KZc/VhFtjiuslDI/AAAAAAAAB0Q/3MDSKTjY-J8/s1600/DSC_6099.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-KHRqbcj_KZc/VhFtjiuslDI/AAAAAAAAB0Q/3MDSKTjY-J8/s320/DSC_6099.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
put that stuff in a safe place. Cut a little piece of wick that we will be using to cover up the LED.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-eOCzmMbZ19g/VhFtjwpPA4I/AAAAAAAAB0U/IziHcWvR_PM/s1600/DSC_6100.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-eOCzmMbZ19g/VhFtjwpPA4I/AAAAAAAAB0U/IziHcWvR_PM/s320/DSC_6100.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The idea is that we put a button on the bottom of the flint shaft. When we press down on the flint wheel, it pressed down on a shaft that presses on that button.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-B5V-b2cHBLw/VhFtkLye4QI/AAAAAAAAB0Y/AppczEcyWr4/s1600/DSC_6101.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-B5V-b2cHBLw/VhFtkLye4QI/AAAAAAAAB0Y/AppczEcyWr4/s320/DSC_6101.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Where the purple marker is is where the LED will fit in.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-KujsgVyGnJw/VhFtk7QPAxI/AAAAAAAAB0o/4tSAPnhKMck/s1600/DSC_6102.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-KujsgVyGnJw/VhFtk7QPAxI/AAAAAAAAB0o/4tSAPnhKMck/s320/DSC_6102.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
secure your insert. We'll be torturing it and you don't want it to slip away.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-u2pCdR8R3Sw/VhFtlWA3mNI/AAAAAAAAB0s/a3bMNkP9054/s1600/DSC_6103.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-u2pCdR8R3Sw/VhFtlWA3mNI/AAAAAAAAB0s/a3bMNkP9054/s320/DSC_6103.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Fw35HZ_oMOM/VhFtlTxLElI/AAAAAAAAB00/TTQkw3SJSOc/s1600/DSC_6104.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-Fw35HZ_oMOM/VhFtlTxLElI/AAAAAAAAB00/TTQkw3SJSOc/s320/DSC_6104.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
What I did to make the LED hole was literally hammer a hole through the steel casing. I used a nail.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VmQOwlSHyrM/VhFtmADM8VI/AAAAAAAAB1A/SJJOuj5LT-w/s1600/DSC_6105.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-VmQOwlSHyrM/VhFtmADM8VI/AAAAAAAAB1A/SJJOuj5LT-w/s320/DSC_6105.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You can see a nice hole next to the original flint hole.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-8CBSYCM-gLU/VhFtmiS2LsI/AAAAAAAAB1E/eAJGOSEZezI/s1600/DSC_6106.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-8CBSYCM-gLU/VhFtmiS2LsI/AAAAAAAAB1E/eAJGOSEZezI/s320/DSC_6106.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2KKGW2m_k0w/VhFtmrqjlRI/AAAAAAAAB1I/ekmAv7TmoFY/s1600/DSC_6107.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-2KKGW2m_k0w/VhFtmrqjlRI/AAAAAAAAB1I/ekmAv7TmoFY/s320/DSC_6107.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-7Tr7CG0pX3w/VhFtnBauNKI/AAAAAAAAB1Y/kXmw5zBqFfI/s1600/DSC_6108.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-7Tr7CG0pX3w/VhFtnBauNKI/AAAAAAAAB1Y/kXmw5zBqFfI/s320/DSC_6108.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I then used a Dremel rotary tool to slowly and carefully cut away and sand down the flint tube.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-L4twXOvPT64/VhFtoODXK3I/AAAAAAAAB1k/quLDPuX5T08/s1600/DSC_6109.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-L4twXOvPT64/VhFtoODXK3I/AAAAAAAAB1k/quLDPuX5T08/s320/DSC_6109.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
When its finished the flint tube should be shorter, and the button should fit in the tube snugly.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-G6eKEa727XU/VhFtnyPZUMI/AAAAAAAAB1g/FOgh_PSfypc/s1600/DSC_6110.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-G6eKEa727XU/VhFtnyPZUMI/AAAAAAAAB1g/FOgh_PSfypc/s320/DSC_6110.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Finished view.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-d16OOUBOTfQ/VhFtoQrwkCI/AAAAAAAAB10/-AI-63UWTdk/s1600/DSC_6111.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-d16OOUBOTfQ/VhFtoQrwkCI/AAAAAAAAB10/-AI-63UWTdk/s320/DSC_6111.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This part is pretty annoying. I was planning on using the Zippo case itself as the antenna of the remote. In order to do that I need to solder the antenna to the insert. I can't solder to steel.</div>
<div class="separator" style="clear: both; text-align: center;">
The only solution was to electroplate a portion of the insert in copper so i could a wire to the case.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-m2ksj665-gI/VhFtpOnmbSI/AAAAAAAAB14/1_FYbnrzXRc/s1600/DSC_6112.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-m2ksj665-gI/VhFtpOnmbSI/AAAAAAAAB14/1_FYbnrzXRc/s320/DSC_6112.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The solution is copper sulfate. On the cathode I'm using a 1970s penny and the anode is going to be the lighter.</div>
<div class="separator" style="clear: both; text-align: center;">
Just run 12v through it and electroplate until you got something.</div>
<div class="separator" style="clear: both; text-align: center;">
Here's a guide on electroplating:</div>
<div class="separator" style="clear: both; text-align: center;">
http://www.instructables.com/id/High-Quality-Copper-Plating/</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-mmlI5gQHHUE/VhFtpJYIdOI/AAAAAAAAB18/7Pr3HW0Ehu8/s1600/DSC_6113.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-mmlI5gQHHUE/VhFtpJYIdOI/AAAAAAAAB18/7Pr3HW0Ehu8/s320/DSC_6113.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So after plating I did get some copper to stick on! Nice.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-SjHkflkAyE0/VhFtqKuojnI/AAAAAAAAB2M/Ll-Fm7w7voo/s1600/DSC_6114.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-SjHkflkAyE0/VhFtqKuojnI/AAAAAAAAB2M/Ll-Fm7w7voo/s320/DSC_6114.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-nm3uglcrJHw/VhFtqj774_I/AAAAAAAAB2U/TCswh-2A3aw/s1600/DSC_6115.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-nm3uglcrJHw/VhFtqj774_I/AAAAAAAAB2U/TCswh-2A3aw/s320/DSC_6115.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
shove in that short piece of wick we cut earlier</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-So8TQGjEJF0/VhFtq0GCOpI/AAAAAAAAB2Y/n5iB8d-H0wo/s1600/DSC_6116.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-So8TQGjEJF0/VhFtq0GCOpI/AAAAAAAAB2Y/n5iB8d-H0wo/s320/DSC_6116.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-hnOcxXz2xnM/VhFtrh6s1TI/AAAAAAAAB2o/-e0D2QNw8QQ/s1600/DSC_6117.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-hnOcxXz2xnM/VhFtrh6s1TI/AAAAAAAAB2o/-e0D2QNw8QQ/s320/DSC_6117.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Glue down the bottom of it with epoxy so it can't get pulled out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gNa_vUV9H8Y/VhFtr1s0rrI/AAAAAAAAB2s/2fOS7FCHmMk/s1600/DSC_6118.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-gNa_vUV9H8Y/VhFtr1s0rrI/AAAAAAAAB2s/2fOS7FCHmMk/s320/DSC_6118.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--sCQJDUpGYE/VhFtsCtlJhI/AAAAAAAAB20/kJAX46b1cNQ/s1600/DSC_6119.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/--sCQJDUpGYE/VhFtsCtlJhI/AAAAAAAAB20/kJAX46b1cNQ/s320/DSC_6119.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZyOteVMlAHY/VhFttPpWx_I/AAAAAAAAB3A/kAFIN6yxUD4/s1600/DSC_6120.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-ZyOteVMlAHY/VhFttPpWx_I/AAAAAAAAB3A/kAFIN6yxUD4/s320/DSC_6120.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-oPH0UIjfaW4/VhFttVpnxkI/AAAAAAAAB3E/hOIdTkBPY58/s1600/DSC_6121.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-oPH0UIjfaW4/VhFttVpnxkI/AAAAAAAAB3E/hOIdTkBPY58/s320/DSC_6121.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some pictures of a button.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-m_2XEkhZq4E/VhFttdghEAI/AAAAAAAAB3I/aeJfeiXD-gs/s1600/DSC_6122.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-m_2XEkhZq4E/VhFttdghEAI/AAAAAAAAB3I/aeJfeiXD-gs/s320/DSC_6122.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The idea is that the button part of the button fits INSIDE the tube while the rest of the button housing rests on the edges of the metal flint tube. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bmzkAkhJnaE/VhFtuYLG_9I/AAAAAAAAB3Y/ED2dhbWOy9A/s1600/DSC_6123.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-bmzkAkhJnaE/VhFtuYLG_9I/AAAAAAAAB3Y/ED2dhbWOy9A/s320/DSC_6123.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-BzYzdsJbgxc/VhFtuoC7K8I/AAAAAAAAB3c/MQURADDectc/s1600/DSC_6124.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-BzYzdsJbgxc/VhFtuoC7K8I/AAAAAAAAB3c/MQURADDectc/s320/DSC_6124.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
A piece of tough wire acts as a shaft to translate the force from the flint wheel push down do the button.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1rKwixahw-Q/VhFtu1QI-gI/AAAAAAAAB3k/ZMhAag49fio/s1600/DSC_6125.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-1rKwixahw-Q/VhFtu1QI-gI/AAAAAAAAB3k/ZMhAag49fio/s320/DSC_6125.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Get some scrap plastic. Don't ask we're going to do something silly.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ig4iz0MD2pc/VhFtvf5I-wI/AAAAAAAAB3s/lFdZoScxu98/s1600/DSC_6126.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-ig4iz0MD2pc/VhFtvf5I-wI/AAAAAAAAB3s/lFdZoScxu98/s320/DSC_6126.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OdBuYJP-xc8/VhFtwbz3M2I/AAAAAAAAB4I/VSDAgjGLxeQ/s1600/DSC_6127.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-OdBuYJP-xc8/VhFtwbz3M2I/AAAAAAAAB4I/VSDAgjGLxeQ/s320/DSC_6127.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-LoaHMEvL8Es/VhFtwtl3JXI/AAAAAAAAB4A/jhukRYtM33s/s1600/DSC_6128.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-LoaHMEvL8Es/VhFtwtl3JXI/AAAAAAAAB4A/jhukRYtM33s/s320/DSC_6128.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut the plastic down to shape so it fits like so.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-o0ZJbfT6ud4/VhFt0oqf1EI/AAAAAAAAB5A/k2OGrSbpIB0/s1600/DSC_6136.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-o0ZJbfT6ud4/VhFt0oqf1EI/AAAAAAAAB5A/k2OGrSbpIB0/s320/DSC_6136.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-YeMewSDoKOU/VhFt1-UoWSI/AAAAAAAAB5Q/XL3zYXww6KA/s1600/DSC_6137.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-YeMewSDoKOU/VhFt1-UoWSI/AAAAAAAAB5Q/XL3zYXww6KA/s320/DSC_6137.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You will need to enlarge the first portion of the tube a bit with a drill so the button part can fit in.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-McAVjntIVw0/VhFt2OhYUrI/AAAAAAAAB5Y/fYNIFQxZVgU/s1600/DSC_6138.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-McAVjntIVw0/VhFt2OhYUrI/AAAAAAAAB5Y/fYNIFQxZVgU/s320/DSC_6138.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fJnZn6Hyy5M/VhFt2HkdAEI/AAAAAAAAB5U/ns89VVIHx3Q/s1600/DSC_6139.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-fJnZn6Hyy5M/VhFt2HkdAEI/AAAAAAAAB5U/ns89VVIHx3Q/s320/DSC_6139.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Put in the flint, the wire shaft, the button, then glue the button to that plastic piece.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2u6a20F8nGI/VhFt3PNCALI/AAAAAAAAB5o/YUSQbUnBTG8/s1600/DSC_6140.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-2u6a20F8nGI/VhFt3PNCALI/AAAAAAAAB5o/YUSQbUnBTG8/s320/DSC_6140.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The plastic piece will be glued to the insert wall.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-TByKtOvj7oU/VhFt3dy2wrI/AAAAAAAAB5s/-TLV0_LliGo/s1600/DSC_6141.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-TByKtOvj7oU/VhFt3dy2wrI/AAAAAAAAB5s/-TLV0_LliGo/s320/DSC_6141.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The flint should be firm. When you press down on the flint wheel, you should feel a click. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
This process was really hard, and it wasn't even the most difficult part. It took me about three days to get it right, so be patient.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vXuMLU970pw/VhFt3jL_yPI/AAAAAAAAB50/ZQAFx-_4QXk/s1600/DSC_6142.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-vXuMLU970pw/VhFt3jL_yPI/AAAAAAAAB50/ZQAFx-_4QXk/s320/DSC_6142.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
3mm LED!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-U1Diblep-DA/VhFt4oebB_I/AAAAAAAAB6A/JBfX-AhZtBE/s1600/DSC_6143.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-U1Diblep-DA/VhFt4oebB_I/AAAAAAAAB6A/JBfX-AhZtBE/s320/DSC_6143.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder wires</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-lCmDECTKKfc/VhFt5c1-kyI/AAAAAAAAB6I/dzDZL-7vxh8/s1600/DSC_6144.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-lCmDECTKKfc/VhFt5c1-kyI/AAAAAAAAB6I/dzDZL-7vxh8/s320/DSC_6144.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Electrical tape</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dY5P7T1uOYM/VhFt5r8n6aI/AAAAAAAAB6M/GYtHxWGSFvA/s1600/DSC_6145.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-dY5P7T1uOYM/VhFt5r8n6aI/AAAAAAAAB6M/GYtHxWGSFvA/s320/DSC_6145.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Heat shrink it. We don't want things shorting out on the metal Zippo insert.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bEJIGcT5Pyk/VhFt5xJDKZI/AAAAAAAAB6U/wDoWMfuI_50/s1600/DSC_6146.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-bEJIGcT5Pyk/VhFt5xJDKZI/AAAAAAAAB6U/wDoWMfuI_50/s320/DSC_6146.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-A8paTrf5XF0/VhFt6pPSvhI/AAAAAAAAB6g/v1Tp-BQcrYg/s1600/DSC_6147.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-A8paTrf5XF0/VhFt6pPSvhI/AAAAAAAAB6g/v1Tp-BQcrYg/s320/DSC_6147.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Shove the LED into that hole we made earlier with the nail. Glue it in place.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
The hardest of hardware has been finished. Now comes the less hard but more involved part: writing the code, designing the circuit, etc.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-B8SSXFMlEq4/VhFt8by0g-I/AAAAAAAAB7A/XKI63w6de5E/s1600/DSC_6151.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-B8SSXFMlEq4/VhFt8by0g-I/AAAAAAAAB7A/XKI63w6de5E/s320/DSC_6151.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Here are the 433MHz modules I'm using. I know they vary in size and stuff, but you want to use this specific one. It's the perfect size to fit inside a Zippo insert.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZPuUmmMFDes/VhFt9FUuz-I/AAAAAAAAB7I/w-WpybRnvDc/s1600/DSC_6152.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-ZPuUmmMFDes/VhFt9FUuz-I/AAAAAAAAB7I/w-WpybRnvDc/s320/DSC_6152.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut out your PCB and print out your design.</div>
<div class="separator" style="clear: both; text-align: center;">
The PCB I'm making right now is the receiver module for the remote. You don't have to make this.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-PWZhO7fAT84/VhFt9YIvKdI/AAAAAAAAB7E/nKS7Q96DlVk/s1600/DSC_6153.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-PWZhO7fAT84/VhFt9YIvKdI/AAAAAAAAB7E/nKS7Q96DlVk/s320/DSC_6153.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wait 7 minutes for exposure.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-qnK3FuBnhLo/VhFt-7p62GI/AAAAAAAAB7Y/cluNI2YD5Xk/s1600/DSC_6154.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-qnK3FuBnhLo/VhFt-7p62GI/AAAAAAAAB7Y/cluNI2YD5Xk/s320/DSC_6154.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Lm8ihuaozs0/VhFt_MkS0CI/AAAAAAAAB7c/KL6RqysVx9g/s1600/DSC_6155.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-Lm8ihuaozs0/VhFt_MkS0CI/AAAAAAAAB7c/KL6RqysVx9g/s320/DSC_6155.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-t-kk9u25Kyg/VhFt_cUMsFI/AAAAAAAAB7k/a_c_0qjAvcE/s1600/DSC_6156.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-t-kk9u25Kyg/VhFt_cUMsFI/AAAAAAAAB7k/a_c_0qjAvcE/s320/DSC_6156.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Develope it.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-X71Cy0bRJCs/VhFt__bdYpI/AAAAAAAAB7s/WqLSVirGIVE/s1600/DSC_6157.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-X71Cy0bRJCs/VhFt__bdYpI/AAAAAAAAB7s/WqLSVirGIVE/s320/DSC_6157.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-k9Qa3FKmgbw/VhFuAWrbvYI/AAAAAAAAB74/vzljpfGZTKE/s1600/DSC_6158.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-k9Qa3FKmgbw/VhFuAWrbvYI/AAAAAAAAB74/vzljpfGZTKE/s320/DSC_6158.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
cover edges in nail-polish if you like.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-nCr6qh7Cuuw/VhFuAjBnIhI/AAAAAAAAB78/YJOCMH9vPic/s1600/DSC_6159.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-nCr6qh7Cuuw/VhFuAjBnIhI/AAAAAAAAB78/YJOCMH9vPic/s320/DSC_6159.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
etch it. We'll get back to this.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-AtPSzEAjqW4/VhFuBKFa37I/AAAAAAAAB8I/uhgOyzitX-c/s1600/DSC_6160.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-AtPSzEAjqW4/VhFuBKFa37I/AAAAAAAAB8I/uhgOyzitX-c/s320/DSC_6160.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
We want to use this rechargeable battery. Its 3.7V LiPo. I forgot the specific size and specs but if you're interested in more than just looking at pictures, it's all the Instructable.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-3LYcurEd3zI/VhFuClXDAOI/AAAAAAAAB8Q/IgcPObZ_CFI/s1600/DSC_6161.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-3LYcurEd3zI/VhFuClXDAOI/AAAAAAAAB8Q/IgcPObZ_CFI/s320/DSC_6161.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wrap it in black electrical tape so it doesn't short stuff out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ndoifDRt9ko/VhFuCi-GCtI/AAAAAAAAB8U/kI5kEWYokDM/s1600/DSC_6162.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-ndoifDRt9ko/VhFuCi-GCtI/AAAAAAAAB8U/kI5kEWYokDM/s320/DSC_6162.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
>So in this picture I soldered a 16MHz crystal to the ATTINY45 chip. Don't do this. We don't need this. Just ignore the crystal.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-FIO5hnf7t_g/VhFuDDahb4I/AAAAAAAAB8c/bKSxMMqMGpc/s1600/DSC_6163.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-FIO5hnf7t_g/VhFuDDahb4I/AAAAAAAAB8c/bKSxMMqMGpc/s320/DSC_6163.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder a resistor</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Br5Hoge2HEs/VhFuD_MFc9I/AAAAAAAAB8o/XVPjfMkjGdc/s1600/DSC_6164.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-Br5Hoge2HEs/VhFuD_MFc9I/AAAAAAAAB8o/XVPjfMkjGdc/s320/DSC_6164.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-A0Ammrkh-YM/VhFuE-yn1kI/AAAAAAAAB8w/y-r2sqP-KBw/s1600/DSC_6165.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-A0Ammrkh-YM/VhFuE-yn1kI/AAAAAAAAB8w/y-r2sqP-KBw/s320/DSC_6165.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
If you notice, I'm trying to make the circuit compact as possible. This involves ripping off unneeded pins. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qZLp7TvfN3E/VhFuFA8aoqI/AAAAAAAAB80/XnSU81DKJ90/s1600/DSC_6166.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-qZLp7TvfN3E/VhFuFA8aoqI/AAAAAAAAB80/XnSU81DKJ90/s320/DSC_6166.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Or desoldering them...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-jJzAYJuQKos/VhFuFROXzvI/AAAAAAAAB84/MD1icgjS9zg/s1600/DSC_6167.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-jJzAYJuQKos/VhFuFROXzvI/AAAAAAAAB84/MD1icgjS9zg/s320/DSC_6167.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder the battery to the necessary places.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-hj5Hgrt27nk/VhFuGp4iOcI/AAAAAAAAB9I/UbwwN7lHDRQ/s1600/DSC_6168.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-hj5Hgrt27nk/VhFuGp4iOcI/AAAAAAAAB9I/UbwwN7lHDRQ/s320/DSC_6168.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-QZAO9q-APlc/VhFuGqdaVkI/AAAAAAAAB9M/iDvERV-p-H0/s1600/DSC_6169.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-QZAO9q-APlc/VhFuGqdaVkI/AAAAAAAAB9M/iDvERV-p-H0/s320/DSC_6169.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I wrapped the transmitter in tape so nothing shorts out, and used magnet wire so it's thin.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-0omL3352Qwk/VhFuG0C773I/AAAAAAAAB9Q/a3_-kjbqGrs/s1600/DSC_6170.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-0omL3352Qwk/VhFuG0C773I/AAAAAAAAB9Q/a3_-kjbqGrs/s320/DSC_6170.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Kw4SUrWTbBc/VhFuIff6uxI/AAAAAAAAB9g/IKKSUygafGQ/s1600/DSC_6171.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-Kw4SUrWTbBc/VhFuIff6uxI/AAAAAAAAB9g/IKKSUygafGQ/s320/DSC_6171.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
More complicated soldering.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kefVrfWmTEs/VhFuIk-W8wI/AAAAAAAAB9k/xX9kZzoPMv0/s1600/DSC_6172.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-kefVrfWmTEs/VhFuIk-W8wI/AAAAAAAAB9k/xX9kZzoPMv0/s320/DSC_6172.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Resistor soldered to the LED wire.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VfUqe_Vb38U/VhFuIns0pgI/AAAAAAAAB9o/ZseRoUSUsmg/s1600/DSC_6173.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-VfUqe_Vb38U/VhFuIns0pgI/AAAAAAAAB9o/ZseRoUSUsmg/s320/DSC_6173.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2_IOUbXNW5Y/VhFuJv7hCzI/AAAAAAAAB94/1qAciNbplSk/s1600/DSC_6174.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-2_IOUbXNW5Y/VhFuJv7hCzI/AAAAAAAAB94/1qAciNbplSk/s320/DSC_6174.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-6uYZpr2S9TA/VhFuJ85cNqI/AAAAAAAAB98/quqbE62Zuho/s1600/DSC_6175.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-6uYZpr2S9TA/VhFuJ85cNqI/AAAAAAAAB98/quqbE62Zuho/s320/DSC_6175.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Connecting the device to the LED.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-5ZWDeT34V-w/VhFuKOS9qCI/AAAAAAAAB-E/mGCKJOAiaxo/s1600/DSC_6176.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-5ZWDeT34V-w/VhFuKOS9qCI/AAAAAAAAB-E/mGCKJOAiaxo/s320/DSC_6176.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-NdLUYfj3ko4/VhFuKw8gMjI/AAAAAAAAB-Q/R4DGL8RVzOc/s1600/DSC_6177.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-NdLUYfj3ko4/VhFuKw8gMjI/AAAAAAAAB-Q/R4DGL8RVzOc/s320/DSC_6177.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder the connections to the button.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-_yxJQ1SjTtg/VhFuLRiXbUI/AAAAAAAAB-U/TSw-bxj7Zsw/s1600/DSC_6178.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-_yxJQ1SjTtg/VhFuLRiXbUI/AAAAAAAAB-U/TSw-bxj7Zsw/s320/DSC_6178.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-HT0sWDUyKN8/VhFuLrok-CI/AAAAAAAAB-c/WSaVoC1ADEk/s1600/DSC_6179.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-HT0sWDUyKN8/VhFuLrok-CI/AAAAAAAAB-c/WSaVoC1ADEk/s320/DSC_6179.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Your circuit is about done. Make sure your battery JST connector is accessible when you need to charge it. It's been a year since I built it and I have YET to need to recharge the battery.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Jb3uJWYMZLU/VhFuNwvqMfI/AAAAAAAAB-4/9REgS3WQHJI/s1600/DSC_6182.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-Jb3uJWYMZLU/VhFuNwvqMfI/AAAAAAAAB-4/9REgS3WQHJI/s320/DSC_6182.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-8NNbsbc3Olw/VhFuN7XCxNI/AAAAAAAAB-8/HkPl2VEPi-c/s1600/DSC_6183.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-8NNbsbc3Olw/VhFuN7XCxNI/AAAAAAAAB-8/HkPl2VEPi-c/s320/DSC_6183.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
BACK TO ETCHING.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-4gRSMW7DKis/VhFuOVjGM3I/AAAAAAAAB_E/MgrHCrSDYzE/s1600/DSC_6184.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-4gRSMW7DKis/VhFuOVjGM3I/AAAAAAAAB_E/MgrHCrSDYzE/s320/DSC_6184.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Etched PCB.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-0F8y1sZl_-U/VhFuPusL9xI/AAAAAAAAB_Q/Uhg-iK2VNsY/s1600/DSC_6185.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-0F8y1sZl_-U/VhFuPusL9xI/AAAAAAAAB_Q/Uhg-iK2VNsY/s320/DSC_6185.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldered parts (details in instructables)</div>
<div class="separator" style="clear: both; text-align: center;">
Basically this receiver turns on a relay for 5 seconds when it receives the signal from the Zippo remote control.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-WSSJToyn0Nw/VhFuPoGDxhI/AAAAAAAAB_U/fx-xgMHNhFc/s1600/DSC_6186.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-WSSJToyn0Nw/VhFuPoGDxhI/AAAAAAAAB_U/fx-xgMHNhFc/s320/DSC_6186.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
V = flambda to calculate antenna length.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-9QU2XKYaskw/VhFuP1kuB6I/AAAAAAAAB_Y/IY1qMehe_Xc/s1600/DSC_6187.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-9QU2XKYaskw/VhFuP1kuB6I/AAAAAAAAB_Y/IY1qMehe_Xc/s320/DSC_6187.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-LVxqf4cuZYA/VhFuRdDH90I/AAAAAAAAB_o/yowl-u6teX8/s1600/DSC_6188.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-LVxqf4cuZYA/VhFuRdDH90I/AAAAAAAAB_o/yowl-u6teX8/s320/DSC_6188.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The blue connecter is so you can switch anything you want.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-rm9jB-sANgA/VhFuR7qHOXI/AAAAAAAAB_w/3ZDPmHrAYe4/s1600/DSC_6189.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-rm9jB-sANgA/VhFuR7qHOXI/AAAAAAAAB_w/3ZDPmHrAYe4/s320/DSC_6189.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Green means ready. Red means ACTIVATED.</div>
<div class="separator" style="clear: both; text-align: center;">
It's powered by 3 AAA batteries.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ymfGZ1PJXEM/VhFuSEH9wUI/AAAAAAAAB_0/TQicFLAEJIY/s1600/DSC_6190.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-ymfGZ1PJXEM/VhFuSEH9wUI/AAAAAAAAB_0/TQicFLAEJIY/s320/DSC_6190.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There's a lot of bare metal parts exposed that run a high risk of shorting out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-dynh1PLXXWA/VhFuSufo28I/AAAAAAAACAA/nC7eqER9c5Y/s1600/DSC_6191.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-dynh1PLXXWA/VhFuSufo28I/AAAAAAAACAA/nC7eqER9c5Y/s320/DSC_6191.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-TI3oH0wcCpM/VhFuTljaE_I/AAAAAAAACAI/mp7mFDyizKc/s1600/DSC_6192.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-TI3oH0wcCpM/VhFuTljaE_I/AAAAAAAACAI/mp7mFDyizKc/s320/DSC_6192.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-A4i6Tz_hzWk/VhFuToPGpJI/AAAAAAAACAM/lz5raiUcsw4/s1600/DSC_6193.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-A4i6Tz_hzWk/VhFuToPGpJI/AAAAAAAACAM/lz5raiUcsw4/s320/DSC_6193.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The solution is to cover anything exposed with nail-polish. This works like a charm.</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-A3Gp7Yj1FUM/VhFuWsW-l_I/AAAAAAAACAo/WcesONiFjYk/s1600/DSC_6197.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-A3Gp7Yj1FUM/VhFuWsW-l_I/AAAAAAAACAo/WcesONiFjYk/s320/DSC_6197.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-NCa0txNA_co/VhFuYY7UwaI/AAAAAAAACA4/YkvhPco4pVI/s1600/DSC_6198.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-NCa0txNA_co/VhFuYY7UwaI/AAAAAAAACA4/YkvhPco4pVI/s320/DSC_6198.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-y7sjqe8R6Wc/VhFuYR_KdXI/AAAAAAAACA8/jkmVUESYB7g/s1600/DSC_6199.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-y7sjqe8R6Wc/VhFuYR_KdXI/AAAAAAAACA8/jkmVUESYB7g/s320/DSC_6199.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-jLZiPad3NKs/VhFuYiDyKUI/AAAAAAAACBA/blJ7RpswNBM/s1600/DSC_6200.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-jLZiPad3NKs/VhFuYiDyKUI/AAAAAAAACBA/blJ7RpswNBM/s320/DSC_6200.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Applying a second coat will ensure that nothing goes wrong.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-o32rHLXCVZ4/VhFuZ1eTWOI/AAAAAAAACBQ/CKyrr4d0w6k/s1600/DSC_6201.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-o32rHLXCVZ4/VhFuZ1eTWOI/AAAAAAAACBQ/CKyrr4d0w6k/s320/DSC_6201.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Gently shove all the electronics into the Zippo case.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1SkLjMV0lUw/VhFuaapb_hI/AAAAAAAACBY/HC8t5M_n5nk/s1600/DSC_6202.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-1SkLjMV0lUw/VhFuaapb_hI/AAAAAAAACBY/HC8t5M_n5nk/s320/DSC_6202.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-JBNIWrgziLQ/VhFuaubNwMI/AAAAAAAACBc/3Phds04CcRQ/s1600/DSC_6203.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-JBNIWrgziLQ/VhFuaubNwMI/AAAAAAAACBc/3Phds04CcRQ/s320/DSC_6203.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Everything barely fits. The JST connector is exposed so I can easily recharge.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-UicHlh7tNik/VhFubJ-46SI/AAAAAAAACBk/u0lloC2arXU/s1600/DSC_6204.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-UicHlh7tNik/VhFubJ-46SI/AAAAAAAACBk/u0lloC2arXU/s320/DSC_6204.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Reinsert the insert and you're done!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-BQF0A8EJnFU/VhFubyd8UEI/AAAAAAAACB0/2cf1zMBdkTQ/s1600/DSC_6205.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-BQF0A8EJnFU/VhFubyd8UEI/AAAAAAAACB0/2cf1zMBdkTQ/s320/DSC_6205.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You can recharge by using USB power and possibly blowing up your circuit. I recommend readers to invest in a safer way of charging LiPo batteries, unlike what I'm doing in this picture.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-g3SeNAHw1uc/VhFucEzGWUI/AAAAAAAACB8/Y0ndRbqQtvg/s1600/DSC_6206.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-g3SeNAHw1uc/VhFucEzGWUI/AAAAAAAACB8/Y0ndRbqQtvg/s320/DSC_6206.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
So now you have a remote control in a Zippo lighter. Be safe and don't do silly things with it. I'm not responsible for what you do with it. Please have fun, but don't hurt yourself and others.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Thanks for reading!<br />
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com1tag:blogger.com,1999:blog-4781278098745493051.post-36841870999951960972015-09-19T18:06:00.001-07:002015-09-19T18:07:10.022-07:00BANG BANG Zippo Engraving<div dir="ltr" style="text-align: left;" trbidi="on">
I haven't written a blog post in a long time (for more than a year actually). This is mainly because I find <a href="http://instructables.com/">Instructables.com</a> to be easier to put work out and document steps with.<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<a href="http://www.instructables.com/id/Hand-Engraving-Zippo-Lighter/">http://www.instructables.com/id/Hand-Engraving-Zippo-Lighter/</a><br />
<br />
But since I have English assignments to write blog posts, I think I will resume again.<br />
<br />
This was a project from a year ago but I never got around to documenting it.<br />
Last summer I got obsessed with Zippo lighters. I always loved lighters beforehand, but I thought these were especially cool.<br />
The difference between a Zippo and a regular Bic: Zippo uses wick and lighter fluid while Bic is butane. Zippo likes to brag about their windproofiness which actually isn't that great.<br />
<br />
I bought a lighter for $7 and I really wanted to personalize it. Beforehand it looked like this:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-HrjrL7R3b8g/Vf4Blcg2JgI/AAAAAAAABt4/OOa0UeN2bRU/s1600/DSC_6048.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-HrjrL7R3b8g/Vf4Blcg2JgI/AAAAAAAABt4/OOa0UeN2bRU/s320/DSC_6048.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Just a regular chrome lighter.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Afterwards it looked like this:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-lPNVlhywWpE/Vf4B2L0H0lI/AAAAAAAAByc/Qi2gTOb_QFk/s1600/DSC_6085.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-lPNVlhywWpE/Vf4B2L0H0lI/AAAAAAAAByc/Qi2gTOb_QFk/s320/DSC_6085.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
yeeeeeeeeeeeeeeeee</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span id="goog_387194877"></span><span id="goog_387194878"></span>So I'm going to go through the steps.<br />
<br />
First you want to figure out what you want to engrave. You want to scale it and print out the design (actual size) on paper.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-wG44z-kFthE/Vf4BkB2SYYI/AAAAAAAABts/P1y72jDJf24/s1600/BANGBANG.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="http://1.bp.blogspot.com/-wG44z-kFthE/Vf4BkB2SYYI/AAAAAAAABts/P1y72jDJf24/s200/BANGBANG.png" width="155" /></a></div>
<a href="http://2.bp.blogspot.com/-NHtxr_FNmCA/Vf4BkaR9i0I/AAAAAAAABt0/SWeETo376s0/s1600/BANGBANGD.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;"><img border="0" height="132" src="http://2.bp.blogspot.com/-NHtxr_FNmCA/Vf4BkaR9i0I/AAAAAAAABt0/SWeETo376s0/s200/BANGBANGD.png" width="200" /></a><br />
These the concepts. As you can see it says "BANG" on both sides, and when the lighter is opened it says "BANG BANG" haha clever right?!<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then you print them out.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-lT5k04oQQUc/Vf4Bl7MAzuI/AAAAAAAABuM/HbEMDWHqrN0/s1600/DSC_6049.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-lT5k04oQQUc/Vf4Bl7MAzuI/AAAAAAAABuM/HbEMDWHqrN0/s320/DSC_6049.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So after printing out the stuff correctly on paper, put some glossy tape over the paper</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-5fj5L29Tibw/Vf4BmWvFdgI/AAAAAAAABuU/d-wmiItjYXM/s1600/DSC_6050.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-5fj5L29Tibw/Vf4BmWvFdgI/AAAAAAAABuU/d-wmiItjYXM/s320/DSC_6050.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then you put on masking tape where it printed. Feed the paper back into the printer and it should print back on the masking tape. We're essentially printing out a sticker. The glossy tape is to assist removal of the masking tape.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
This was my first time ever engraving something, so I wanted to engrave a piece of scrap metal before ruining my $7 lighter. I found a CD player case and engraved the draft on that.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-sMEC_IrEkRs/Vf4Bm68875I/AAAAAAAABug/bXXy27lqxlg/s1600/DSC_6051.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-sMEC_IrEkRs/Vf4Bm68875I/AAAAAAAABug/bXXy27lqxlg/s320/DSC_6051.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Put the masking tape on your metal</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-gylUJj3Z2BA/Vf4BnccN9ZI/AAAAAAAABuk/E4HYpNfk_ho/s1600/DSC_6052.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-gylUJj3Z2BA/Vf4BnccN9ZI/AAAAAAAABuk/E4HYpNfk_ho/s320/DSC_6052.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Use an exacto-knife to cut out the letters</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-06w7oWkqH1g/Vf4BnprBkYI/AAAAAAAABus/Nb3s-dCt7ZM/s1600/DSC_6053.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-06w7oWkqH1g/Vf4BnprBkYI/AAAAAAAABus/Nb3s-dCt7ZM/s320/DSC_6053.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Fill in the metal areas with sharpie. This way you can tell if a section has been engraved or not; color indication.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-M3nd6E4Q6KU/Vf4BoRiVH2I/AAAAAAAABu4/llPPAQN9uqo/s1600/DSC_6054.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-M3nd6E4Q6KU/Vf4BoRiVH2I/AAAAAAAABu4/llPPAQN9uqo/s320/DSC_6054.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I couldn't really take pictures of the dremel in action because that would be dangerous, but this is what happened.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-V2DGWp0dTg4/Vf4Bo2WcopI/AAAAAAAABvA/l4WxlV2kYb0/s1600/DSC_6055.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-V2DGWp0dTg4/Vf4Bo2WcopI/AAAAAAAABvA/l4WxlV2kYb0/s320/DSC_6055.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QNEACvWNnsk/Vf4BpBOxHYI/AAAAAAAABvE/DqLk8P0T2p0/s1600/DSC_6056.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-QNEACvWNnsk/Vf4BpBOxHYI/AAAAAAAABvE/DqLk8P0T2p0/s320/DSC_6056.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Not bad. Time to move on.</div>
<br />
So I basically repeated the steps for printing. This time you see I used lighter colored masking tape.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-yh_UO5upCD0/Vf4Bpifa77I/AAAAAAAABvI/L2CLF-GnTIQ/s1600/DSC_6057.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-yh_UO5upCD0/Vf4Bpifa77I/AAAAAAAABvI/L2CLF-GnTIQ/s320/DSC_6057.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-DyQH-Tm_-xc/Vf4BqvMmdnI/AAAAAAAABvY/uHseo7-8FXI/s1600/DSC_6058.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-DyQH-Tm_-xc/Vf4BqvMmdnI/AAAAAAAABvY/uHseo7-8FXI/s320/DSC_6058.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Before you engrave, take out your insert. If it's filled with fluid, you might want to put your insert in a ziploc bag so it doesn't evaporate.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Atz0b91ZK1w/Vf4BqhXgDeI/AAAAAAAABvc/jt_YZVy77Fo/s1600/DSC_6059.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-Atz0b91ZK1w/Vf4BqhXgDeI/AAAAAAAABvc/jt_YZVy77Fo/s320/DSC_6059.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Tape your lighter case shut.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-mjlq7TIkZAs/Vf4Bq5mExuI/AAAAAAAABvg/xzhM7hfdskg/s1600/DSC_6060.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-mjlq7TIkZAs/Vf4Bq5mExuI/AAAAAAAABvg/xzhM7hfdskg/s320/DSC_6060.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-_y-lIaxey5o/Vf4BsOSnzhI/AAAAAAAABv0/2SOb9kpqTBU/s1600/DSC_6061.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-_y-lIaxey5o/Vf4BsOSnzhI/AAAAAAAABv0/2SOb9kpqTBU/s320/DSC_6061.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-oFI2qSCzHg4/Vf4BscMIIwI/AAAAAAAABv8/xKt4BlqPfxQ/s1600/DSC_6062.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-oFI2qSCzHg4/Vf4BscMIIwI/AAAAAAAABv8/xKt4BlqPfxQ/s320/DSC_6062.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Place your sticker masking tape over where you want to engrave. This step is IMPORTANT. Make sure you place it right.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ooVeDLbpr74/Vf4BswrDSQI/AAAAAAAABwA/1UZXFduOjdg/s1600/DSC_6064.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-ooVeDLbpr74/Vf4BswrDSQI/AAAAAAAABwA/1UZXFduOjdg/s320/DSC_6064.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ydmcNw2ZkR0/Vf4BuH6zYaI/AAAAAAAABwQ/XUzgC843l2M/s1600/DSC_6065.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-ydmcNw2ZkR0/Vf4BuH6zYaI/AAAAAAAABwQ/XUzgC843l2M/s320/DSC_6065.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-lexYUnFLkFI/Vf4BsVL4gnI/AAAAAAAABv4/53wRA0r1Mh0/s1600/DSC_6063.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-lexYUnFLkFI/Vf4BsVL4gnI/AAAAAAAABv4/53wRA0r1Mh0/s320/DSC_6063.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Start cutting out the letters with an exacto-knife.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2KTGn3x3d38/Vf4BuO0b5wI/AAAAAAAABwU/WIdAuZKzkA4/s1600/DSC_6066.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-2KTGn3x3d38/Vf4BuO0b5wI/AAAAAAAABwU/WIdAuZKzkA4/s320/DSC_6066.JPG" width="320" /></a></div>
<div class="" style="clear: both; text-align: center;">
This is how you peel out the letters.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-YowHV5fcOcE/Vf4Bv-jrvDI/AAAAAAAABww/t-zX6L9Eve0/s1600/DSC_6069.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-YowHV5fcOcE/Vf4Bv-jrvDI/AAAAAAAABww/t-zX6L9Eve0/s320/DSC_6069.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-jJo0TsHkzwg/Vf4Bveg25YI/AAAAAAAABwo/EcOSS2naCvQ/s1600/DSC_6068.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-jJo0TsHkzwg/Vf4Bveg25YI/AAAAAAAABwo/EcOSS2naCvQ/s320/DSC_6068.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-uRVvElW6SPg/Vf4BuUG38pI/AAAAAAAABwY/litnQtUIABw/s1600/DSC_6067.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-uRVvElW6SPg/Vf4BuUG38pI/AAAAAAAABwY/litnQtUIABw/s320/DSC_6067.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-c-zmhJ_2420/Vf4BvyqhEzI/AAAAAAAABw0/qR5bQZTkWLo/s1600/DSC_6070.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-c-zmhJ_2420/Vf4BvyqhEzI/AAAAAAAABw0/qR5bQZTkWLo/s320/DSC_6070.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It's all cut out.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-hs6mx4Zteg8/Vf4BwYy7yfI/AAAAAAAABxA/MDMO8Lk0kjE/s1600/DSC_6071.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-hs6mx4Zteg8/Vf4BwYy7yfI/AAAAAAAABxA/MDMO8Lk0kjE/s320/DSC_6071.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-PRXFC1ePNf0/Vf4BxCv7m7I/AAAAAAAABxI/6D86ran_d1k/s1600/DSC_6072.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-PRXFC1ePNf0/Vf4BxCv7m7I/AAAAAAAABxI/6D86ran_d1k/s320/DSC_6072.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Color in where you want to engrave.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0cDw46EvbTE/Vf4Bxd8LV-I/AAAAAAAABxM/z81AcSxEPZU/s1600/DSC_6073.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-0cDw46EvbTE/Vf4Bxd8LV-I/AAAAAAAABxM/z81AcSxEPZU/s320/DSC_6073.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Not real live engraving footage but you can see the idea. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-2vMulDca_sM/Vf4BxeJ9AJI/AAAAAAAABxU/SCKKEtKMabQ/s1600/DSC_6074.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-2vMulDca_sM/Vf4BxeJ9AJI/AAAAAAAABxU/SCKKEtKMabQ/s320/DSC_6074.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
My garage is really dark.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-sUe7Dszjp1Q/Vf4ByRLR6mI/AAAAAAAABxg/crmo06gj5Qg/s1600/DSC_6075.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-sUe7Dszjp1Q/Vf4ByRLR6mI/AAAAAAAABxg/crmo06gj5Qg/s320/DSC_6075.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-geUMM1hnO0w/Vf4Byuj-JsI/AAAAAAAABxo/8on3MDtfKdI/s1600/DSC_6076.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-geUMM1hnO0w/Vf4Byuj-JsI/AAAAAAAABxo/8on3MDtfKdI/s320/DSC_6076.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-y6uRqzLv7Oc/Vf4ByncsrOI/AAAAAAAABxs/g2B4MK5R-V4/s1600/DSC_6077.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-y6uRqzLv7Oc/Vf4ByncsrOI/AAAAAAAABxs/g2B4MK5R-V4/s320/DSC_6077.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
As you can see, Zippos are brass. I can tell I'm done engraving a letter when I see brass and not blue sharpie.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Q48BOWpLkco/Vf4BzF2G-DI/AAAAAAAABx8/PyRxyCB9Zwk/s1600/DSC_6078.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-Q48BOWpLkco/Vf4BzF2G-DI/AAAAAAAABx8/PyRxyCB9Zwk/s320/DSC_6078.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
One BANG done.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KozyQilhj44/Vf4BzmJYrbI/AAAAAAAAByA/5jVQnid5Yiw/s1600/DSC_6079.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-KozyQilhj44/Vf4BzmJYrbI/AAAAAAAAByA/5jVQnid5Yiw/s320/DSC_6079.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
It look's pretty nice.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yqu9wEzKNcw/Vf4Bz4kQHgI/AAAAAAAAByE/ZHV5LGdBdeo/s1600/DSC_6080.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-yqu9wEzKNcw/Vf4Bz4kQHgI/AAAAAAAAByE/ZHV5LGdBdeo/s320/DSC_6080.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-DxfZCaVhPjc/Vf4B0CgaNrI/AAAAAAAAByM/7raTFR1W2w4/s1600/DSC_6081.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-DxfZCaVhPjc/Vf4B0CgaNrI/AAAAAAAAByM/7raTFR1W2w4/s320/DSC_6081.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
After you're done engraving, take all the tape off and wash off your lighter with acetone.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-IdrXQoYzEOI/Vf4B1EJXj_I/AAAAAAAAByY/fwCtAXkYZXc/s1600/DSC_6082.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-IdrXQoYzEOI/Vf4B1EJXj_I/AAAAAAAAByY/fwCtAXkYZXc/s320/DSC_6082.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Annddd you're good!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-hm2Ayei8MqU/Vf4B1iBQjGI/AAAAAAAAByg/R8J_ZHbak5M/s1600/DSC_6083.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-hm2Ayei8MqU/Vf4B1iBQjGI/AAAAAAAAByg/R8J_ZHbak5M/s320/DSC_6083.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-d9NmenOGLv4/Vf4B1odXoAI/AAAAAAAAByk/GkXBXoVE_ko/s1600/DSC_6084.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-d9NmenOGLv4/Vf4B1odXoAI/AAAAAAAAByk/GkXBXoVE_ko/s320/DSC_6084.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Appreciate your shiny brass for one day before it starts oxidizing and getting dull.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
So that's how I engraved my Zippo for the first time. It took a lot of effort.<br />
Over time I got lazier when I engraved things. Below is a video of another lighter engraving I did. It requires less steps and yields pretty much the same results.<br />
Bask in all of it's over-editted glory and admire the edginess of the lighter.<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/wXlUHWHXXgA" width="640"></iframe>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Thanks!</div>
</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com2tag:blogger.com,1999:blog-4781278098745493051.post-78189368258032746712014-04-24T13:58:00.005-07:002014-04-24T13:58:57.485-07:00DIY Computer Monitor<div dir="ltr" style="text-align: left;" trbidi="on">
Ever since finishing that robot I have not been getting many new ideas that excite me.<br />
I am still in the still waters of creativity, so, no new projects yet.<br />
<br />
The only thing that I have worked on since that time was adding a second monitor to my desk. It was a one day project; very easy.<br />
<br />
I followed this<a href="http://www.instructables.com/id/Turn-a-dead-laptop-into-a-monitor-with-Plexiglas-s/"> Instructable</a> mostly, and some other sources.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-9FqFzYjmeXo/U1l39nv21xI/AAAAAAAABMs/2zLVp-0H0a8/s1600/DSC_5953.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-9FqFzYjmeXo/U1l39nv21xI/AAAAAAAABMs/2zLVp-0H0a8/s1600/DSC_5953.JPG" height="320" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
First I took the screen off of a broken laptop. </div>
<div class="separator" style="clear: both; text-align: center;">
Order the control board after talking with the eBay seller about specification.</div>
<div class="separator" style="clear: both; text-align: center;">
Then wait a couple weeks for the board to arrive.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-5pJ_eyGbGjw/U1l4I9CLRhI/AAAAAAAABN0/C1vSKDQFIr0/s1600/DSC_5954.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-5pJ_eyGbGjw/U1l4I9CLRhI/AAAAAAAABN0/C1vSKDQFIr0/s1600/DSC_5954.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then I plugged everything in and taped things together temporarily. I rested the screen on the corner of my desk like so.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-opHnTE4S7PE/U1l39vaNNMI/AAAAAAAABMw/O_zSt2u6sJg/s1600/DSC_5955.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-opHnTE4S7PE/U1l39vaNNMI/AAAAAAAABMw/O_zSt2u6sJg/s1600/DSC_5955.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I used the dead laptop's 12VDC adapter to power the screen.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-dggykVCdLNk/U1l3_MppIgI/AAAAAAAABM8/4jp5O5jJgTY/s1600/DSC_5987.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-dggykVCdLNk/U1l3_MppIgI/AAAAAAAABM8/4jp5O5jJgTY/s1600/DSC_5987.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After finding some time to work on it, I decided to replace my paper calender with the second monitor!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7gCOBWLO8pQ/U1l4AAco03I/AAAAAAAABNE/0Sq5J8DFEmw/s1600/DSC_5988.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-7gCOBWLO8pQ/U1l4AAco03I/AAAAAAAABNE/0Sq5J8DFEmw/s1600/DSC_5988.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The control board only costs $35.</div>
<div class="separator" style="clear: both; text-align: center;">
It has HDMI VGA DVI and some other audio plug stuff.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-BPiul0NF4XU/U1l4AqXTRfI/AAAAAAAABNI/P58vzh-dVV0/s1600/DSC_5989.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-BPiul0NF4XU/U1l4AqXTRfI/AAAAAAAABNI/P58vzh-dVV0/s1600/DSC_5989.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Most HDMI monitors cost $100 or more.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-wNysxG31qIw/U1l4BwoB87I/AAAAAAAABNU/kN3iT71D0mQ/s1600/DSC_5990.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-wNysxG31qIw/U1l4BwoB87I/AAAAAAAABNU/kN3iT71D0mQ/s1600/DSC_5990.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I have a sheet of plexi-glass holding everything together. The plexi-glass is secured to some scrap pinewood, which is epoxied to the back of the screen.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Gk8O-a9wfNY/U1l4CZoxFUI/AAAAAAAABNY/g43d5rorGrA/s1600/DSC_5991.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Gk8O-a9wfNY/U1l4CZoxFUI/AAAAAAAABNY/g43d5rorGrA/s1600/DSC_5991.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The epoxy is actually doing a really good job holding the wood to the plastic on the monitor</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1uO_XrU7G6w/U1l4DhmGA5I/AAAAAAAABNk/84UKUMHAHtQ/s1600/DSC_5992.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-1uO_XrU7G6w/U1l4DhmGA5I/AAAAAAAABNk/84UKUMHAHtQ/s1600/DSC_5992.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I also glued the inverter and control board to the back of the screen.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xSzLRS3Zclk/U1l4EAsPhnI/AAAAAAAABNs/qvpbBhb-Hhk/s1600/DSC_5993.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-xSzLRS3Zclk/U1l4EAsPhnI/AAAAAAAABNs/qvpbBhb-Hhk/s1600/DSC_5993.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Not pictured here, but there is a stand I made that can hold screen. Since the screen is practically just a rectangle, I found a way to mount it onto a sort of stand if I ever wanted it off of the wall.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Overall this was a fun and easy project; I recommend it to anyone who has a dead laptop and needs an HDMI monitor for a low price. It's been a couple months since I built it, and it's been pretty consistent in displaying the right things.<br />
<br />
Since installing the monitor I feel that my productivity has increased: it reduces the need to alt+tab to references, and also allows greater organization.<br />
<br />
Highly recommends*</div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com2tag:blogger.com,1999:blog-4781278098745493051.post-11363740121881032452014-01-22T13:17:00.000-08:002014-01-22T13:17:49.579-08:00CS Robot (1) hardware<h4>
If you are reading this please do not mistake me for a terrorist.<br />I'm not a terrorist.</h4>
<div>
It was November 2013. On Thanksgiving day, my cousin and my brother's friend came over and we were enjoying the break by playing Left 4 Dead and CS:GO.</div>
<div>
Earlier that day we went to a football game, so we were pretty much set on staying indoors where it was warm.<br />My mom asked me if I wanted this metal rack from the disposable baking tines.</div>
<div>
<br />For some reason after hours of CS:GO and a metal rack I got an idea: What if we could play CS:GO in real life? With robots, of course. What if you could control a physical body using WASD, ctrl, spacebar, and all of these game controls?</div>
<div>
<br /></div>
<div>
For the next few months my brother and I worked on this robot. Since it was our first time building one of these, we were both trying different things to see what worked and what didn't.</div>
<div>
<br /></div>
<div>
The goal was to build a remote controlled robot (by remote I mean half way across the globe) that had a live camera feed and could be controlled using the typical keyboard game controls.</div>
<div>
So we decided to build something that used internet to control a tank-like machine that could fire pellets from an airsoft gun.</div>
<div>
<br /></div>
<div>
Here is a montage of pictures which will show you the process.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-0uNCBqASNjc/UuAh52nsNgI/AAAAAAAAA_M/NG_NKDOX-q0/s1600/DSC_5843.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-0uNCBqASNjc/UuAh52nsNgI/AAAAAAAAA_M/NG_NKDOX-q0/s1600/DSC_5843.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
We had this broken RC car. It can be a racecar or a bulldozer.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-sMmqtHRH1hY/UuAh4KmDgLI/AAAAAAAAA_E/Rv_LPYiPuLI/s1600/DSC_5845.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-sMmqtHRH1hY/UuAh4KmDgLI/AAAAAAAAA_E/Rv_LPYiPuLI/s1600/DSC_5845.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Of course you will need these</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-uhcPTJ7o0lo/UuAh7omGaQI/AAAAAAAAA_U/aUPH-zuBspI/s1600/DSC_5846.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-uhcPTJ7o0lo/UuAh7omGaQI/AAAAAAAAA_U/aUPH-zuBspI/s1600/DSC_5846.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
A gun is necessary yes.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-vjdLNa5kLhM/UuAiM0uG6_I/AAAAAAAAA_c/WIO-KTrn0K0/s1600/DSC_5847.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-vjdLNa5kLhM/UuAiM0uG6_I/AAAAAAAAA_c/WIO-KTrn0K0/s1600/DSC_5847.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Taking apart the car. That's a nice PCB, let's rip it out!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-F1xuv24pQDE/UuAiRQW-MmI/AAAAAAAAA_s/1milW1gZ7_A/s1600/DSC_5849.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-F1xuv24pQDE/UuAiRQW-MmI/AAAAAAAAA_s/1milW1gZ7_A/s1600/DSC_5849.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Bye!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-mNSc2RFDKwE/UuAiovRc40I/AAAAAAAABAA/oX6Gcq_3OFM/s1600/DSC_5851.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-mNSc2RFDKwE/UuAiovRc40I/AAAAAAAABAA/oX6Gcq_3OFM/s1600/DSC_5851.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some silly gear locking thing. Remove that.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-01UD_jlL4Rg/UuAipCEM2zI/AAAAAAAABAE/_LrRgGhn4OQ/s1600/DSC_5852.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-01UD_jlL4Rg/UuAipCEM2zI/AAAAAAAABAE/_LrRgGhn4OQ/s1600/DSC_5852.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Yea, remove this for real.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-MHUsRfdUa5k/UuAiiKeK5NI/AAAAAAAAA_0/kGnJPLMpFhg/s1600/DSC_5850.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-MHUsRfdUa5k/UuAiiKeK5NI/AAAAAAAAA_0/kGnJPLMpFhg/s1600/DSC_5850.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Simply four wires to the motors.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-o7wlh7-hBcs/UuAiRezVN2I/AAAAAAAAA_o/jEUbKc9gxGY/s1600/DSC_5848.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-o7wlh7-hBcs/UuAiRezVN2I/AAAAAAAAA_o/jEUbKc9gxGY/s1600/DSC_5848.JPG" height="212" width="320" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-tkyVQsDUD5M/UuAi33cjW1I/AAAAAAAABAM/jKqdA_K-g7s/s1600/DSC_5853.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-tkyVQsDUD5M/UuAi33cjW1I/AAAAAAAABAM/jKqdA_K-g7s/s1600/DSC_5853.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
Use a battery to test for the polarity of the motors</div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fPMhfq45mBE/UuAjhLtsjNI/AAAAAAAABA8/icOnfESC5PE/s1600/DSC_5860.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-fPMhfq45mBE/UuAjhLtsjNI/AAAAAAAABA8/icOnfESC5PE/s1600/DSC_5860.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldering more solderable wires to the motor</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-oU6Uzg1xqW4/UuAkZA_ML6I/AAAAAAAABB0/1GfEBvJKixI/s1600/DSC_5875.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-oU6Uzg1xqW4/UuAkZA_ML6I/AAAAAAAABB0/1GfEBvJKixI/s1600/DSC_5875.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
After finding the polarities, remember it by marking down the wires. I bent a wire to tell me which one was ground.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VUQashRqZEc/UuAkedL_L2I/AAAAAAAABCA/jE636bWCX8c/s1600/DSC_5874.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-VUQashRqZEc/UuAkedL_L2I/AAAAAAAABCA/jE636bWCX8c/s1600/DSC_5874.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dFGAMptNhI8/UuAjBh84fEI/AAAAAAAABAY/qQctV-hvFV4/s1600/DSC_5855.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-dFGAMptNhI8/UuAjBh84fEI/AAAAAAAABAY/qQctV-hvFV4/s1600/DSC_5855.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
SG90 servo motor</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-UJIF8TU-vCM/UuAjCK4q3VI/AAAAAAAABAc/UBhUjTgCA30/s1600/DSC_5856.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-UJIF8TU-vCM/UuAjCK4q3VI/AAAAAAAABAc/UBhUjTgCA30/s1600/DSC_5856.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
We will need these. Thanks HTHS for letting me <strike>steal </strike>borrow some.</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-UQv4fv7VUAM/UuAjOD8jwlI/AAAAAAAABAk/62v_0THlbAc/s1600/DSC_5857.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-UQv4fv7VUAM/UuAjOD8jwlI/AAAAAAAABAk/62v_0THlbAc/s1600/DSC_5857.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some string and some tape for the SG90 to attach to the trigger</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-pxIKFT6azbM/UuAjvyHeSDI/AAAAAAAABBI/WlqeL_QB5ag/s1600/DSC_5863.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-pxIKFT6azbM/UuAjvyHeSDI/AAAAAAAABBI/WlqeL_QB5ag/s1600/DSC_5863.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Zip-tie down the safety. Who needs safety? Pft.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RRd7D5DUKdA/UuAjwQB5shI/AAAAAAAABBM/iX41HOhhlOs/s1600/DSC_5864.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-RRd7D5DUKdA/UuAjwQB5shI/AAAAAAAABBM/iX41HOhhlOs/s1600/DSC_5864.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Tie down the motor like so</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ITPQ8tRxefo/UuAj3b6gaNI/AAAAAAAABBU/DlEbqp3Or1I/s1600/DSC_5865.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-ITPQ8tRxefo/UuAj3b6gaNI/AAAAAAAABBU/DlEbqp3Or1I/s1600/DSC_5865.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Start wrapping in tape</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3NXcP8Z1dtk/UuAkH4HCsJI/AAAAAAAABBk/LYKSVEyWMcs/s1600/DSC_5866.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-3NXcP8Z1dtk/UuAkH4HCsJI/AAAAAAAABBk/LYKSVEyWMcs/s1600/DSC_5866.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I added a nice cardboard plate for flatness sake</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VyOnSdLgrGg/UuAkON5NcAI/AAAAAAAABBs/YnVKhiY6eCo/s1600/DSC_5868.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-VyOnSdLgrGg/UuAkON5NcAI/AAAAAAAABBs/YnVKhiY6eCo/s1600/DSC_5868.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
It should look like this. Make sure your string is tight enough.</div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-aBb-uuaLE6I/UuAkFVt7V5I/AAAAAAAABBc/FgqhRT5dzic/s1600/DSC_5867.JPG" imageanchor="1" style="clear: right; display: inline !important; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://4.bp.blogspot.com/-aBb-uuaLE6I/UuAkFVt7V5I/AAAAAAAABBc/FgqhRT5dzic/s1600/DSC_5867.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1JD_ie1xSF0/UuAke8M63yI/AAAAAAAABCE/_fxUquT27E4/s1600/DSC_5878.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-1JD_ie1xSF0/UuAke8M63yI/AAAAAAAABCE/_fxUquT27E4/s1600/DSC_5878.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Glue down the car into bulldozer mode</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Kl7YfDODmPM/UuAknWkC-6I/AAAAAAAABCM/a0b6wOpx8g8/s1600/DSC_5879.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Kl7YfDODmPM/UuAknWkC-6I/AAAAAAAABCM/a0b6wOpx8g8/s1600/DSC_5879.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-b3rqEKaIvYc/UuAk3LqLhDI/AAAAAAAABCY/btWV8kp6Jb8/s1600/DSC_5904.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-b3rqEKaIvYc/UuAk3LqLhDI/AAAAAAAABCY/btWV8kp6Jb8/s1600/DSC_5904.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
That is a nice chassis.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-pFb_mKUHFQg/UuAk4MabeYI/AAAAAAAABCc/LM_1_d6X-zk/s1600/DSC_5905.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-pFb_mKUHFQg/UuAk4MabeYI/AAAAAAAABCc/LM_1_d6X-zk/s1600/DSC_5905.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--fJAwPvJ3CQ/UuAk8d1p0tI/AAAAAAAABCk/MvOFNuio7TI/s1600/DSC_5908.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/--fJAwPvJ3CQ/UuAk8d1p0tI/AAAAAAAABCk/MvOFNuio7TI/s1600/DSC_5908.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
We will need a way to hold the gun onto the servo motor. I borrowed some plexiglass from school</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VLf9n7p-_vw/UuAlSOEYKHI/AAAAAAAABC0/4bpWixGOvA0/s1600/DSC_5916.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-VLf9n7p-_vw/UuAlSOEYKHI/AAAAAAAABC0/4bpWixGOvA0/s1600/DSC_5916.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Make the first bend 90 degrees, one inch.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-40fGlBDsCDw/UuAlSWopyDI/AAAAAAAABC4/vQYSTBLU-YA/s1600/DSC_5917.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-40fGlBDsCDw/UuAlSWopyDI/AAAAAAAABC4/vQYSTBLU-YA/s1600/DSC_5917.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then, you will need to use the gun itself for accurate measurements</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-HfQKzlb3yks/UuAlS30BpAI/AAAAAAAABC8/oyKMuV7Zh7I/s1600/DSC_5918.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-HfQKzlb3yks/UuAlS30BpAI/AAAAAAAABC8/oyKMuV7Zh7I/s1600/DSC_5918.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
That looks nice! I glued on a scrap piece to close off what I could not finish.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-rgBURON1qac/UuAmGheeHCI/AAAAAAAABDg/8RuVdhb5im8/s1600/DSC_5925.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-rgBURON1qac/UuAmGheeHCI/AAAAAAAABDg/8RuVdhb5im8/s1600/DSC_5925.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Drill a hole in the center</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-yIXZsjke2mg/UuAlrWOr48I/AAAAAAAABDQ/h0bVDfg_WjY/s1600/DSC_5924.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-yIXZsjke2mg/UuAlrWOr48I/AAAAAAAABDQ/h0bVDfg_WjY/s1600/DSC_5924.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Test your servo motor (SG5010 was strong enough to lift the gun, but needs external power)</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Jt-JkQAw9a0/UuAlsJH-jqI/AAAAAAAABDU/CdiK_SV9WQ4/s1600/DSC_5920.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Jt-JkQAw9a0/UuAlsJH-jqI/AAAAAAAABDU/CdiK_SV9WQ4/s1600/DSC_5920.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Glue the servo head onto the gun holder. Before doing this, I had to calibrate the servo motor to 90 degrees, so that when it goes 0 degrees it points up, and 180 degrees points down.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-22PSKyHAk2g/UuAlp_ovePI/AAAAAAAABDE/cmJDHp96q5E/s1600/DSC_5919.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-22PSKyHAk2g/UuAlp_ovePI/AAAAAAAABDE/cmJDHp96q5E/s1600/DSC_5919.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2F5J-8xHF6c/UuAmHuNNdkI/AAAAAAAABDs/1KE5NlZBKvI/s1600/DSC_5929.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-2F5J-8xHF6c/UuAmHuNNdkI/AAAAAAAABDs/1KE5NlZBKvI/s1600/DSC_5929.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Here is what holds the servo to the chassis</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-WHI7I0ZUcpw/UuAmHMXljYI/AAAAAAAABDk/TpNNq8uy2eE/s1600/DSC_5930.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-WHI7I0ZUcpw/UuAmHMXljYI/AAAAAAAABDk/TpNNq8uy2eE/s1600/DSC_5930.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I bent this to fit the servo</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-MrfwMyOj-50/UuAmcIMeelI/AAAAAAAABD0/_yZqEjwBbJ0/s1600/DSC_5931.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-MrfwMyOj-50/UuAmcIMeelI/AAAAAAAABD0/_yZqEjwBbJ0/s1600/DSC_5931.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Bent this to be screwed onto the chassis</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tElNCCYFKSk/UuAmgq6DPKI/AAAAAAAABEA/Um6N1s5H0vY/s1600/DSC_5932.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-tElNCCYFKSk/UuAmgq6DPKI/AAAAAAAABEA/Um6N1s5H0vY/s1600/DSC_5932.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Krazy-Glue works really well with plexiglass, better than lexand glue.</div>
<div class="separator" style="clear: both; text-align: center;">
You can see a horizontal blue line for calibration.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-YPjNoAfIEjs/UuAmhBD68lI/AAAAAAAABEE/OvQ6ty5aQrs/s1600/DSC_5933.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-YPjNoAfIEjs/UuAmhBD68lI/AAAAAAAABEE/OvQ6ty5aQrs/s1600/DSC_5933.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It holds sturdily</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-TRARbYjWt4I/UuAmxIw9C8I/AAAAAAAABEM/kyWgEBipFtw/s1600/DSC_5934.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-TRARbYjWt4I/UuAmxIw9C8I/AAAAAAAABEM/kyWgEBipFtw/s1600/DSC_5934.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0R-sgDQtX5M/UuAm6J_C8MI/AAAAAAAABEU/liU3lYl9pQQ/s1600/DSC_5935.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-0R-sgDQtX5M/UuAm6J_C8MI/AAAAAAAABEU/liU3lYl9pQQ/s1600/DSC_5935.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The part marked red is what I need to cut off.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7gStkVU88ek/UuAm7JQePKI/AAAAAAAABEc/LOR_gM-9yds/s1600/DSC_5936.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-7gStkVU88ek/UuAm7JQePKI/AAAAAAAABEc/LOR_gM-9yds/s1600/DSC_5936.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-lBBCyhRx4Qk/UuAnHMwmV-I/AAAAAAAABEk/-mWFMz7HbK8/s1600/DSC_5937.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-lBBCyhRx4Qk/UuAnHMwmV-I/AAAAAAAABEk/-mWFMz7HbK8/s1600/DSC_5937.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Now the plexiglass can fit on top perfectly</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-eBZcN5rWnlI/UuAnUlSfFjI/AAAAAAAABEw/-TMUyOPX84Y/s1600/DSC_5938.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-eBZcN5rWnlI/UuAnUlSfFjI/AAAAAAAABEw/-TMUyOPX84Y/s1600/DSC_5938.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Drill some holes...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-PagY1wlyGpo/UuAnWOGEbWI/AAAAAAAABE0/lte6SjybWJI/s1600/DSC_5939.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-PagY1wlyGpo/UuAnWOGEbWI/AAAAAAAABE0/lte6SjybWJI/s1600/DSC_5939.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RdoGsPv9x3Y/UuAnd5wW5gI/AAAAAAAABE8/LLMNXvb1Yd0/s1600/DSC_5940.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-RdoGsPv9x3Y/UuAnd5wW5gI/AAAAAAAABE8/LLMNXvb1Yd0/s1600/DSC_5940.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Very swag.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3a70aM7uil0/UuAnvHCjB2I/AAAAAAAABFE/pCYtjxo8jJY/s1600/DSC_5941.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-3a70aM7uil0/UuAnvHCjB2I/AAAAAAAABFE/pCYtjxo8jJY/s1600/DSC_5941.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The bolts are a bit long but it works</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-OxjzUGXmYQ8/UuAnwyFHSGI/AAAAAAAABFM/-15KDcsRklo/s1600/DSC_5942.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-OxjzUGXmYQ8/UuAnwyFHSGI/AAAAAAAABFM/-15KDcsRklo/s1600/DSC_5942.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
ULTRA SWEG.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-hdKIrYX55fc/UuAn6KaoWvI/AAAAAAAABFU/mKR5ge3GVDk/s1600/DSC_5943.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-hdKIrYX55fc/UuAn6KaoWvI/AAAAAAAABFU/mKR5ge3GVDk/s1600/DSC_5943.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The control PCB I designed.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Jj0saln2zUU/UuAoGWqQDmI/AAAAAAAABFc/6T8EMGirFiQ/s1600/DSC_5944.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Jj0saln2zUU/UuAoGWqQDmI/AAAAAAAABFc/6T8EMGirFiQ/s1600/DSC_5944.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
My brother is in charge of programming the RPi. I did the hardware so he can easily interface with it.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-BdC_rRry-ok/UuAoPmkbD9I/AAAAAAAABFw/YeXx5H6dGzQ/s1600/DSC_5946.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-BdC_rRry-ok/UuAoPmkbD9I/AAAAAAAABFw/YeXx5H6dGzQ/s1600/DSC_5946.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I labelled the cables from the control board</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-UZ0uwOnhb40/UuAog5yr9AI/AAAAAAAABF8/x56LxH4KJf0/s1600/DSC_5947.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-UZ0uwOnhb40/UuAog5yr9AI/AAAAAAAABF8/x56LxH4KJf0/s1600/DSC_5947.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Lr1LZbYyOOc/UuAovvUuAwI/AAAAAAAABGE/CQ5nMf5Fijg/s1600/P1080091.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Lr1LZbYyOOc/UuAovvUuAwI/AAAAAAAABGE/CQ5nMf5Fijg/s1600/P1080091.JPG" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-EALr-_Gr0MI/UuApBkgILHI/AAAAAAAABGU/bKn_MZIkAzU/s1600/Simple+.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-EALr-_Gr0MI/UuApBkgILHI/AAAAAAAABGU/bKn_MZIkAzU/s1600/Simple+.jpeg" height="182" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Using two relays for an H-bridge.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Qc4Nfql4YSg/UuApFAClX6I/AAAAAAAABGc/t0H6DmqXOl0/s1600/sdf.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-Qc4Nfql4YSg/UuApFAClX6I/AAAAAAAABGc/t0H6DmqXOl0/s1600/sdf.jpeg" height="116" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
3.3v logic works fine with servo motors. I had to use transistors and darlington pairs to operate the relays and power control</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-tdzFUsN3OAQ/UuAo-1Et1mI/AAAAAAAABGM/aC04MhyYQJU/s1600/P1080092.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-tdzFUsN3OAQ/UuAo-1Et1mI/AAAAAAAABGM/aC04MhyYQJU/s1600/P1080092.JPG" height="240" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Rainbow bacon.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
That was really brief. I didn't get everything right the first time. Below are designs that failed:</h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7Kuem1hpA1E/UuAuWg2Gv6I/AAAAAAAABG0/bl-bQoyaxY8/s1600/DSC_5844.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-7Kuem1hpA1E/UuAuWg2Gv6I/AAAAAAAABG0/bl-bQoyaxY8/s1600/DSC_5844.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I was going to use gears. I didn't use gears.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-3_bBQVvns9U/UuAuWhObxYI/AAAAAAAABGw/RNVSnS-F01I/s1600/DSC_5854.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-3_bBQVvns9U/UuAuWhObxYI/AAAAAAAABGw/RNVSnS-F01I/s1600/DSC_5854.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I didn't hold down safety this time.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-689BQ--1un4/UuAuW_3NseI/AAAAAAAABG8/P3VtchhAcAg/s1600/DSC_5861.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-689BQ--1un4/UuAuW_3NseI/AAAAAAAABG8/P3VtchhAcAg/s1600/DSC_5861.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
My first H-bridges used transistors. There was a huge current drop.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-00jdfNWRz7A/UuAuojoY5VI/AAAAAAAABHI/QtYI7nW-x9I/s1600/DSC_5862.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-00jdfNWRz7A/UuAuojoY5VI/AAAAAAAABHI/QtYI7nW-x9I/s1600/DSC_5862.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-_rcPNzYGJWg/UuAusoG2xVI/AAAAAAAABHQ/RjK_tImFOuk/s1600/DSC_5869.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-_rcPNzYGJWg/UuAusoG2xVI/AAAAAAAABHQ/RjK_tImFOuk/s1600/DSC_5869.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I had a PCB for design 1 H-bridge.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-SrYsR5XSIAc/UuAux5yDftI/AAAAAAAABHY/o7kKDVkA2ao/s1600/DSC_5870.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-SrYsR5XSIAc/UuAux5yDftI/AAAAAAAABHY/o7kKDVkA2ao/s1600/DSC_5870.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-nLxyGV6kg-Q/UuAvBA6ke2I/AAAAAAAABHg/zQHIlsOg8dA/s1600/DSC_5871.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-nLxyGV6kg-Q/UuAvBA6ke2I/AAAAAAAABHg/zQHIlsOg8dA/s1600/DSC_5871.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/--kCWA-gPGl8/UuAvIED5E1I/AAAAAAAABHo/eWVFcH-I3lU/s1600/DSC_5872.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/--kCWA-gPGl8/UuAvIED5E1I/AAAAAAAABHo/eWVFcH-I3lU/s1600/DSC_5872.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VbLq2zsPaIU/UuAvK0dKIvI/AAAAAAAABHw/xk3u0d1H5hY/s1600/DSC_5873.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-VbLq2zsPaIU/UuAvK0dKIvI/AAAAAAAABHw/xk3u0d1H5hY/s1600/DSC_5873.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Don't use these H-bridges</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-AHp6XYW8e1s/UuAvZNXPrpI/AAAAAAAABH4/iUB57ZXDM9Q/s1600/DSC_5876.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-AHp6XYW8e1s/UuAvZNXPrpI/AAAAAAAABH4/iUB57ZXDM9Q/s1600/DSC_5876.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Zwz67ovyrkY/UuAvdeNkXmI/AAAAAAAABIA/w-Srj8q27-U/s1600/DSC_5877.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Zwz67ovyrkY/UuAvdeNkXmI/AAAAAAAABIA/w-Srj8q27-U/s1600/DSC_5877.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-zwY1nJKNtIk/UuAvi2vZWNI/AAAAAAAABII/yjBNZYIdQuE/s1600/DSC_5880.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-zwY1nJKNtIk/UuAvi2vZWNI/AAAAAAAABII/yjBNZYIdQuE/s1600/DSC_5880.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Mounting the failed H-bridges</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-EhJ0OBHCE8o/UuAvxnvmqTI/AAAAAAAABIQ/kQwru107qKc/s1600/DSC_5881.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-EhJ0OBHCE8o/UuAvxnvmqTI/AAAAAAAABIQ/kQwru107qKc/s1600/DSC_5881.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MMId0QpaVmw/UuAv1u21_HI/AAAAAAAABIY/8xSOrgrQM5I/s1600/DSC_5882.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-MMId0QpaVmw/UuAv1u21_HI/AAAAAAAABIY/8xSOrgrQM5I/s1600/DSC_5882.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-CsqJjsozlA4/UuAv6IL_h2I/AAAAAAAABIg/tCbSstu1qxg/s1600/DSC_5906.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-CsqJjsozlA4/UuAv6IL_h2I/AAAAAAAABIg/tCbSstu1qxg/s1600/DSC_5906.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I was going to use this to stand up the gun.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Ea-MIdKM14c/UuAwJGptx6I/AAAAAAAABIo/_AgeP-phWac/s1600/DSC_5907.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Ea-MIdKM14c/UuAwJGptx6I/AAAAAAAABIo/_AgeP-phWac/s1600/DSC_5907.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-eJJ1SOJtFnk/UuAwNIIrdjI/AAAAAAAABIw/5OAJnlBbcNM/s1600/DSC_5909.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-eJJ1SOJtFnk/UuAwNIIrdjI/AAAAAAAABIw/5OAJnlBbcNM/s1600/DSC_5909.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xWT121xVdE0/UuAwScYDIXI/AAAAAAAABI4/urRtoPEIx3Q/s1600/DSC_5910.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-xWT121xVdE0/UuAwScYDIXI/AAAAAAAABI4/urRtoPEIx3Q/s1600/DSC_5910.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-_hhaQUUhz2g/UuAwiKOmc2I/AAAAAAAABJA/NNHqBSBc_Ss/s1600/DSC_5911.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-_hhaQUUhz2g/UuAwiKOmc2I/AAAAAAAABJA/NNHqBSBc_Ss/s1600/DSC_5911.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-b27ylGKPTqQ/UuAwkhEH0RI/AAAAAAAABJI/INYaMk0C1-A/s1600/DSC_5912.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-b27ylGKPTqQ/UuAwkhEH0RI/AAAAAAAABJI/INYaMk0C1-A/s1600/DSC_5912.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-GoLdmrlLkaY/UuAwqpS4igI/AAAAAAAABJQ/rAeUeQGdY4M/s1600/DSC_5913.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-GoLdmrlLkaY/UuAwqpS4igI/AAAAAAAABJQ/rAeUeQGdY4M/s1600/DSC_5913.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ue2iZ-G63GA/UuAw9uG_FSI/AAAAAAAABJg/97SF3nIS3mY/s1600/DSC_5915.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ue2iZ-G63GA/UuAw9uG_FSI/AAAAAAAABJg/97SF3nIS3mY/s1600/DSC_5915.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-XbQDzbXsauM/UuAxBxdE34I/AAAAAAAABJo/f2vHwquw4l0/s1600/DSC_5921.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-XbQDzbXsauM/UuAxBxdE34I/AAAAAAAABJo/f2vHwquw4l0/s1600/DSC_5921.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Y09rUYbmyjA/UuAxa561P0I/AAAAAAAABKA/0nSVj22Bnf8/s1600/DSC_5926.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Y09rUYbmyjA/UuAxa561P0I/AAAAAAAABKA/0nSVj22Bnf8/s1600/DSC_5926.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3aSWask4bd8/UuAxlGJWJkI/AAAAAAAABKI/F_9_HpJG3fI/s1600/DSC_5927.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-3aSWask4bd8/UuAxlGJWJkI/AAAAAAAABKI/F_9_HpJG3fI/s1600/DSC_5927.JPG" height="212" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-s6y98556Pgg/UuAxmGY4D7I/AAAAAAAABKM/w6JcQ2ngXNs/s1600/DSC_5928.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-s6y98556Pgg/UuAxmGY4D7I/AAAAAAAABKM/w6JcQ2ngXNs/s1600/DSC_5928.JPG" height="320" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I decided that the gun would be too heavy and the cantilever force was too strong.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<br /></div>
<div>
I will update you with the working robot, and videos of how we calibrated the trigger servo and the gun turning servo.</div>
<div>
<br /></div>
<div>
Ask questions in the comments, Thanks!</div>
<div>
<br /></div>
<div>
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-85559489430184325402014-01-17T20:47:00.001-08:002014-01-17T20:47:59.548-08:00PCB Agitator<div class="separator" style="clear: both; text-align: left;">
Hello Again!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Over the past years I have been making PCBs by just watching it etch away. Sometimes I would heat up the chemicals in the microwave, jiggle it around manually, use a stirrer, or a straw to facilitate the etching process. </div>
<div class="separator" style="clear: both; text-align: left;">
You all probably know that by agitating the etchant, it etches faster. I don't throw out etchant that often (in fact I have never), so my it gets old, colorful, and ineffective.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Since I do not want to manually agitate, I decided to have an automatic agitator. There are many designs out there already.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h2>
Here are some just to name a few:</h2>
<div class="separator" style="clear: both; text-align: left;">
Microcontroller and H-bridge: <a href="http://indiantinker.wordpress.com/2013/09/04/open-agitator/">http://indiantinker.wordpress.com/2013/09/04/open-agitator/</a></div>
<div class="separator" style="clear: both; text-align: left;">
Arduino and H-bridge: <a href="http://www.instructables.com/id/CD-ROM-Agitator/">http://www.instructables.com/id/CD-ROM-Agitator/</a></div>
<div class="separator" style="clear: both; text-align: left;">
555, 4017, 4 transistor H-bridge:<a href="http://www.instructables.com/id/PCB-agitator-from-an-old-CR-ROM/"> http://www.instructables.com/id/PCB-agitator-from-an-old-CR-ROM/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I wanted to build one of these, but I did NOT want to use $30 hardware (Arduino) to do a simple back and forth motion, and I did NOT want to deal with the crazily pinned 4017 decade counter.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Seriously.</div>
<div class="separator" style="clear: both; text-align: left;">
Look at the pinout of LM4017. It's crazy and not easy to play with.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.tasel.net/images/cd-4017-pinout.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.tasel.net/images/cd-4017-pinout.jpg" height="256" width="320" /></a></div>
<div class="" style="clear: both; text-align: center;">
Can't you just put Q0-Q7 in order?</div>
<h3>
So, I really simplified the design.</h3>
<div>
First of all, I would not have done this without the guys on the <a href="http://forum.arduino.cc/index.php?topic=209914.0">Arduino Forum</a>.</div>
<div>
I would like to give a special thanks to <b>michiyon, TomGeorge, JohnLincoln, MarkT, MAS3, polymorph, and cjdelphi</b></div>
<div>
<b><br /></b></div>
<div>
My circuit was originally not functional, but I got help. Click the link if you want to see the debug process.</div>
<div>
<br /></div>
<div>
So, here is the schematic.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--RvVbeBUqak/UtmpMuwlzTI/AAAAAAAAA-k/s3J5UuI8UXY/s1600/sadf.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/--RvVbeBUqak/UtmpMuwlzTI/AAAAAAAAA-k/s3J5UuI8UXY/s1600/sadf.jpeg" height="221" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There are many things you can do to change this for it to work better, for example,</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<ul>
<li>connecting pin 4 on 555 to 9v</li>
<li>connecting pin 5 to 0.1 uf capacitor to ground</li>
<li>connecting the relay coils in series than in parallel</li>
<li>probably many other things I am forgetting</li>
</ul>
<div>
The reason I did not add these were for simplicity. This is the bare circuit.</div>
<br />
<div>
<b>You need:</b></div>
<div>
<ul>
<li>100 uf capacitor</li>
<li>2*1k resistor</li>
<li>10k resistor</li>
<li>2*5v relay</li>
<li>9v battery and clip</li>
<li>2n2222 transistor or the like</li>
<li>CD drive</li>
<li>4007 power diode (or the like)</li>
</ul>
</div>
<div>
<br /></div>
<div>
Here is how I assembled it:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-o3MZt87mUmI/UtmoxOHaOBI/AAAAAAAAA90/mPHKgdEWOtw/s1600/DSC_5898.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-o3MZt87mUmI/UtmoxOHaOBI/AAAAAAAAA90/mPHKgdEWOtw/s1600/DSC_5898.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Two relays taped together. The two SPDT relays with the same coil connect make a DPDT relay to function as an H-bridge.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ttqbfuT1k7M/UtmoxU8SdnI/AAAAAAAAA94/z_9a8CLYL0c/s1600/DSC_5899.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ttqbfuT1k7M/UtmoxU8SdnI/AAAAAAAAA94/z_9a8CLYL0c/s1600/DSC_5899.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Tight soldering!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-BJ4DmQWv0X0/UtmoyGfZ4iI/AAAAAAAAA-A/hStUAhaedTA/s1600/DSC_5900.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-BJ4DmQWv0X0/UtmoyGfZ4iI/AAAAAAAAA-A/hStUAhaedTA/s1600/DSC_5900.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The 555 timer</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MZX1WnIGX6U/UtmpIX8bJ0I/AAAAAAAAA-I/2V0vzO8q6jo/s1600/DSC_5901.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-MZX1WnIGX6U/UtmpIX8bJ0I/AAAAAAAAA-I/2V0vzO8q6jo/s1600/DSC_5901.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Taken apart CD drive.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-xa_v7ykh5dw/UtmpJy5jCVI/AAAAAAAAA-U/27EYDyBVo7Q/s1600/DSC_5902.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-xa_v7ykh5dw/UtmpJy5jCVI/AAAAAAAAA-U/27EYDyBVo7Q/s1600/DSC_5902.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The motor for the eject.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-TSUmVy869Bo/UtmpK9rBORI/AAAAAAAAA-c/ALxAHuG-l7I/s1600/DSC_5903.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-TSUmVy869Bo/UtmpK9rBORI/AAAAAAAAA-c/ALxAHuG-l7I/s1600/DSC_5903.JPG" height="320" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
If you can follow the schematic you are golden. Make a PCB, use a perfboard, whatever; I just made a rat's nest to keep it small.<br />
<br />
Here is a video:<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/8eNARdzs_ns" width="560"></iframe>
<br />
It is a bit kicky, probably because of a current issue, but it works for now.<br />
And it's a lot cheaper than the other PCB agitators, using less parts :D<br />
<br />
I hope you enjoy it.<br />
<br />tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-85409917942835021112013-12-31T11:37:00.001-08:002013-12-31T11:37:53.437-08:00Bird Alarm ClockWho likes waking up to the sound of alarm bells?<br />
<br />
From my experiences with different alarm clocks, I found that something that gradually gets louder wakes you up more patiently, comfortably, and fully than a sudden burst of obnoxious noise.<br />
<br />
For example, for years I have used an alarm clock with the bells and hammer: every morning I would wake up still half asleep and extremely pissed.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.ikea.com/us/en/images/products/dekad-alarm-clock__0110719_PE262840_S4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://www.ikea.com/us/en/images/products/dekad-alarm-clock__0110719_PE262840_S4.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I'm sure many people have this Ikea alarm clock...</div>
<br />
Today, I use my cell phone to gradually play "<a href="https://www.youtube.com/watch?v=uyAuATJXc14">Wake Up Everybody</a>" louder. I usually wake up more invigorated and inspired... because of the song.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://assets.sbnation.com/assets/781182/htc-vivid-review-009-300.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://assets.sbnation.com/assets/781182/htc-vivid-review-009-300.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
If you haven't caught on these are not my pictures... but this is my phone. I recommend it.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Usually when I do not wake up, my parents have to (thanks mom and dad).<br />
So as a Holiday/ Anniversary gift, I decided to make an alarm clock, using my Ikea alarm clock and an old toy.<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/93WQw2-BXwc" width="640"></iframe>
<br />
<br />
How I went about doing this is almost the same way I went about with my <a href="http://tsjwang.blogspot.com/2013/10/wireless-555-timer-mouse-modification.html">555 mouse</a> or my <a href="http://tsjwang.blogspot.com/2013/09/star-trek-target-practice.html">Phaser</a><br />
<br />
Basically, you take some pre-built hardware and you use it's trigger for something else. I love this sort of work: it requires little programming, and its often cheaper and less time consuming because it involves cheap mass manufactured hardware that can be bought for pocket change, instead of expensive microcontrollers and raw parts.<br />
<br />
I will proceed in talking about this project. Sorry, I did not take pictures.<br />
<br />
<br />
1) open up the alarm clock. There should be a gearbox and three tabs on the PCB sticking out of the gearbox.<br />
These three pads are Vcc (From battery pack, usually red wire is connected to it), GND (from battery pack, usually black wire), and some other pad with another color wire connected to it.<br />
<br />
The third pad is connected to the motor of the alarm clock, if you trace it.<br />
What happens is that when the alarm clock hits the time when it must activate, it grounds that third pad to connect the motor to ground and let electricity flow from cathode (-) to anode (+).<br />
<br />
So, instead of grounding the motor, I would ground a robotic bird<br />
<br />
2) open up whatever toy you want to activate when the alarm clock is grounded. Connect two wires to the battery pack: Vcc and GND.<br />
<br />
Connect Vcc to whatever Vcc needs to be powered by, and the GND of the toy to the third pad on the alarm clock.<br />
<br />
This is the basic concept of what's going on.<br />
I had a voltage regulator in there to handle some Vcc issues... that was not the main circuit.<br />
In essence, this circuit requires no components, just some rewiring.<br />
<br />
<br />
<br />
<br />
<h3>
okay where is the arduino stuff</h3>
For you arduino folks out there playing with multiplexing and H-Bridges, this might teach you an important concept.<br />
Look at this<a href="http://www.instructables.com/id/Jar-of-Fireflies/"> instructables for example.</a><br />
<br />
Also, read this for some understanding: <a href="http://arduino.cc/en/Reference/Constants">Constants</a><br />
You will further understand how microcontroller pins work.<br />
<br />
Keso, the author of this instructables, connects the end of LEDs to other I/O pins.<br />
He turns on one I/O pin and turns off the other I/O pin to turn on one LED. What he is actually doing when he turns of an I/O pin is grounding it, letting current flow.<br />
<br />
Using this method, Keso was able to implement 6 LEDs when he only had 5 I/O pins.<br />
<br />
Using this method, you could also make a low voltage motor turn both directions without an H-bridge. Simply connect one lead of each motor to an I/O pin, and write one pin 1, the other 0, and depending on whether the pins are 1,0 or 0,1, the motor will turn different directions.<br />
<br />
I don't often see this method implemented, but to get the word out, it can do amazing things.<br />
<br />
I hope that nugget of information helps.<br />
<br />tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-25416008967435753272013-12-22T20:35:00.001-08:002013-12-22T20:35:54.274-08:00Aluminum PCB Attempt (1)Making PCBs at home is awesome.<br />
Feel the <i>power</i> of making a professional-looking circuit board at home with these <i>amazing </i>chemicals that eat copper.<br />
<br />
Pretty rad.<br />
Sadly, not everyone can get their hands on etchant, or photosensitive boards, or any of that fancy stuff. As always, I investigated a cheaper way to make PCBs. I'm not talking about that 3D printing stuff or the conductive ink pens (those things are not cheap to begin with).<br />
<br />
I'm talking real lyfe.<br />
<br />
Okay. So the objective of this was to make a PCB that could use any substrate. That means I could implement a circuit on any surface: wood, glass, plastic, curved surfaces, paper, maybe even clothing!<br />
Before we continue on how I did this, we must first understand how PCBs work.<br />
<br />
Basically, a sheet of copper is pasted on top of an insulative substrate: usually phenolic or fiberglass, or flexible plastic. Printed Circuit Boards are much more sophisticated today, with multiple layers. These layers are connected through <i>vias</i>. Like elevators, they are conductive holes that transport electrons.<br />
<br />
Here are some pictures from the internet:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://circuitcalculator.com/wordpress/wp-content/uploads/2007/04/pcb-trace-geometry-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="http://circuitcalculator.com/wordpress/wp-content/uploads/2007/04/pcb-trace-geometry-2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
As you can see, each <i>trace</i> is like a wire, a road to move electrons.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.prototypepcbboard.com/photo/pl911321-fr4_immersion_gold_high_frequency_pcb_6_layers_rogers_ceramic_pcb_boards.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="228" src="http://www.prototypepcbboard.com/photo/pl911321-fr4_immersion_gold_high_frequency_pcb_6_layers_rogers_ceramic_pcb_boards.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
PCBs can get crazy, with layers of different types of conductors. A solder mask is that green thing that prevents the PCB from oxidation or shorts.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.polarinstruments.com/products/stackup/images/copper_imbalance.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="http://www.polarinstruments.com/products/stackup/images/copper_imbalance.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
More.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Now that you get the point of how these PCBs work, people usually make PCBs at home by etching away copper from a copper-clad board to get traces.<br />
You could look at my post on <a href="http://tsjwang.blogspot.com/2013/11/vu-meters-evolution.html">VU meters evolution</a> to get an idea of how I do it at home.<br />
<br />
<br />
So, it seems like PCB manufacturing at home is limited to copper boards on phenolic/fiberglass surfaces.<br />
Instead of using copper sheets (because they were not cheap), I used aluminum foil as the conductor. Instead of using fiberglass/phenolic, I used whatever I felt like. The following is my attempt on aluminum PCBs.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2NV4wDQTUrY/UrevnKgCNgI/AAAAAAAAA30/N-PM9ocXtVA/s1600/DSC_5787.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-2NV4wDQTUrY/UrevnKgCNgI/AAAAAAAAA30/N-PM9ocXtVA/s320/DSC_5787.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I decided for attempt 1 that I was going to use a plastic sheet</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-CgxN0czouFs/Urevm95DNSI/AAAAAAAAA3w/wqcK8PsVbSI/s1600/DSC_5788.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-CgxN0czouFs/Urevm95DNSI/AAAAAAAAA3w/wqcK8PsVbSI/s320/DSC_5788.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
For this first attempt I was going to use SMD parts, so I do not have to drill holes (the DIP parts will be bent into SMD).</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-T3Izi3HKTD0/Urev2HfgpAI/AAAAAAAAA4A/ydbG5Q240ME/s1600/DSC_5789.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-T3Izi3HKTD0/Urev2HfgpAI/AAAAAAAAA4A/ydbG5Q240ME/s320/DSC_5789.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Sanded out</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2NJgSwMYWN0/Urev6pnHA4I/AAAAAAAAA4I/DFFvNIC2zaA/s1600/DSC_5790.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-2NJgSwMYWN0/Urev6pnHA4I/AAAAAAAAA4I/DFFvNIC2zaA/s320/DSC_5790.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Just programming the chip</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-M9HJsiy1sOc/Urev8BWb5TI/AAAAAAAAA4Q/n3Q0pBYU65Y/s1600/DSC_5791.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-M9HJsiy1sOc/Urev8BWb5TI/AAAAAAAAA4Q/n3Q0pBYU65Y/s320/DSC_5791.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-eJZ0L4Wcnds/UrewM9StF5I/AAAAAAAAA4Y/IVxHooAXrIw/s1600/DSC_5792.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-eJZ0L4Wcnds/UrewM9StF5I/AAAAAAAAA4Y/IVxHooAXrIw/s320/DSC_5792.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I really had no photosensitive aluminum foil, so I would use the toner transfer method.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-VBAn9fAhGHo/UrewVcBCV1I/AAAAAAAAA4o/OgAJkBXFDN4/s1600/DSC_5794.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-VBAn9fAhGHo/UrewVcBCV1I/AAAAAAAAA4o/OgAJkBXFDN4/s320/DSC_5794.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I cut out one piece.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-jGyAfCk0b-Y/Urewlag6YTI/AAAAAAAAA4w/Q7MpuS3FuRU/s1600/DSC_5795.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-jGyAfCk0b-Y/Urewlag6YTI/AAAAAAAAA4w/Q7MpuS3FuRU/s320/DSC_5795.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Taped it to aluminum foil. The back of the foil has a piece of tape to keep it flat.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yWpYwSbq-Qk/Urewqas95SI/AAAAAAAAA44/2B2khAhmCxY/s1600/DSC_5796.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-yWpYwSbq-Qk/Urewqas95SI/AAAAAAAAA44/2B2khAhmCxY/s320/DSC_5796.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-U1gKVEhaWjY/UrewrqH-JFI/AAAAAAAAA5A/Pg2lZRbA4l4/s1600/DSC_5797.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-U1gKVEhaWjY/UrewrqH-JFI/AAAAAAAAA5A/Pg2lZRbA4l4/s320/DSC_5797.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then I ironed it. The tape melted, which was bad...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kCPFFrWJYlk/Urew-czj9UI/AAAAAAAAA5I/DRb5QGPpOe4/s1600/DSC_5798.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-kCPFFrWJYlk/Urew-czj9UI/AAAAAAAAA5I/DRb5QGPpOe4/s320/DSC_5798.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
The toner stayed intact with the foil, but the end product wasn't flat.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-x25Fw15A9Rg/UrexCKPucoI/AAAAAAAAA5Q/Nz5A1KQqcTQ/s1600/DSC_5799.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-x25Fw15A9Rg/UrexCKPucoI/AAAAAAAAA5Q/Nz5A1KQqcTQ/s320/DSC_5799.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Use crazy-glue to glue it onto the plastic</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-hZGV2b4KXnc/UrexDLlZpjI/AAAAAAAAA5Y/QwtwJSqyyQM/s1600/DSC_5800.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-hZGV2b4KXnc/UrexDLlZpjI/AAAAAAAAA5Y/QwtwJSqyyQM/s320/DSC_5800.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Bath in water to remove the paper</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-PCJbvdJV_q4/UrexX1ie0OI/AAAAAAAAA5o/m-RcwFFkwcs/s1600/DSC_5801.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-PCJbvdJV_q4/UrexX1ie0OI/AAAAAAAAA5o/m-RcwFFkwcs/s320/DSC_5801.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It did not glue on too well... there were air gaps and wrinkles</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-DmrN6MQXVM0/UrexWvufz_I/AAAAAAAAA5g/rBBnAHHFFYY/s1600/DSC_5802.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-DmrN6MQXVM0/UrexWvufz_I/AAAAAAAAA5g/rBBnAHHFFYY/s320/DSC_5802.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
dangerous chemicals.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-8clIBfNALyc/UrexX9VLPuI/AAAAAAAAA5s/uY14m0XDg_E/s1600/DSC_5803.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-8clIBfNALyc/UrexX9VLPuI/AAAAAAAAA5s/uY14m0XDg_E/s320/DSC_5803.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
crack a window.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-68jvwAUy1pU/UrexprXKw4I/AAAAAAAAA54/tMjMxx964uo/s1600/DSC_5804.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-68jvwAUy1pU/UrexprXKw4I/AAAAAAAAA54/tMjMxx964uo/s320/DSC_5804.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
two parts hydrogen peroxide</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/--P1T3qlBTmo/UrexvOh2vpI/AAAAAAAAA6I/OrF7hZpoQoI/s1600/DSC_5805.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/--P1T3qlBTmo/UrexvOh2vpI/AAAAAAAAA6I/OrF7hZpoQoI/s320/DSC_5805.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/--7q6R3EXh-k/Urext5vpZyI/AAAAAAAAA6A/KrYZep2_76U/s1600/DSC_5806.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/--7q6R3EXh-k/Urext5vpZyI/AAAAAAAAA6A/KrYZep2_76U/s320/DSC_5806.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
one part hydrochloric acid</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-iUd8WJYWH0I/UreyCXNvhjI/AAAAAAAAA6U/m97WVxF4J4s/s1600/DSC_5807.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-iUd8WJYWH0I/UreyCXNvhjI/AAAAAAAAA6U/m97WVxF4J4s/s320/DSC_5807.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It should etch the aluminum pretty well.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-s1nlsQ0Kg90/UreyCAsTQFI/AAAAAAAAA6Q/pjpH_tLCTFw/s1600/DSC_5808.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-s1nlsQ0Kg90/UreyCAsTQFI/AAAAAAAAA6Q/pjpH_tLCTFw/s320/DSC_5808.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-zDaWvHjZvt0/UreyDZajn3I/AAAAAAAAA6g/3svmA6fb0kc/s1600/DSC_5809.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-zDaWvHjZvt0/UreyDZajn3I/AAAAAAAAA6g/3svmA6fb0kc/s320/DSC_5809.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You will start to notice that the etchant gets in the cracks...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZnBc19ukaR0/UreyZp3w5kI/AAAAAAAAA6w/FRDiN_zDtwo/s1600/DSC_5810.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-ZnBc19ukaR0/UreyZp3w5kI/AAAAAAAAA6w/FRDiN_zDtwo/s320/DSC_5810.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It etched away at traces from below.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-s2H2QXt9aOo/Ureyatjy_ZI/AAAAAAAAA64/pf3VG42JbGs/s1600/DSC_5811.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-s2H2QXt9aOo/Ureyatjy_ZI/AAAAAAAAA64/pf3VG42JbGs/s320/DSC_5811.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-8me3u_Cqvz8/UreyXJEfr5I/AAAAAAAAA6o/ac2mYmme7Hw/s1600/DSC_5812.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-8me3u_Cqvz8/UreyXJEfr5I/AAAAAAAAA6o/ac2mYmme7Hw/s320/DSC_5812.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So this time, I would glue the aluminum onto a flat surface first.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sGHLUnKJ6h0/Ureyue__EUI/AAAAAAAAA7I/YZw2xVfiwAY/s1600/DSC_5813.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-sGHLUnKJ6h0/Ureyue__EUI/AAAAAAAAA7I/YZw2xVfiwAY/s320/DSC_5813.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-v1iUCrS8ias/Ureyrr5WUKI/AAAAAAAAA7A/G1DA-zB4YKI/s1600/DSC_5814.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-v1iUCrS8ias/Ureyrr5WUKI/AAAAAAAAA7A/G1DA-zB4YKI/s320/DSC_5814.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-bR_EEOdV0X0/UreyvoGpDbI/AAAAAAAAA7Q/e5Y98Mnm0Pk/s1600/DSC_5815.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-bR_EEOdV0X0/UreyvoGpDbI/AAAAAAAAA7Q/e5Y98Mnm0Pk/s320/DSC_5815.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-1eP7BONfeZ0/UrezBZ9_F0I/AAAAAAAAA7Y/fKf3mG3kLnw/s1600/DSC_5816.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-1eP7BONfeZ0/UrezBZ9_F0I/AAAAAAAAA7Y/fKf3mG3kLnw/s320/DSC_5816.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then I drew silly patterns on it with a circuit-writer pen (an oil based ink pen, it's a Sharpie in essence).</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-VaOiTYClUCg/UrezEfQVx6I/AAAAAAAAA7g/fEXK9a69c6E/s1600/DSC_5817.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-VaOiTYClUCg/UrezEfQVx6I/AAAAAAAAA7g/fEXK9a69c6E/s320/DSC_5817.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Z7t4eR9qdYg/UrezEegWjkI/AAAAAAAAA7k/Gho8alhBcTk/s1600/DSC_5818.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-Z7t4eR9qdYg/UrezEegWjkI/AAAAAAAAA7k/Gho8alhBcTk/s320/DSC_5818.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I put it in.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qdOsPz0e_D8/UrezVHRZdzI/AAAAAAAAA7w/xJpy-Q6HZNU/s1600/DSC_5819.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-qdOsPz0e_D8/UrezVHRZdzI/AAAAAAAAA7w/xJpy-Q6HZNU/s320/DSC_5819.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Working well!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-LzRfSFHGWnM/UrezZhtMCuI/AAAAAAAAA74/N8LDUyyPBz4/s1600/DSC_5820.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-LzRfSFHGWnM/UrezZhtMCuI/AAAAAAAAA74/N8LDUyyPBz4/s320/DSC_5820.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Then the ink started dissolving...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-f0YOHWMgqbA/UrezaGaxjHI/AAAAAAAAA78/wgPhDFd2aCg/s1600/DSC_5821.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-f0YOHWMgqbA/UrezaGaxjHI/AAAAAAAAA78/wgPhDFd2aCg/s320/DSC_5821.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Z1cFRDyD_qs/UreziwyMygI/AAAAAAAAA8I/Utfcs2P0xRM/s1600/DSC_5822.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-Z1cFRDyD_qs/UreziwyMygI/AAAAAAAAA8I/Utfcs2P0xRM/s320/DSC_5822.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-VlbkCBq9mYI/UreznJIjL7I/AAAAAAAAA8Q/rlK11vFxVbo/s1600/DSC_5823.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-VlbkCBq9mYI/UreznJIjL7I/AAAAAAAAA8Q/rlK11vFxVbo/s320/DSC_5823.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It didn't come out too well...</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<b>Conclusion from attempt 1:</b><br />
You must always put the substrate on the foil first to ensure an airtight bond that will not allow any etchant in between.<br />
This means that you cannot use a substrate that melts under a clothing iron, because...<br />
<br />
<b>Conclusion from attempt 2:</b><br />
Oil based ink does not last too well in our etchant.<br />
<br />
This PCB attempt could have been successful, if I were using glass, for example.<br />
<br />
However, I was not using glass. In the end, this was pretty much a failure. The goal was to use <i>any </i>substrate. I am currently limited to substrates that do not melt under a clothing iron.<br />
<br />
This gives me a nugget of information for my next attempt though, which is good, so I got that going for me.<br />
<br />
<br />
<br />tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com1tag:blogger.com,1999:blog-4781278098745493051.post-805995221991763652013-11-10T16:44:00.001-08:002013-11-10T16:44:16.504-08:00VU meters evolutionA few years ago I designed an awesome circuit.<br />
<h2>
Awesome:</h2>
<div>
My definition of awesome:</div>
<div>
<ul>
<li>cheap</li>
<li>easy</li>
<li>practical</li>
<li>awesome</li>
</ul>
<div>
I was searching for a way to build a VU meter. Before microcontrollers, all my projects were audio based: I just wanted to find ways to make my desk/room/life awesome. I built amplifiers, blinking lights, speakers, etc. I wanted to build a VU meter, so I fould the <b>LM3916/3915/3914</b> family.</div>
</div>
<div>
<br /></div>
<h3>
LM3916</h3>
<div>
I heard/read that this chip works logarithmically. That means that each LED that lights up is one decibel.</div>
<div>
Of course, like all the other chips in this family, it runs on 6v or higher and has the option of dot display (one dot) or bar display (bar VU).</div>
<div>
<br /></div>
<h3>
LM3915/3914</h3>
<div>
I think these two are almost the same. This chip works linear, so it isn't great for measuring decibels, which is logarithmic. It runs on 6v or higher, and has the dot display or bar display option.</div>
<div>
<br /></div>
<div>
So anyways, I built a few of these VU meters, the first ones being failures.</div>
<div>
<br /></div>
<div>
I don't even have pictures of it: It was my first attempt at double sided PCB and I failed pretty badly. It was operated by a microphone, ran on 9v, and had an LM386 as an amplifier.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
In those days, I learned that the less components you use, the better the circuit works (I was guessing and checking). For example, I built an LM386 amp that week and I took away a bunch of capacitors and resistors and the end product was amazingly better than the original schematic.</div>
<div>
<br /></div>
<div>
So, I used that philosophy to build this. I ended up with a USB powered VU meter with only a <b>chip and 10 LEDs</b> as necessary parts. Everything else is optional.</div>
<div>
<br /></div>
<h3>
The Chase</h3>
<div>
Let's cut to it.</div>
<div>
Here is a video of my 3rd VU Meter. My second one is the same, but with a wire instead of a plug.</div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/b6RbpkvwYUM?feature=player_embedded' frameborder='0'></iframe></div>
<div>
<br /></div>
<div>
The audio is gone: it was Hotel California...</div>
<div>
<br /></div>
<div>
That's the third one. I decided to make a new one, one with a more flexible profile, so let me show you how I made it...</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
FIRST</div>
<div>
Choose your chip...</div>
<div>
and buy THESE LEDs. I'm not sure if other LED's will work: these LEDs work well at low voltages.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-hADcyXDJGg0/UoAbUx-Xk9I/AAAAAAAAAx8/Dhi9zV9-5TU/s1600/$T2eC16N,!)QE9s3HD)CvBRV9GSRfl!~~60_12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-hADcyXDJGg0/UoAbUx-Xk9I/AAAAAAAAAx8/Dhi9zV9-5TU/s320/$T2eC16N,!)QE9s3HD)CvBRV9GSRfl!~~60_12.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I found these on ebay for pretty cheap. $5 for 100!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
Next, just look at all these pictures...</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-LSnXYYAfA5I/UoAbheGpgiI/AAAAAAAAAyI/J0GmfojAMkM/s1600/DESIGN.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://4.bp.blogspot.com/-LSnXYYAfA5I/UoAbheGpgiI/AAAAAAAAAyI/J0GmfojAMkM/s320/DESIGN.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Design</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-KP7zSWPAilQ/UoAb1j40qxI/AAAAAAAAAyc/gVZK6H6TyRo/s1600/DSC_5733.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-KP7zSWPAilQ/UoAb1j40qxI/AAAAAAAAAyc/gVZK6H6TyRo/s320/DSC_5733.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Print design onto transparency</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-xm-iHD9H8Ak/UoAb02U0d7I/AAAAAAAAAyY/cbmL1gLzsMM/s1600/DSC_5734.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-xm-iHD9H8Ak/UoAb02U0d7I/AAAAAAAAAyY/cbmL1gLzsMM/s320/DSC_5734.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Ready the developer, Plexi-glass, and PCB</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-evmBiQXbyCU/UoAb1lni4eI/AAAAAAAAAyg/uBDd4QkPg1o/s1600/DSC_5735.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-evmBiQXbyCU/UoAb1lni4eI/AAAAAAAAAyg/uBDd4QkPg1o/s320/DSC_5735.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Arrange design onto PCB, place plexi-glass on to, and light it up.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-31WSBMs2P10/UoAcRoGfaVI/AAAAAAAAAy4/ni0x3TscpRo/s1600/DSC_5736.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-31WSBMs2P10/UoAcRoGfaVI/AAAAAAAAAy4/ni0x3TscpRo/s320/DSC_5736.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7P9WsM82Q8w/UoAcHZ1G3DI/AAAAAAAAAys/KsSLuDzQNLE/s1600/DSC_5737.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-7P9WsM82Q8w/UoAcHZ1G3DI/AAAAAAAAAys/KsSLuDzQNLE/s320/DSC_5737.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Meanwhile get the materials</div>
<br />
<br />
<ul>
<li>LM3916/3914/3915</li>
<li>Resistor (or jumper, depends on if you like loud music or not)</li>
<li>Audio plugs</li>
<li>5 SMD LEDs</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-pW1AI1oPu0Y/UoAcIfSUOZI/AAAAAAAAAyw/lMwXQ4QDANI/s1600/DSC_5738.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-pW1AI1oPu0Y/UoAcIfSUOZI/AAAAAAAAAyw/lMwXQ4QDANI/s320/DSC_5738.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
8 Minutes, </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-v7OGpLK7lVM/UoAcaeKDOcI/AAAAAAAAAzA/2gsP_4cszCg/s1600/DSC_5739.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-v7OGpLK7lVM/UoAcaeKDOcI/AAAAAAAAAzA/2gsP_4cszCg/s320/DSC_5739.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
place in developer</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YwrNRt2a2LI/UoAceqnBzqI/AAAAAAAAAzM/qoyVdfxDzfI/s1600/DSC_5740.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-YwrNRt2a2LI/UoAceqnBzqI/AAAAAAAAAzM/qoyVdfxDzfI/s320/DSC_5740.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
let it set out</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-B9cv_JMcTWE/UoAcfVcC2pI/AAAAAAAAAzQ/ar_6q3zVPTk/s1600/DSC_5741.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-B9cv_JMcTWE/UoAcfVcC2pI/AAAAAAAAAzQ/ar_6q3zVPTk/s320/DSC_5741.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Looks about right</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-EISuhQ4wxvU/UoAc1HPPZkI/AAAAAAAAAzc/OX4UjL9KGPU/s1600/DSC_5742.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-EISuhQ4wxvU/UoAc1HPPZkI/AAAAAAAAAzc/OX4UjL9KGPU/s320/DSC_5742.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Clean it up if needed</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-RKmWZuFMtnM/UoAc2MoweUI/AAAAAAAAAzg/pj-upNX3ewU/s1600/DSC_5743.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-RKmWZuFMtnM/UoAc2MoweUI/AAAAAAAAAzg/pj-upNX3ewU/s320/DSC_5743.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Start etching</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-oBKGC6Nxep4/UoAc5kgDnLI/AAAAAAAAAzo/OQf1KDLYdco/s1600/DSC_5744.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-oBKGC6Nxep4/UoAc5kgDnLI/AAAAAAAAAzo/OQf1KDLYdco/s320/DSC_5744.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KnAf3GehG6c/UoAdFo573zI/AAAAAAAAAzw/JJJm9Qiq55I/s1600/DSC_5745.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-KnAf3GehG6c/UoAdFo573zI/AAAAAAAAAzw/JJJm9Qiq55I/s320/DSC_5745.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Divf5EiH2Xk/UoAdLw5ZpcI/AAAAAAAAAz4/La8VjAhi-rQ/s1600/DSC_5746.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-Divf5EiH2Xk/UoAdLw5ZpcI/AAAAAAAAAz4/La8VjAhi-rQ/s320/DSC_5746.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-is8m1FN-x-0/UoAdOuOtFeI/AAAAAAAAA0A/AMLp4h7zPSk/s1600/DSC_5747.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-is8m1FN-x-0/UoAdOuOtFeI/AAAAAAAAA0A/AMLp4h7zPSk/s320/DSC_5747.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-NfI1SJUk5UA/UoAdfSKBrHI/AAAAAAAAA0I/S24P_19pL0k/s1600/DSC_5748.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-NfI1SJUk5UA/UoAdfSKBrHI/AAAAAAAAA0I/S24P_19pL0k/s320/DSC_5748.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Clean with acetone</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-o30_kveLGqk/UoAdgylfBcI/AAAAAAAAA0U/kRR-s5iFDLg/s1600/DSC_5750.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-o30_kveLGqk/UoAdgylfBcI/AAAAAAAAA0U/kRR-s5iFDLg/s320/DSC_5750.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-obriioPHPcU/UoAdgxwp4yI/AAAAAAAAA0Y/GvKORDRUsnE/s1600/DSC_5751.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-obriioPHPcU/UoAdgxwp4yI/AAAAAAAAA0Y/GvKORDRUsnE/s320/DSC_5751.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Drill holes</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-H2XE8T0CQtc/UoAdw8VCDCI/AAAAAAAAA0g/KPik8nb0REE/s1600/DSC_5752.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-H2XE8T0CQtc/UoAdw8VCDCI/AAAAAAAAA0g/KPik8nb0REE/s320/DSC_5752.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Steady the board. Get your tweezers and your SMD LEDs. Add a blob of solder on one end of each SMD LED pad.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ssR_SOBxDGA/UoAd7vGUU2I/AAAAAAAAA0w/KpvYPZCmpDY/s1600/DSC_5753.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-ssR_SOBxDGA/UoAd7vGUU2I/AAAAAAAAA0w/KpvYPZCmpDY/s320/DSC_5753.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder one side of it</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-JCUsBzmSdsM/UoAd3CUMViI/AAAAAAAAA0o/wJEtWF4Tur0/s1600/DSC_5754.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-JCUsBzmSdsM/UoAd3CUMViI/AAAAAAAAA0o/wJEtWF4Tur0/s320/DSC_5754.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Reheat the joint and slide in the LED</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-bgTG7lh_q1o/UoAeJlR7q7I/AAAAAAAAA04/m_I9glOiDlg/s1600/DSC_5755.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-bgTG7lh_q1o/UoAeJlR7q7I/AAAAAAAAA04/m_I9glOiDlg/s320/DSC_5755.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Finish soldering the other edge</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-zrTwu-O5RGk/UoAeNPjfOiI/AAAAAAAAA1E/qVzWODSDb-o/s1600/DSC_5756.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-zrTwu-O5RGk/UoAeNPjfOiI/AAAAAAAAA1E/qVzWODSDb-o/s320/DSC_5756.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-QpZ9W668guY/UoAeOXdCyzI/AAAAAAAAA1I/i7M_nBhd2fU/s1600/DSC_5757.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-QpZ9W668guY/UoAeOXdCyzI/AAAAAAAAA1I/i7M_nBhd2fU/s320/DSC_5757.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Looks like I forgot to drill some holes</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-DUv7404164k/UoAfKF31FwI/AAAAAAAAA1k/ZgRW07DaYWg/s1600/DSC_5758.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-DUv7404164k/UoAfKF31FwI/AAAAAAAAA1k/ZgRW07DaYWg/s320/DSC_5758.JPG" width="212" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Add top components and finish</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-MFEzY5qs6aU/UoAfKFN6mtI/AAAAAAAAA1g/espd6Icod30/s1600/DSC_5759.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-MFEzY5qs6aU/UoAfKFN6mtI/AAAAAAAAA1g/espd6Icod30/s320/DSC_5759.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wow</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xP3P1J-y-JY/UoAe9aKSpGI/AAAAAAAAA1Y/BT1tZE5iLzA/s1600/DSC_5760.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-xP3P1J-y-JY/UoAe9aKSpGI/AAAAAAAAA1Y/BT1tZE5iLzA/s320/DSC_5760.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
much cool</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-gf4mPRLvlPM/UoAfgLF-YPI/AAAAAAAAA2A/UvnHIioJv1s/s1600/DSC_5761.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-gf4mPRLvlPM/UoAfgLF-YPI/AAAAAAAAA2A/UvnHIioJv1s/s320/DSC_5761.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3FtgYramU2M/UoAfcpVZJbI/AAAAAAAAA1w/yaYrIXe-pO4/s1600/DSC_5762.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-3FtgYramU2M/UoAfcpVZJbI/AAAAAAAAA1w/yaYrIXe-pO4/s320/DSC_5762.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-75zYSKKL-Nc/UoAfeTKTcLI/AAAAAAAAA14/7RplOJWpz1I/s1600/DSC_5763.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-75zYSKKL-Nc/UoAfeTKTcLI/AAAAAAAAA14/7RplOJWpz1I/s320/DSC_5763.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZIebjHASuOs/UoAf1U52zsI/AAAAAAAAA2M/R5y5sLCDgbQ/s1600/DSC_5764.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-ZIebjHASuOs/UoAf1U52zsI/AAAAAAAAA2M/R5y5sLCDgbQ/s320/DSC_5764.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-EAs0GzidFew/UoAf1d8rd0I/AAAAAAAAA2I/9jEzqwkiJJg/s1600/DSC_5765.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-EAs0GzidFew/UoAf1d8rd0I/AAAAAAAAA2I/9jEzqwkiJJg/s320/DSC_5765.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-b9nmDIQpOdA/UoAf9KuoTZI/AAAAAAAAA2Y/ofOVlW0o9u0/s1600/DSC_5766.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-b9nmDIQpOdA/UoAf9KuoTZI/AAAAAAAAA2Y/ofOVlW0o9u0/s320/DSC_5766.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Once you test that it works,</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-jLD8lz12ZW0/UoAgGwPIEZI/AAAAAAAAA2g/D4m56UyMG5s/s1600/DSC_5767.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-jLD8lz12ZW0/UoAgGwPIEZI/AAAAAAAAA2g/D4m56UyMG5s/s320/DSC_5767.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Clean it and </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-AToC7zQNNBI/UoAgIGebXJI/AAAAAAAAA2o/SMrI0O7gDv8/s1600/DSC_5768.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-AToC7zQNNBI/UoAgIGebXJI/AAAAAAAAA2o/SMrI0O7gDv8/s320/DSC_5768.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cover in nail polish.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-8o2Bhh56_yo/UoAgKYp1sbI/AAAAAAAAA2w/i-h88ooRhrQ/s1600/DSC_5769.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-8o2Bhh56_yo/UoAgKYp1sbI/AAAAAAAAA2w/i-h88ooRhrQ/s320/DSC_5769.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
wow.</div>
<div>
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com1tag:blogger.com,1999:blog-4781278098745493051.post-15591651216330750402013-10-12T13:30:00.003-07:002013-11-10T15:27:43.149-08:00WIRELESS 555 timer mouse modificationIt's Columbus Day weekend and I had an urge to do this project ever since I got back from Hong Kong, so I decided to do it this weekend.<br />
<br />
You might be familiar with this "mod" on gaming communities, whether it be for Xbox games or for computer games. Basically you add a 555 timer sends an oscillated signal to a button to simulate extremely fast clicking.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-QuoL0Ui9hP4/UiC-kqsU7GI/AAAAAAAAAeg/8FRKarF0IHU/s1600/P1080023.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="http://1.bp.blogspot.com/-QuoL0Ui9hP4/UiC-kqsU7GI/AAAAAAAAAeg/8FRKarF0IHU/s400/P1080023.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is my old mouse</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I did this to my old mouse and I used it a lot for my games.<br />
<br />
I found an awesome wireless mouse in Hong Kong that only costed $5, and I loved using it. It was more sensitive, and, wireless! My desk was beginning to get cluttered so I was more interested into going wireless.<br />
The bad thing is, it doesn't have this rapid-fire button on it.<br />
<br />
The 555 timer runs at 5v. If I tried to put that circuit into a mouse running at 1.5v, I would have a bad time.<br />
I dug the internet for solutions to this problem, and found nothing. I have yet to find a web page that has instructions on how to build a rapid fire circuit for a wireless mouse, or even proof that it has been done.<br />
The only thing I found was <a href="http://www.instructables.com/community/HELP-Rapid-Fire-Mod-For-wireless-mouse/">this</a>. Sad.<br />
<br />
<a href="http://www.ti.com/lit/ds/symlink/lmc555.pdf">Apparently, TI sells and low voltage variation of the 555 timer, the LMC555.</a> It's CMOS, so it runs with less power.<br />
TI claims that it has this swap-out property, so I can just replace a normal LM555 with a LMC555 and everything will still work. I had to see this for myself.<br />
<br />
So I ordered a few and built the circuit as I always would. Here is a schematic<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OTseZUM8W0U/UllrEcu5qDI/AAAAAAAAAvg/vX6Xzz3spRo/s1600/scham.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="http://2.bp.blogspot.com/-OTseZUM8W0U/UllrEcu5qDI/AAAAAAAAAvg/vX6Xzz3spRo/s400/scham.jpeg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I will explain the transistor later.<br />
<br />
<br />
So the first step is to take apart the mouse.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-kpCWrCEbAAQ/Ullrc30CQ-I/AAAAAAAAAvo/scFA23L0q6M/s1600/DSC_5708.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-kpCWrCEbAAQ/Ullrc30CQ-I/AAAAAAAAAvo/scFA23L0q6M/s320/DSC_5708.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Good job!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Now, build the circuit on a breadboard so that you are sure everything works.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="http://4.bp.blogspot.com/-0WXAsqgfpHc/UllsIIKSYHI/AAAAAAAAAv4/wjHj300bFTs/s1600/DSC_5709.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-0WXAsqgfpHc/UllsIIKSYHI/AAAAAAAAAv4/wjHj300bFTs/s320/DSC_5709.JPG" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Test it</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-m9k__ITNz40/UllsCxZB9iI/AAAAAAAAAvw/WKSFVGTI7hg/s1600/DSC_5710.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-m9k__ITNz40/UllsCxZB9iI/AAAAAAAAAvw/WKSFVGTI7hg/s320/DSC_5710.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You should get this really quick square wave.</div>
<br />
Now you are going to have to do a little testing (with a multimeter)on the mouse now.<br />
Most wired mice have a button that when you click it, it shorts HIGH to the processor. When the processor picks up the HIGH, it takes it as a click.<br />
This wireless mouse does something else. When the processor senses that a pin is LOW, it considers it a click.<br />
From the two button pins, find the pin to the processor (2-3v) and the pin that is LOW (0v).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-zZP52V0J594/UlltDKd57OI/AAAAAAAAAwA/WDAfCD3u4T0/s1600/DSC_5711.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-zZP52V0J594/UlltDKd57OI/AAAAAAAAAwA/WDAfCD3u4T0/s320/DSC_5711.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Test each lead of the button.</div>
To find out whether your mouse is activated by HIGH or LOW, click the button and see if both pins are HIGH or LOW.<br />
If both pins end up HIGH (3v), you don't need a transistor.<br />
If both pins end up LOW, you need a transistor.<br />
When the transistor receives a signal from the base, current will flow from collector to emitter. Emitter will be connected to ground, and the collector will be connected to the processor pin (2-3v).<br />
<br />
Try using a wire to short your processor pin to GND. See if that renders as a click.<br />
<br />
So now that you cleared that up, solder the circuit together! Remember to make it AS SMALL AS POSSIBLE. Space is an issue. You have a battery, a button, and your 555 circuit all crammed into the already tight space in the wireless mouse.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xzHmdqNQg9c/UlluVTjDZHI/AAAAAAAAAwU/SxT1om66OL4/s1600/DSC_5714.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-xzHmdqNQg9c/UlluVTjDZHI/AAAAAAAAAwU/SxT1om66OL4/s320/DSC_5714.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
bend the leads</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-qrW8ZFPoG2k/UlluWtStFDI/AAAAAAAAAwc/ZnigrgFSYrY/s1600/DSC_5715.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-qrW8ZFPoG2k/UlluWtStFDI/AAAAAAAAAwc/ZnigrgFSYrY/s320/DSC_5715.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-WHvQkAqDmOU/UlluPa7mgxI/AAAAAAAAAwM/qlHeyRvYa3o/s1600/DSC_5716.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-WHvQkAqDmOU/UlluPa7mgxI/AAAAAAAAAwM/qlHeyRvYa3o/s320/DSC_5716.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder tightly</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-MnZFF2-trzQ/UlluZyF-cqI/AAAAAAAAAwk/-E7rm2mSyVw/s1600/DSC_5717.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-MnZFF2-trzQ/UlluZyF-cqI/AAAAAAAAAwk/-E7rm2mSyVw/s320/DSC_5717.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
After that, drill your hole for you mouse. You must find a button that fits your mouse.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9Fbx8gqEdKM/UllvD9GF4bI/AAAAAAAAAw8/maV3uL4ovs8/s1600/DSC_5718.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-9Fbx8gqEdKM/UllvD9GF4bI/AAAAAAAAAw8/maV3uL4ovs8/s320/DSC_5718.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Just adding the transistor</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-YBDHRxExRj4/UllvBVeWdxI/AAAAAAAAAww/Zrd6p38fBkg/s1600/DSC_5719.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-YBDHRxExRj4/UllvBVeWdxI/AAAAAAAAAww/Zrd6p38fBkg/s320/DSC_5719.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Find the right drill bit</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZnI2gmCMwaQ/UllvBMPQygI/AAAAAAAAAws/pb0bAhkgTms/s1600/DSC_5720.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-ZnI2gmCMwaQ/UllvBMPQygI/AAAAAAAAAws/pb0bAhkgTms/s320/DSC_5720.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Seems to fit</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-m02KfOgWZY8/UllvJNClnQI/AAAAAAAAAxE/qJZEWCzVL5E/s1600/DSC_5721.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-m02KfOgWZY8/UllvJNClnQI/AAAAAAAAAxE/qJZEWCzVL5E/s320/DSC_5721.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
It fits!</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
So now that is done,<br />
Connect the 555 timer to Vcc and GND<br />
Connect the emitter of the NPN transistor to ground<br />
Connect the collector of the NPN transistor to the processor pin (or the button pin that has 3 volts)<br />
Connect one end of the button the the base of the transistor<br />
Connect the other end of the button to the pin 3 of the 555 timer.<br />
<br />
Some pictures of that:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-4fT389QkUys/UoAWSIWnZjI/AAAAAAAAAxk/ouumyL_7GNk/s1600/DSC_5726.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-4fT389QkUys/UoAWSIWnZjI/AAAAAAAAAxk/ouumyL_7GNk/s320/DSC_5726.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wrap it in electrical tape for insulation</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-7qkiypXTWFY/UoAWS14UdLI/AAAAAAAAAxo/i9Y62biKhAk/s1600/DSC_5727.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-7qkiypXTWFY/UoAWS14UdLI/AAAAAAAAAxo/i9Y62biKhAk/s320/DSC_5727.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
fits nicely</div>
<br />
<br />
And you are set!<br />
<br />
Here is a video of it working. Note that this mod is pretty glitchy, and sometime it will not respond, but it works most of the time.<br />
<br />
<div style="text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/mfyascZjakI" width="480"></iframe>
</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-JipBDU-c7aA/Ullv9tT1mjI/AAAAAAAAAxM/ujzeXeabtNA/s1600/DSC_5722.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-JipBDU-c7aA/Ullv9tT1mjI/AAAAAAAAAxM/ujzeXeabtNA/s320/DSC_5722.JPG" width="320" /></a></div>
<br />tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-16969821053165419892013-10-04T20:58:00.000-07:002013-10-04T20:58:57.473-07:00Cheap and easy SD WAVE playerFirst of all, I would like to mention that I go to school, so I'm not always posting on my blog.<br />
<br />
Second of all, I would like to mention that this project is from <a href="http://elm-chan.org/works/sd8p/report.html">elm-chan.org</a><br />
I don't claim it as mine, I am simply copying the project. I wanted to mention this so that people will know that doing this: <a href="http://www.expertcore.org/viewtopic.php?t=1210">http://www.expertcore.org/viewtopic.php?t=1210</a><br />
<br />
They are the exact same project, done by two different people. If you look at the code from Magneto (expertcore) the only time he mentioned elm-chan was in the main.c<br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/*---------------------------------------------------------------*/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/* 8-pin SD audio player R0.03 (C)ChaN, 2010 */</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/*---------------------------------------------------------------*/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
The original code had all of this:<br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/*----------------------------------------------------------------------------/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ 8-pin SD audio player R0.05d (C)ChaN, 2011 /</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/-----------------------------------------------------------------------------/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ This project, program codes and circuit diagrams, is opened under license</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ policy of following trems.</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ Copyright (C) 2010, ChaN, all right reserved.</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ * This project is a free software and there is NO WARRANTY.</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ * No restriction on use. You can use, modify and redistribute it for</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ personal, non-profit or commercial use UNDER YOUR RESPONSIBILITY.</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/ * Redistributions of source code must retain the above copyright notice.</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">/----------------------------------------------------------------------------*/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
I have to say Magneto did the right thing, including the copyright, however I was hoping to see (in expertcore) the original link to the project. Not only did he not mention elm-chan he copied the page word for word (with a little paraphrasing).<br />
<br />
<h4>
now that my mini-rant is over...</h4>
<div>
I want to tell you about this project. Ever since I got started in microcontrollers I thought that I would be using PIC. Well, because of the Arduino, Atmel got to me first. </div>
<div>
When I was looking for PIC projects then, I always wanted to make an MP3 player, or something that could hold at least 2GB of music and that I could use, you know, like an iPod shuffle.</div>
<div>
<br /></div>
<div>
So a week ago I found this project.</div>
<div>
It basically uses PWM pins to simulate AC current (pretty amazing to me). Of course, with arduino you can play midi files from a PWM pin, but playing legitimate music (after converting them from MP3 to WAV) with </div>
<div>
<ul>
<li>$2 attiny85</li>
<li>$1 circuit board</li>
<li>$0.50 parts</li>
<li>$0 some old thrown out battery</li>
<li>$5 SD</li>
</ul>
<div>
which is <$10, is pretty awesome.</div>
</div>
<div>
<br /></div>
<div>
One might expect that PWM will generate a lot of distortion. TRUE.</div>
<div>
If you listen to this WAV player with earbuds you will be somewhat disappointed. You will hear static and the music will be too loud.</div>
<div>
<br /></div>
<div>
However, if you have a somewhat decent audio system, you will be amazed by the quality...</div>
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/zo4M3JktRAA" width="480"></iframe>
<br />
<div>
Most audio setups have low pass filters built into them and all that, so the garbage from the WAV player gets removed!</div>
<div>
Of course you could have a built in LPF and a volume control potentiometer, but I was a bit lazy this time.</div>
<div>
<br /></div>
<div>
Some pictures:</div>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-iTULack-Bdw/Uk95nLVWvPI/AAAAAAAAAsg/6Zdefd-XJ2k/s1600/DSC_5689.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-iTULack-Bdw/Uk95nLVWvPI/AAAAAAAAAsg/6Zdefd-XJ2k/s320/DSC_5689.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Dynex converter from BestBuy ~ $5</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-BgVuwWfDwF0/Uk951s48eEI/AAAAAAAAAsw/TtCQrBtkT0o/s1600/DSC_5690.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-BgVuwWfDwF0/Uk951s48eEI/AAAAAAAAAsw/TtCQrBtkT0o/s320/DSC_5690.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Solder on some headers to the pins after you take it apart</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-chqd2ixA5Xg/Uk95nbnvd_I/AAAAAAAAAsk/JyGLvA-c7F8/s1600/DSC_5691.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-chqd2ixA5Xg/Uk95nbnvd_I/AAAAAAAAAsk/JyGLvA-c7F8/s320/DSC_5691.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Now you know why?</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ZawA59CMigU/Uk957on7Y6I/AAAAAAAAAs4/cZam1m0F83A/s1600/DSC_5692.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-ZawA59CMigU/Uk957on7Y6I/AAAAAAAAAs4/cZam1m0F83A/s320/DSC_5692.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldered some pins onto the SD so that I can use it on a breadboard and other projects.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-k2EoGTMboUg/Uk95-c5euKI/AAAAAAAAAtA/sIAZj76P78A/s1600/DSC_5693.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-k2EoGTMboUg/Uk95-c5euKI/AAAAAAAAAtA/sIAZj76P78A/s320/DSC_5693.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cut grooves into PCB like a stamp. That way I can just slide in this header</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-AIxrUE33Ieg/Uk96Mg0A97I/AAAAAAAAAtI/GbHGoemKz3I/s1600/DSC_5694.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-AIxrUE33Ieg/Uk96Mg0A97I/AAAAAAAAAtI/GbHGoemKz3I/s320/DSC_5694.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Components...</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-AON9akgMjoo/Uk96TLDhVGI/AAAAAAAAAtQ/xPYYbYehdAg/s1600/DSC_5695.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-AON9akgMjoo/Uk96TLDhVGI/AAAAAAAAAtQ/xPYYbYehdAg/s320/DSC_5695.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Soldered together, plugged into USBTinyISP</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-GOQfXGJc1nw/Uk96U8are1I/AAAAAAAAAtY/VuYe7d_VZMM/s1600/DSC_5696.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-GOQfXGJc1nw/Uk96U8are1I/AAAAAAAAAtY/VuYe7d_VZMM/s320/DSC_5696.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Wire all the programming pins to where the SD socket is supposed to be (as they are connected to the chip).</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-53Df17b5xBo/Uk960hsG26I/AAAAAAAAAtw/hwRmwY_7rX4/s1600/DSC_5700.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-53Df17b5xBo/Uk960hsG26I/AAAAAAAAAtw/hwRmwY_7rX4/s320/DSC_5700.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Packaged nicely.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-IQpPpMOaXCI/Uk97PdvLmqI/AAAAAAAAAt4/CONJwuQnRII/s1600/DSC_5701.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-IQpPpMOaXCI/Uk97PdvLmqI/AAAAAAAAAt4/CONJwuQnRII/s320/DSC_5701.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-aW-HuyJmEFk/Uk97TY_oqcI/AAAAAAAAAuE/eq8fI9rw6EI/s1600/DSC_5706.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-aW-HuyJmEFk/Uk97TY_oqcI/AAAAAAAAAuE/eq8fI9rw6EI/s320/DSC_5706.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Charging is simple too!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-JRTfSVBt2UU/Uk97TEi1wLI/AAAAAAAAAuA/BzBE-vcisOY/s1600/DSC_5707.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-JRTfSVBt2UU/Uk97TEi1wLI/AAAAAAAAAuA/BzBE-vcisOY/s320/DSC_5707.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span id="goog_17668277"></span><span id="goog_17668278"></span><br /></div>
<div>
Here's a link to elm-chan's files... I added my own folder for the PCB, schematics, and other important reference items that were not included in the original package.</div>
<div>
<br /></div>
<div>
<a href="https://drive.google.com/folderview?id=0B-IpF4x-izXeS20wbGlwOXFYY3M&usp=sharing">https://drive.google.com/folderview?id=0B-IpF4x-izXeS20wbGlwOXFYY3M&usp=sharing</a></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-55227507453606202962013-09-05T07:26:00.000-07:002013-09-05T07:29:05.861-07:00IT LIVES?Okay, about one of my old blogs.... <a href="http://tsjwang.blogspot.com/2013/08/diy-arduino-mega-2560.html" target="_blank">"DIY Arduino Mega 2560"</a><br />
<br />
Here is just a little update. Some pictures of the chip smoking up, pictures of it working for five minutes, and pictures of it not responding again.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-M-DgYwnbbgs/UiiTiOF-NkI/AAAAAAAAArI/X1W6qa3yFxE/s1600/DSC_5660.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-M-DgYwnbbgs/UiiTiOF-NkI/AAAAAAAAArI/X1W6qa3yFxE/s320/DSC_5660.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-E9lA4O3824U/UiiTo1GMMAI/AAAAAAAAArQ/gNP_IzQ5T_Y/s1600/DSC_5661.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-E9lA4O3824U/UiiTo1GMMAI/AAAAAAAAArQ/gNP_IzQ5T_Y/s320/DSC_5661.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Fr4rQWj5ymE/UiiTqzwm_KI/AAAAAAAAArY/1Uppqq_xrgs/s1600/DSC_5662.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-Fr4rQWj5ymE/UiiTqzwm_KI/AAAAAAAAArY/1Uppqq_xrgs/s320/DSC_5662.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-dtbiDGjYN6Y/UiiUMlUVbaI/AAAAAAAAArw/JUsc2dttJLM/s1600/DSC_5663.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-dtbiDGjYN6Y/UiiUMlUVbaI/AAAAAAAAArw/JUsc2dttJLM/s320/DSC_5663.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-D0p58mRz0FE/UiiT_qN4JPI/AAAAAAAAArg/46j-bBBYU-U/s1600/DSC_5664.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-D0p58mRz0FE/UiiT_qN4JPI/AAAAAAAAArg/46j-bBBYU-U/s320/DSC_5664.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QglJ8Tr9J7E/UiiVKORARmI/AAAAAAAAAr8/nj_eUHZWdX0/s1600/DSC_5665.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="138" src="http://4.bp.blogspot.com/-QglJ8Tr9J7E/UiiVKORARmI/AAAAAAAAAr8/nj_eUHZWdX0/s320/DSC_5665.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
I ended up burning my <a href="http://tsjwang.blogspot.com/2013/08/lets-get-familiar-with-some-tools.html#USBTINY">USBTiny</a>, but i just had to replace a diode. You see? It's good to have cheap homemade tools.tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-27402414732820786882013-09-05T07:03:00.003-07:002013-09-05T07:31:05.533-07:00TIP 31 carThere is not much to explain....<br />
<br />
Here is a video:<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/cJY6a2W-hb8" width="480"></iframe><br />
<br />
Pretty self explanatory. Basically I had a model car lying around, so I drilled holes in it and put a circuit in the engine compartment. Looks nice! A23 battery cells are awesome.<br />
<br />
Here is the circuit if you are wondering:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-XaKtTWP7L4U/UiiEnoGzCBI/AAAAAAAAAps/tgX9tbJrn7g/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-XaKtTWP7L4U/UiiEnoGzCBI/AAAAAAAAAps/tgX9tbJrn7g/s320/Untitled.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I used a TIP 31 NPN transistor. This is a pretty popular project, I just implemented it in something different.<br />
I tried a lower voltage with smaller transistors (e.g. 2n2222)... It didn't work. Still investigating it.<br />
<br />
This isn't my first car. The predecessor to this car had headlights, tail-lights, and a speaker. It had a pedestal.<br />
Now, it's burnt out by my attempts to add an amplifier.<br />
Here is a terrible quality video of when it did work:<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/NU712D-WRL0" width="480"></iframe>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Just some pictures of it not working.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xqaU0Tvtpk4/UiiIPCjlKzI/AAAAAAAAAp4/hXNmi1fplog/s1600/DSC_5666.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-xqaU0Tvtpk4/UiiIPCjlKzI/AAAAAAAAAp4/hXNmi1fplog/s320/DSC_5666.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-FX6khDySFr0/UiiIWgK2MAI/AAAAAAAAAqA/QH0IVfstbEo/s1600/DSC_5667.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-FX6khDySFr0/UiiIWgK2MAI/AAAAAAAAAqA/QH0IVfstbEo/s320/DSC_5667.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--vTANqOlgjA/UiiIb0FGEKI/AAAAAAAAAqI/9bIyXLD2YUY/s1600/DSC_5668.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/--vTANqOlgjA/UiiIb0FGEKI/AAAAAAAAAqI/9bIyXLD2YUY/s320/DSC_5668.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
ooh dusty</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-E3Qpbd8Klck/UiiIot9vZ7I/AAAAAAAAAqQ/dK8e0ygc33s/s1600/DSC_5669.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-E3Qpbd8Klck/UiiIot9vZ7I/AAAAAAAAAqQ/dK8e0ygc33s/s320/DSC_5669.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-H2epm6WrjOQ/UiiIuqxvB7I/AAAAAAAAAqY/bACamnQYJkc/s1600/DSC_5670.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-H2epm6WrjOQ/UiiIuqxvB7I/AAAAAAAAAqY/bACamnQYJkc/s320/DSC_5670.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-hIK6z8mLTCA/UiiIysM7m7I/AAAAAAAAAqg/jCXvFg09Xzk/s1600/DSC_5671.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-hIK6z8mLTCA/UiiIysM7m7I/AAAAAAAAAqg/jCXvFg09Xzk/s320/DSC_5671.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-OEtOWo2GLi0/UiiI3P8AuII/AAAAAAAAAqo/z7ydPG3BsFk/s1600/DSC_5672.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-OEtOWo2GLi0/UiiI3P8AuII/AAAAAAAAAqo/z7ydPG3BsFk/s320/DSC_5672.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Some old stickers</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
So I honestly like my new revision, because all the electronics are inside the car! The Audi I made before probably burnt out because the AC Adapter says "12v", however it was actually close to 20vtsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-42275653906313166432013-09-01T17:06:00.001-07:002013-09-03T08:32:57.006-07:00Star Trek Target PracticeI guess I was watching a bit too much Star Trek with my brother. I decided to make a phaser.<br />
<br />
Some of you may know that there are multiple types of phasers. I modeled mine after... Whatever it looks like:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.startrek.pl/res/images/galleries/007/phasers1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://www.startrek.pl/res/images/galleries/007/phasers1.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://ftp.ij.net/jarax/Solaris/images/phaser_type1&2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="237" src="http://ftp.ij.net/jarax/Solaris/images/phaser_type1&2.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I think I was going for Type 2 Phaser 2265, but it turned out a little different.<br />
<br />
Here is a video on Youtube describing how it works and all of that.<br />
<br />
<iframe width="480" height="360" src="//www.youtube.com/embed/ia_uKGEx3V8" frameborder="0" allowfullscreen></iframe>
Like I promised, schematics and pictures!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-o7UaVQcgcPg/UiOWvRA4J7I/AAAAAAAAAnc/9m_gWvUcgCc/s1600/DSC_5651.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://1.bp.blogspot.com/-o7UaVQcgcPg/UiOWvRA4J7I/AAAAAAAAAnc/9m_gWvUcgCc/s320/DSC_5651.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-he5He_E03D8/UiOWvgcLKzI/AAAAAAAAAng/sqF7MhfSQNk/s1600/DSC_5653.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-he5He_E03D8/UiOWvgcLKzI/AAAAAAAAAng/sqF7MhfSQNk/s320/DSC_5653.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-p6Jk8lqBPs4/UiOWwIKjefI/AAAAAAAAAns/zzCvwfMN400/s1600/DSC_5654.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-p6Jk8lqBPs4/UiOWwIKjefI/AAAAAAAAAns/zzCvwfMN400/s320/DSC_5654.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-SayD23fXp6M/UiOXEj4UeOI/AAAAAAAAAn0/0eG7GtJCxyM/s1600/DSC_5655.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-SayD23fXp6M/UiOXEj4UeOI/AAAAAAAAAn0/0eG7GtJCxyM/s320/DSC_5655.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-dzWAMYHxhzY/UiOXIhLU-SI/AAAAAAAAAoA/5Zx4k8f3O7k/s1600/DSC_5656.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://3.bp.blogspot.com/-dzWAMYHxhzY/UiOXIhLU-SI/AAAAAAAAAoA/5Zx4k8f3O7k/s320/DSC_5656.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Dtetcr6_5zY/UiOXIfiNTMI/AAAAAAAAAn8/IK2LOu7kocU/s1600/DSC_5657.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-Dtetcr6_5zY/UiOXIfiNTMI/AAAAAAAAAn8/IK2LOu7kocU/s320/DSC_5657.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-iB5qpTT3T0Y/UiOXZcMNxZI/AAAAAAAAAoU/DhvvPXDBye0/s1600/DSC_5658.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-iB5qpTT3T0Y/UiOXZcMNxZI/AAAAAAAAAoU/DhvvPXDBye0/s320/DSC_5658.JPG" width="212" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ug9CkO3N8Ks/UiOXVJ3htNI/AAAAAAAAAoM/0R7ARzJMqYU/s1600/DSC_5659.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://2.bp.blogspot.com/-ug9CkO3N8Ks/UiOXVJ3htNI/AAAAAAAAAoM/0R7ARzJMqYU/s320/DSC_5659.JPG" width="320" /></a></div>
<br />
What you might see inside when you take apart a calculator:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-mSKp1wWdhD8/UiOYU_HWVjI/AAAAAAAAAo4/xiOYgt7ffPY/s1600/IMAG0322.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-mSKp1wWdhD8/UiOYU_HWVjI/AAAAAAAAAo4/xiOYgt7ffPY/s320/IMAG0322.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
You should mark down where you can solder the four wires:</div>
<div class="separator" style="clear: both; text-align: center;">
Vcc, GND, = sign 1, = sign 2</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-I6aw4AuMcYo/UiOX3qgXYLI/AAAAAAAAAog/-NzK_s_mkwc/s1600/IMAG0338.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-I6aw4AuMcYo/UiOX3qgXYLI/AAAAAAAAAog/-NzK_s_mkwc/s320/IMAG0338.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
This is just for fun: One dollar scientific calculator. The inside is a sheet of plastic as a PCB! </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-tec408ugHD0/UiOYQ5eSilI/AAAAAAAAAoo/-MxFSLH_mAI/s1600/IMAG0324.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-tec408ugHD0/UiOYQ5eSilI/AAAAAAAAAoo/-MxFSLH_mAI/s320/IMAG0324.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
How did I build the Phaser?</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yJCTcxws1DI/UiOYUCsx-_I/AAAAAAAAAow/S_2o3uFEaEs/s1600/IMAG0326.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-yJCTcxws1DI/UiOYUCsx-_I/AAAAAAAAAow/S_2o3uFEaEs/s320/IMAG0326.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
I had this old scrap wood, it was triangle shaped. I asked my brother to sand it for me. He did an excellent job.</div>
<div class="separator" style="clear: both;">
Then I cut an old cardboard tube in half (on an angle).</div>
<div class="separator" style="clear: both;">
I found an old bottle cap and drilled a hole in it, for the trigger</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
Paint everything glossy black, glue it together neatly with hot glue.</div>
<div class="separator" style="clear: both;">
Make the circuit, glue those things on too.</div>
<div class="separator" style="clear: both;">
In the end I ended up with a pretty solid toy phaser.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-lNldV9gFYHg/UiOYbSzizFI/AAAAAAAAApI/CTN2XzBBnZo/s1600/IMAG0328.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-lNldV9gFYHg/UiOYbSzizFI/AAAAAAAAApI/CTN2XzBBnZo/s320/IMAG0328.jpg" width="180" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-u_nBlh3cJk8/UiOYYdaJ_JI/AAAAAAAAApA/M5mn8DZBoWQ/s1600/IMAG0329.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-u_nBlh3cJk8/UiOYYdaJ_JI/AAAAAAAAApA/M5mn8DZBoWQ/s320/IMAG0329.jpg" width="180" /></a></div>
<br />
<br />
If you have the schematic it should be pretty straight forward.<br />
Here is the code: <a href="http://txtup.net/HQ8Eg">http://txtup.net/HQ8Eg</a><br />
<br />
Here it is also:<br />
<br />
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/*</code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">this is a phaser for fun. makes laser shooots, zappy noises, reloads needed.</code></div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">really fun</code></div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">tswang 8/27/2013</code></div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">attiny45</code></div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">reload button is the reset.</code></div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*/</code></div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">setting = PB2; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//stun or kill</code></div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">outled = PB0; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//energy level (analogoutput pin)</code></div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noisepin = PB4; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//buzzer</code></div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">laser = PB1; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//the laser</code></div>
<div class="line number12 index11 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">trigger = PB3; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//trigger</code></div>
<div class="line number13 index12 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number14 index13 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">clipsize = 6; </code><code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//this is how many phases you have.</code></div>
<div class="line number15 index14 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">shotaken = 0;</code></div>
<div class="line number16 index15 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noise;</code></div>
<div class="line number17 index16 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noisend;</code></div>
<div class="line number18 index17 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">incrmnt;</code></div>
<div class="line number19 index18 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">brightness;</code></div>
<div class="line number20 index19 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number21 index20 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">setup(){</code></div>
<div class="line number22 index21 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">pinMode(setting ,INPUT);</code></div>
<div class="line number23 index22 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">pinMode(outled ,OUTPUT);</code></div>
<div class="line number24 index23 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">pinMode(noisepin ,OUTPUT);</code></div>
<div class="line number25 index24 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">pinMode(laser ,OUTPUT);</code></div>
<div class="line number26 index25 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">pinMode(trigger ,INPUT);</code></div>
<div class="line number27 index26 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number28 index27 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number29 index28 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number30 index29 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">brightness = 0; brightness < 255; brightness++){</code></div>
<div class="line number31 index30 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">analogWrite(outled, brightness);</code></div>
<div class="line number32 index31 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(10);</code></div>
<div class="line number33 index32 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number34 index33 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(digitalRead(setting) == HIGH){</code></div>
<div class="line number35 index34 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">shotaken = 0; shotaken < clipsize;){</code></div>
<div class="line number36 index35 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(digitalRead(trigger) == HIGH){</code></div>
<div class="line number37 index36 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">kill();</code></div>
<div class="line number38 index37 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">shotaken = shotaken + 1;</code></div>
<div class="line number39 index38 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number40 index39 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number41 index40 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number42 index41 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">else</code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">{</code></div>
<div class="line number43 index42 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">shotaken = 0; shotaken < clipsize;){</code></div>
<div class="line number44 index43 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(digitalRead(trigger) == HIGH){</code></div>
<div class="line number45 index44 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">stun();</code></div>
<div class="line number46 index45 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">shotaken = shotaken + 1;</code></div>
<div class="line number47 index46 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number48 index47 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number49 index48 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number50 index49 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">brightness = 255; brightness > 0; brightness--){</code></div>
<div class="line number51 index50 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">analogWrite(outled, brightness);</code></div>
<div class="line number52 index51 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(5);</code></div>
<div class="line number53 index52 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number54 index53 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number55 index54 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number56 index55 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">loop(){</code></div>
<div class="line number57 index56 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(outled, LOW);</code></div>
<div class="line number58 index57 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number59 index58 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(digitalRead(trigger) == HIGH){</code></div>
<div class="line number60 index59 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code> </div>
<div class="line number61 index60 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">outofammo();</code></div>
<div class="line number62 index61 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number63 index62 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">else</code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">{}</code></div>
<div class="line number64 index63 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number65 index64 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number66 index65 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number67 index66 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number68 index67 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number69 index68 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp comments" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 95, 191) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/*************************************************/</code></div>
<div class="line number70 index69 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">stun(){</code></div>
<div class="line number71 index70 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(laser, HIGH);</code></div>
<div class="line number72 index71 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noise = 0; noise < 1000;){ </code></div>
<div class="line number73 index72 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin, 1);</code></div>
<div class="line number74 index73 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(noise);</code></div>
<div class="line number75 index74 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin, 0);</code></div>
<div class="line number76 index75 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(noise);</code></div>
<div class="line number77 index76 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noise = noise + 1;</code></div>
<div class="line number78 index77 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number79 index78 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(laser, LOW);</code></div>
<div class="line number80 index79 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(100);</code></div>
<div class="line number81 index80 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number82 index81 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number83 index82 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">kill(){</code></div>
<div class="line number84 index83 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(laser, HIGH);</code></div>
<div class="line number85 index84 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noise = 2000; noise < 2500;){ </code></div>
<div class="line number86 index85 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin, 1);</code></div>
<div class="line number87 index86 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(noise);</code></div>
<div class="line number88 index87 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin, 0);</code></div>
<div class="line number89 index88 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(noise);</code></div>
<div class="line number90 index89 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">noise = noise + 2;</code></div>
<div class="line number91 index90 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number92 index91 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(laser, LOW); </code></div>
<div class="line number93 index92 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(100);</code></div>
<div class="line number94 index93 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number95 index94 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number96 index95 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">outofammo(){</code></div>
<div class="line number97 index96 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">blasted = 0; blasted <5; blasted++){</code></div>
<div class="line number98 index97 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp keyword bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(127, 0, 85) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="cpp color1 bold" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">int</code> <code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ammo = 0; ammo < 100; ammo++){</code></div>
<div class="line number99 index98 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin,1);</code></div>
<div class="line number100 index99 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(500);</code></div>
<div class="line number101 index100 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">digitalWrite(noisepin,0);</code></div>
<div class="line number102 index101 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delayMicroseconds(500);</code></div>
<div class="line number103 index102 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number104 index103 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(30);</code></div>
<div class="line number105 index104 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number106 index105 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">delay(100);</code></div>
<div class="line number107 index106 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 14.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code><br />
<code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code><code class="cpp plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: hidden !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code></div>
<span style="font-family: Times New Roman;">I hope it keeps it's formatting. Go have fun with it!</span>tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com2tag:blogger.com,1999:blog-4781278098745493051.post-90402517974501262472013-08-31T13:16:00.002-07:002013-09-01T13:04:29.499-07:00Raspberry Pi ReviewOkay, its cool. I admit.<br />
<br />
However, I have some opinions about it that might help you before you go ahead and buy one.<br />
<br />
<h4>
Why did I buy one?</h4>
<div>
My friend bought two because there was free shipping if you did so. So, I took one off of his hands. Good deal; I didn't have to pay shipping.</div>
<div>
<br /></div>
<h4>
Pros:</h4>
<div>
<ul>
<li>$35</li>
<li>GPIO pins</li>
<li>uses Python; good for educating about programming</li>
<li>Easily implementable into permanent projects like arcades.</li>
</ul>
<h4>
Cons:</h4>
</div>
<div>
<ul>
<li>$35!</li>
<li>Only two USB ports? It can't even power a regular USB stick</li>
<li>No VGA?</li>
<li>How do I plug in an LED into this GPIO pin...</li>
<li>No keyboard</li>
<li>How do I find an affordable HDMI monitor?</li>
</ul>
<div>
<br /></div>
</div>
<div>
Okay, maybe I am complaining too much.</div>
<div>
But what is this?</div>
<div>
<a href="http://www.alibaba.com/trade/search?fsb=y&IndexArea=product_en&CatId=&SearchText=laptop+windows+CE">http://www.alibaba.com/trade/search?fsb=y&IndexArea=product_en&CatId=&SearchText=laptop+windows+CE</a></div>
<div>
<br /></div>
<div>
Laptops for about $40. Keyboard, USB, monitor, mouse, all included.</div>
<div>
Maybe it doesn't have a GPIO pins, but it probably can program an Arduino</div>
<div>
Debian can be easily installed on this computer.</div>
<div>
<br /></div>
<div>
This is the current setup of the Pi:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-U5dfyDmzYoI/UiJOnNBQHgI/AAAAAAAAAnE/704vXXtLnnw/s1600/IMAG0381.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://2.bp.blogspot.com/-U5dfyDmzYoI/UiJOnNBQHgI/AAAAAAAAAnE/704vXXtLnnw/s320/IMAG0381.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I'm using the analog video output to the monitor.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-rTHZEiIpMGg/UiJOpVZkS8I/AAAAAAAAAnM/Qn2rjhcEbG0/s1600/IMAG0382.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://3.bp.blogspot.com/-rTHZEiIpMGg/UiJOpVZkS8I/AAAAAAAAAnM/Qn2rjhcEbG0/s320/IMAG0382.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I decided that I wasn't going to buy female wires, so I just made this adapter.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
In the end it's a good board for hobbyists to use, but for all the functions that it claims to have, there is always a better alternative.</div>
<div>
<br /></div>
<div>
I wouldn't say it's a terrible board, but I wouldn't go tell someone to buy it. There are alternatives.</div>
<div>
<br /></div>
<div>
<br /></div>
tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0tag:blogger.com,1999:blog-4781278098745493051.post-31400190857785126782013-08-31T13:03:00.001-07:002013-09-01T13:05:18.756-07:00DIY Arduino Duemilanove<h3>
Or the DIYmilanove</h3>
<br />
lol.<br />
<br />
Back in the day when I was starting to learn about Arduino, I decided that the best way to learn how it works was to <i>build it myself</i>.<br />
<br />
I wanted to make an Arduino that was exactly like the real one. That means:<br />
<br />
<ul>
<li>Same footprint</li>
<li>I can fit shields onto it</li>
<li>I can program it from the USB port</li>
<li>There is serial communication</li>
<li>I have an ICSP if I need it</li>
<li>There is an LED on pin 13</li>
<li>a reset button</li>
</ul>
<div>
Basically, it must function like a real arduino.</div>
<div>
<br /></div>
<div>
It took a week to complete this board. A lot of research went into it.</div>
<div>
In order to make a board like this, you must look at the original schematic, look at your own needs, look at the parts you have, and try to build something similar to the real thing with the parts you are limited to.</div>
<div>
<br /></div>
<div>
This instructables helped me a bunch: <a href="http://www.instructables.com/id/Small-form-factor-DIY-Arduino-on-stripboard/?ALLSTEPS">http://www.instructables.com/id/Small-form-factor-DIY-Arduino-on-stripboard/?ALLSTEPS</a></div>
<div>
<br /></div>
<div>
Please read through it if you plan to make your own Arduino. For example, I did not know that the ATmega 328 was not the same as the ATmega328P.</div>
<div>
<br /></div>
<div>
So, here are some pictures of the process:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-CCfy8wVPnDs/UiJKkeiIUiI/AAAAAAAAAlc/9qpP4X8zPSw/s1600/IMAG0091.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://1.bp.blogspot.com/-CCfy8wVPnDs/UiJKkeiIUiI/AAAAAAAAAlc/9qpP4X8zPSw/s320/IMAG0091.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
I used an Arduino shield to make sure I was putting the headers in the right place</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-heyX9oxTjZ4/UiJKzcWzgNI/AAAAAAAAAl8/nRrlsKXrw1s/s1600/IMAG0092.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://1.bp.blogspot.com/-heyX9oxTjZ4/UiJKzcWzgNI/AAAAAAAAAl8/nRrlsKXrw1s/s320/IMAG0092.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Adding some wires and buttons... some capacitors</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-LOZMovhNBN0/UiJKnHAay0I/AAAAAAAAAlk/KRfTxjQ6UzA/s1600/IMAG0093.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-LOZMovhNBN0/UiJKnHAay0I/AAAAAAAAAlk/KRfTxjQ6UzA/s320/IMAG0093.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Board is almost complete. Needs to install a 3.3v regulator, the chip, and the Serial converter.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ja9WKG_VLpc/UiJKvy5EcQI/AAAAAAAAAls/gNMWpmI4VwM/s1600/IMAG0099.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-ja9WKG_VLpc/UiJKvy5EcQI/AAAAAAAAAls/gNMWpmI4VwM/s320/IMAG0099.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Board finished</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-l1CYyAUKoLg/UiJKwBlEs8I/AAAAAAAAAlw/jrt0Z3l1KfM/s1600/IMAG0100.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://2.bp.blogspot.com/-l1CYyAUKoLg/UiJKwBlEs8I/AAAAAAAAAlw/jrt0Z3l1KfM/s320/IMAG0100.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
sloppy underside</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-HbRoGAmc-1o/UiJK562F9II/AAAAAAAAAmE/oO0znMLbGWw/s1600/IMAG0108.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://2.bp.blogspot.com/-HbRoGAmc-1o/UiJK562F9II/AAAAAAAAAmE/oO0znMLbGWw/s320/IMAG0108.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
the chip!</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xhl_fynWxd4/UiJK9A3FU-I/AAAAAAAAAmM/Vqar4t1BwTg/s1600/IMAG0113.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-xhl_fynWxd4/UiJK9A3FU-I/AAAAAAAAAmM/Vqar4t1BwTg/s320/IMAG0113.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Yea... I gave up in soldering an FTDI chip, so I just bought one.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-G4b1Q21mmgE/UiJK_KblooI/AAAAAAAAAmU/BDvjnxu5nU0/s1600/IMAG0378.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-G4b1Q21mmgE/UiJK_KblooI/AAAAAAAAAmU/BDvjnxu5nU0/s320/IMAG0378.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
FTDI converter</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-JpP_MUSf2JI/UiJLE7tzb6I/AAAAAAAAAmc/kXj2msCwWws/s1600/IMAG0379.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://1.bp.blogspot.com/-JpP_MUSf2JI/UiJLE7tzb6I/AAAAAAAAAmc/kXj2msCwWws/s320/IMAG0379.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
More pictures</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-woxWVYikaZU/UiJLGM1BW0I/AAAAAAAAAmk/e6WNaX4Kvfs/s1600/IMAG0380.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://2.bp.blogspot.com/-woxWVYikaZU/UiJLGM1BW0I/AAAAAAAAAmk/e6WNaX4Kvfs/s320/IMAG0380.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
the belly.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
In the end, all you need is the schematic of the Arduino. Then, you gotta place the parts in the right places. After that, just solder wires until the whole thing is wired up and it is ready to go!</div>
<div>
<br /></div>
<br />
<br />tsjwanghttp://www.blogger.com/profile/18110006686822856342noreply@blogger.com0