tag:blogger.com,1999:blog-19593866037652992172018-03-02T11:08:44.953-05:00Make, Break, Fix, Repeat"Although workshops and basements have long and notable histories as the last retreat for the contemplative man, they also provide the natural setting for his more practical endeavors. Many have entered this world seeking rest and relaxation, only to emerge in a fevered state as a weekend scientist." - 101 Incredible Experiments for the Weekend ScientistDanny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1959386603765299217.post-39228361624555208972017-04-23T00:21:00.001-04:002017-04-23T00:21:58.411-04:00<div class="separator" style="clear: both; text-align: center;"><a href="https://4.bp.blogspot.com/-Xioar5FmwME/WPwr3sEVaOI/AAAAAAAAYhI/0n3r8YFIQ8QCpSzrvjfL8tu3WkH16iymACLcB/s1600/1008311_461886103885770_177581822_o.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://4.bp.blogspot.com/-Xioar5FmwME/WPwr3sEVaOI/AAAAAAAAYhI/0n3r8YFIQ8QCpSzrvjfL8tu3WkH16iymACLcB/s320/1008311_461886103885770_177581822_o.jpg" width="320" /></a></div><br />Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-8865372038050839572013-05-17T22:53:00.001-04:002013-05-17T22:54:55.412-04:00R2-Q5 - Logic DisplaysI'm thinking of using old cell phones to display the front and rear logic displays, set this to see how it would look. My thoughts were to run power through a usb cable and set it up to run an animated gif when turned on.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-FXhs2EZRC3E/UZbspQ3m-4I/AAAAAAAAFKU/GJ4fNwPgsKE/s1600/IMG_20130517_224423_693.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-FXhs2EZRC3E/UZbspQ3m-4I/AAAAAAAAFKU/GJ4fNwPgsKE/s320/IMG_20130517_224423_693.jpg" width="180" /></a></div>&nbsp;&nbsp;<a href="http://1.bp.blogspot.com/-e0v-7soHxVg/UZbs1Hra1gI/AAAAAAAAFKc/GT55YR8acnk/s1600/IMG_20130517_224307_832.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="320" src="http://1.bp.blogspot.com/-e0v-7soHxVg/UZbs1Hra1gI/AAAAAAAAFKc/GT55YR8acnk/s320/IMG_20130517_224307_832.jpg" width="180" /></a><br /><br />Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-41024406589822234062013-04-18T21:40:00.001-04:002013-05-17T22:21:06.633-04:00R2-Q5 - Started painting the dome<span style="background-color: black; color: #cccccc;"><br /></span><br /><div style="line-height: 0.19in; margin-bottom: 0in;"><span style="color: #bebebe; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">Base coats are in bronze and the first coat of black applied. After the last coat of paint, I'll pull the tape to hopefully have some of the panels bronze matching the utility arms.</span><br /><span style="font-family: Arial, sans-serif; font-size: x-small;"><br /></span><span style="color: black;"><span style="font-family: Arial, sans-serif;"><span style="font-size: x-small;"></span></span></span><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-byDGgYc3H9U/UXCe863C53I/AAAAAAAAEeg/Hu0_7vdT2jU/s1600/2013-04-18_20-46-43_505.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-byDGgYc3H9U/UXCe863C53I/AAAAAAAAEeg/Hu0_7vdT2jU/s320/2013-04-18_20-46-43_505.jpg" width="180" /></a><a href="http://1.bp.blogspot.com/-NC-LF5LSvTk/UZbklMVDlMI/AAAAAAAAFJY/Q7l51meB68c/s1600/2013-04-23_18-41-21_296.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-NC-LF5LSvTk/UZbklMVDlMI/AAAAAAAAFJY/Q7l51meB68c/s320/2013-04-23_18-41-21_296.jpg" width="180" /></a></div></div>Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-82983384665100582132013-03-24T21:28:00.000-04:002013-03-24T22:12:41.877-04:00R2-Q5 - Gets his dome trimmed<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-pyurhpMce78/UU-TIEYPv9I/AAAAAAAADqo/TA0hHvEDlF8/s1600/2013-03-24_14-57-07_458.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-pyurhpMce78/UU-TIEYPv9I/AAAAAAAADqo/TA0hHvEDlF8/s1600/2013-03-24_14-57-07_458.jpg" height="179" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div>I took a couple of days off for a long weekend and finally took time to make a little progress on Q5 today. The bottom of the fiberglass dome has extra material that needs to be trimmed. As you can see above, I started to follow the slight indentation but realized it wasn't defined all the way around. Needing a better line to follow, I took scotch tape to the indentation and took time reapplying until it was aligned, marked the edge with a sharpie, and removed the tape. Using a Dremel cutting wheel I was able to cut along the line, then use the side of the disc to sand close to the edge to save time with block sanding.<br /><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><br /><br /><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-fyuXD6hlMag/UU-TIJ-w6JI/AAAAAAAADq8/OxIJKjFR80U/s1600/2013-03-24_15-14-04_910.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-fyuXD6hlMag/UU-TIJ-w6JI/AAAAAAAADq8/OxIJKjFR80U/s1600/2013-03-24_15-14-04_910.jpg" height="200" width="112" /></a><a href="http://1.bp.blogspot.com/-c8nUk9ghkjs/UU-TIPzAyiI/AAAAAAAADrA/2EinKbBANU0/s1600/2013-03-24_15-15-22_317.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-c8nUk9ghkjs/UU-TIPzAyiI/AAAAAAAADrA/2EinKbBANU0/s1600/2013-03-24_15-15-22_317.jpg" height="200" width="112" /></a><a href="http://2.bp.blogspot.com/-OYfGC_8yC94/UU-TIKJdLvI/AAAAAAAADqs/8WGq9tNoXA4/s1600/2013-03-24_15-18-53_537.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-OYfGC_8yC94/UU-TIKJdLvI/AAAAAAAADqs/8WGq9tNoXA4/s1600/2013-03-24_15-18-53_537.jpg" height="200" width="112" /></a><a href="http://4.bp.blogspot.com/-Da012t_CsZQ/UU-TIExEevI/AAAAAAAADrE/eCIz0Wj_pUk/s1600/2013-03-24_15-23-25_724.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Da012t_CsZQ/UU-TIExEevI/AAAAAAAADrE/eCIz0Wj_pUk/s1600/2013-03-24_15-23-25_724.jpg" height="200" width="112" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><a href="http://1.bp.blogspot.com/-OxzMYNsrb5A/UU-TIFW1qzI/AAAAAAAADqw/NYQuzPOX3Jo/s1600/2013-03-24_17-14-31_488.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-OxzMYNsrb5A/UU-TIFW1qzI/AAAAAAAADqw/NYQuzPOX3Jo/s1600/2013-03-24_17-14-31_488.jpg" height="400" width="225" /></a><br />The sanding time saved on the trim was lost on the pie panels at the top. With R2-D2's panels having enough contrast between the blue panels and silver dome the fiberglass mold Todd Bixby uses doesn't need to have much definition. My imperial droid will be black panels on a black dome, so I needed to make the groves deeper. I tried everything from the Dremel cutting wheel, wood carving tools, and sand paper folded into corners, but this engraving bit for the Dremel seemed to work fast while keeping control.<br /><br />The last piece for the night was to see if I could get the dome to spin on the frame. Using an 18" Rockler bearing from a local woodworking shop and an 18" floral wreath (particle board base) as a support ring in the dome. I drilled holes in the six bolt pattern on the support ring using the inner ring of the bearing as a template and connected them with 2" bolts and an extra set of nuts to adjust the space to help hide any imperfections in my cutting, mounting, or potential warping of the dome. I did leave it in my garage over the last summer and winter. Here's a video of me spinning it by hand.<br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><iframe allowFullScreen='true' webkitallowfullscreen='true' mozallowfullscreen='true' width='320' height='266' src='https://www.youtube.com/embed/trXUup0LrXY?feature=player_embedded' FRAMEBORDER='0' /></div><br /><div class="separator" style="clear: both; text-align: center;"></div>Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-58755775824246997352012-07-11T17:05:00.000-04:002012-07-11T19:45:27.709-04:00Wifi garage door openerI took apart my last <a href="http://makebreakfixrepeat.blogspot.ca/2011_08_01_archive.html">garage door opener</a> because there's another project that needs my bluetooth antenna. I realized how much easier the garage door opener would be to make over wifi and much less work to have it tidy in a permanent enclosure. Not to mention, the ethernet shield is roughly the same price as a 2nd antenna. This assumes you have wifi in your home with access from your driveway, a spare network port in your home network for the ethernet shield, and a cell phone.<br /><br /><div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-ER9d6JpPadw/T_3WdaFRQqI/AAAAAAAABXM/6csu2W0UvtY/s1600/A2024D79-D4F6-4428-ACBE-7F684BBE9C9E.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img $ca="true" border="0" height="239" src="http://4.bp.blogspot.com/-ER9d6JpPadw/T_3WdaFRQqI/AAAAAAAABXM/6csu2W0UvtY/s320/A2024D79-D4F6-4428-ACBE-7F684BBE9C9E.JPG" width="320" /></a></div>In the picture is the PCB from the inside of a traditional garage door opener is laid on top of the ethernet shield + arduino uno combo. The transistor&nbsp;is pushed into the heated solder points of the push button with the center pin going through a 10k resistor to the output pin of your choice. <br />This 2nd example in this <a href="http://www.instructables.com/id/Arduino-Ethernet-Shield-Tutorial/step4/Server/">tutorial</a>&nbsp;for lighting an LED can be copied without editing to use pin 2. The tutorial also walks you through testing the local address that will trigger the button. Now you can create a shortcut or bookmark to the website on your smartphone to be able to open with one click.<br /><br />While this is all you need, I've also soldered wire to replace the battery. Since this one uses a 3v battery it's going to the 3.3v and ground pins on the board. <br /><br /><br /><h2> <span style="font-family: inherit;">Adding to it by opening with a text</span></h2><br />So in the rare occurance that I'd need to open the door while away (family member locked out of the house.. just takes one time). I decided to go with sending a text. For the time being I have an older android phone as a "home phone" and this script should be easy to replace the check for new texts section with anything from checking email to checking twitter and&nbsp;can easily grow into a smart home station. Aside from the wifi setup as the foundation, this involved downloading the SL4A app from <a href="http://code.google.com/p/android-scripting/">here</a>. Then create a Python script with the following code:<br /><br />import android<br />import httplib<br />import time<br />droid = android.Android()<br />var = 1<br />while (var == 1):<br />&nbsp;smscheck = droid.smsGetMessages(True, 'inbox')<br />&nbsp;for i in smscheck.result:<br />&nbsp;&nbsp;if 'Open Sesame' in i['body']: &nbsp;# The command you want to send via text<br />&nbsp;&nbsp;&nbsp;url = '192.168.1.xxx' &nbsp;# IP address of ethernet shield goes here<br />&nbsp;&nbsp;&nbsp;uri = '/?2'&nbsp;&nbsp;# Pin number being used should replace 2<br />&nbsp;&nbsp;&nbsp;ES = httplib.HTTPConnection(url)<br />&nbsp;&nbsp;&nbsp;ES.request('GET',uri)<br />&nbsp;&nbsp;&nbsp;time.sleep(.5)<br />&nbsp;&nbsp;&nbsp;ESreply = ES.getresponse()<br />&nbsp;&nbsp;&nbsp;ES.close()<br />&nbsp;&nbsp;&nbsp;print ESreply<br />&nbsp;&nbsp;&nbsp;droid.smsDeleteMessage(i['_id']) <br />&nbsp;&nbsp;&nbsp;time.sleep(.25) <br />&nbsp;&nbsp;else:<br />&nbsp;&nbsp;&nbsp;time.sleep(.5)Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com5tag:blogger.com,1999:blog-1959386603765299217.post-54751974772380446972012-07-05T17:30:00.000-04:002012-07-05T17:30:00.194-04:00R2-Q5 - Making a droid<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"></div><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><a href="http://3.bp.blogspot.com/-Qik1i8IULcs/TzmyvZtwA5I/AAAAAAAAAbk/eQihvrfaXtc/s1600/2012-02-13_19-44-16_725.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" sca="true" src="http://3.bp.blogspot.com/-Qik1i8IULcs/TzmyvZtwA5I/AAAAAAAAAbk/eQihvrfaXtc/s320/2012-02-13_19-44-16_725.jpg" width="179" /></a>I've been a Star Wars fan since my parents took me to see Return of the Jedi when I was three years old. It's one of my earliest memories. Sitting in my dad's lap in a crowded theater and seeing luke wielding a green lightsaber with the sands of Tatooine in the background.</div><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><br />So when I started getting the bug to make&nbsp;stuff last summer, I came across <a href="http://astromech.net/">astromech.net</a>.&nbsp;A sight dedicated to droid builders of the R2 variety. A great site for collaborating ideas, tutorials, or just chatting on a regular basis with people who share the interest. With any large group there are a few bad apples, but I've found this to be a great community.</div><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><br />Here's a photo of how my&nbsp;droid has been sitting since the fall. </div><br /><br /><br />I'm going with <a href="http://starwars.wikia.com/wiki/R2-Q5" target="">R2-Q5</a> as the designation. There's something of a 10:1 ratio for R2-D2 vs. other full size replicas&nbsp;and imperial droids need to represent!<br /><br /><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><a href="http://4.bp.blogspot.com/-yCLOLzeR5-4/T_W9Cec90WI/AAAAAAAABSE/Mg9sR4IfxCU/s1600/2011-07-15_22-20-59_548.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="179" sca="true" src="http://4.bp.blogspot.com/-yCLOLzeR5-4/T_W9Cec90WI/AAAAAAAABSE/Mg9sR4IfxCU/s320/2011-07-15_22-20-59_548.jpg" width="320" /></a>This one will permanently be&nbsp;on all three feet. Apparently retracting feet are expensive to make, but&nbsp;it will&nbsp;be remote controlled with moving dome, opening doors, blinky lights, and sounds. The last piece I put together was a lens for the radar eye. The radar itself was made from Resin by&nbsp;Mansugi on astromech.net.&nbsp;</div><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><br /><a href="http://1.bp.blogspot.com/-zqMK20tV4uI/T_W9CaOlEuI/AAAAAAAABSE/GpV0a7jDmzY/s1600/2011-07-14_21-45-47_717.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="179" sca="true" src="http://1.bp.blogspot.com/-zqMK20tV4uI/T_W9CaOlEuI/AAAAAAAABSE/GpV0a7jDmzY/s320/2011-07-14_21-45-47_717.jpg" width="320" /></a>The lens&nbsp;is from an&nbsp;arts and crafts ornament found at Michaels.&nbsp;An idea&nbsp;discussed at astromech.net. The diameter of the cut coincidentally matched my kitchen sink drain, which was used as a template. Yes, I went looking through the house like a Sesame Street episode looking for circles.</div><div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"><a href="http://1.bp.blogspot.com/-GAxeeNZnC38/T_W9CbftizI/AAAAAAAABSE/YhNRCtM0gkk/s1600/2011-07-14_22-00-28_241.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="179" sca="true" src="http://1.bp.blogspot.com/-GAxeeNZnC38/T_W9CbftizI/AAAAAAAABSE/YhNRCtM0gkk/s320/2011-07-14_22-00-28_241.jpg" width="320" /></a>The ornament ball is fairly sturdy, but I put too much pressure on it trying to rush through cutting. The edge of the dome is thicker than the top, meaning the breaking point isn't going to be on the piece of scrap. This is why I'm using a knife in the picture and taking my time. </div><br /><br /><br /><br />Here's the final fit before gluing in place.<br /><div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-oEmosjkqTnw/T_W9CaHKWdI/AAAAAAAABSE/S5omszwCA8U/s1600/2011-07-15_22-17-21_184.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="179" sca="true" src="http://3.bp.blogspot.com/-oEmosjkqTnw/T_W9CaHKWdI/AAAAAAAABSE/S5omszwCA8U/s320/2011-07-15_22-17-21_184.jpg" width="320" /></a></div><br /><img height="54" src="http://4.bp.blogspot.com/-yCLOLzeR5-4/T_W9Cec90WI/AAAAAAAABSE/Mg9sR4IfxCU/s320/2011-07-15_22-20-59_548.jpg" style="filter: alpha(opacity=30); left: 143px; mozopacity: 0.3; opacity: 0.3; position: absolute; top: 429px; visibility: hidden;" width="96" /><img height="54" src="http://4.bp.blogspot.com/-yCLOLzeR5-4/T_W9Cec90WI/AAAAAAAABSE/Mg9sR4IfxCU/s320/2011-07-15_22-20-59_548.jpg" style="filter: alpha(opacity=30); left: 494px; mozopacity: 0.3; opacity: 0.3; position: absolute; top: 540px; visibility: hidden;" width="96" />Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-43536467417275116702012-04-03T17:43:00.003-04:002012-04-03T18:20:55.924-04:00Mad Genius Clock Design<div>I came up with what I believe to be a unique clock design a few months ago, but didn't have a name until today.&nbsp;The term mad genius was used by a friend today and I thought it fit.&nbsp;&nbsp;The clock&nbsp;only has an hour hand traveling back and forth through the spindle in a 12-point star pattern.&nbsp; I aim to have a physical model over the summer.&nbsp; Here is a rough animation of the pattern.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-xnyaU8h2KzI/T3t2c-9wzfI/AAAAAAAAAjU/BeJ4BN0AZYk/s1600/MadGeniusClock.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="292" src="http://4.bp.blogspot.com/-xnyaU8h2KzI/T3t2c-9wzfI/AAAAAAAAAjU/BeJ4BN0AZYk/s320/MadGeniusClock.gif" width="320" /></a></div></div>Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-55361448685207263052012-03-20T21:55:00.000-04:002012-03-20T21:55:23.672-04:00Temperature Triggered Light SwitchThe idea for this project came to me 3-4 years ago late one cold winter night when I was called by my father-in-law.&nbsp;&nbsp;Some rural homes&nbsp;running on well water will have the water pump above ground and in a small building.&nbsp;&nbsp;Many of these pump houses, like the one&nbsp;at the house I rented from my father-in-law, can really ruin your day or week if a pipe bursts due to below freezing conditions.&nbsp; While I was appreciative of the call to save repair costs, fumbling&nbsp;around in a small building near mid-night looking for a lightswitch wasn't something I cared to do.<br /><br />I could have hired someone, drawn an electrical line with a switch to the home, or created a wireless switch, but what if I hadn't gotten the call or what if I were out of town?&nbsp; I've always wanted a smart home and this was a start to doing it cheaply.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-l7I-0jMMIL8/T2kqdr0cVRI/AAAAAAAAAZg/Z7E8sfTmjX4/s1600/2012-03-03_19-58-11_898.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="http://1.bp.blogspot.com/-l7I-0jMMIL8/T2kqdr0cVRI/AAAAAAAAAZg/Z7E8sfTmjX4/s320/2012-03-03_19-58-11_898.jpg" width="320" /></a></div><br />This first photo is a prototype board with an ATmega328 flashed with Arduino.&nbsp;&nbsp;A transformer to get power from AC is just below the picture in the box.&nbsp; The relay is triggered on pin 8 when the temp sensor reads 0 degrees C or below.&nbsp; The standard light switch can be used as a bypass and is mounted to the box cover.&nbsp; The LM75, temp sensor shown in the second photo, was scavenges from a 2004&nbsp;iMac being sent to the recycler at work.&nbsp; The sensor is on a nice breakout board with connector.&nbsp; I've soldered these wires to an RJ11 socket at both the base unit and for the sensor.&nbsp; This will allow the sensor to be connected by a standard telephone wire.&nbsp; Between power and the I2C protocol all four wires of the telephone line are being used and cheaper wire with only two wires can't be used.&nbsp; To help keep the sensor weather resistent I used a clear christmas tree ornament from Michaels and sealed it with super glue.&nbsp; It survived 30 seconds under a running faucette so I'm gong to attempt to hang it under the roof's over hang.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-GA42AzzezDE/T2krm-fqUQI/AAAAAAAAAaA/vLJPaUGxIIQ/s1600/2012-03-03_20-11-10_931.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-GA42AzzezDE/T2krm-fqUQI/AAAAAAAAAaA/vLJPaUGxIIQ/s320/2012-03-03_20-11-10_931.jpg" width="179" /></a></div><br />The total cost of the project was under $15 with most of the compnents repurposed from tossed electronics.&nbsp; I hope to follow up with a photo of the box and switch installed in the pump house; conveniently after we've moved out of the rental house and just after another winter season.&nbsp; Of course, it's always the first frost that's hardest to remember!Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com0tag:blogger.com,1999:blog-1959386603765299217.post-84259118257755523272011-08-04T00:45:00.000-04:002011-08-04T00:45:28.867-04:00Open garage door via cell phone bluetooth connection.Pseudo Purpose:<br />I can't remember where I read about the idea, but it was while searching the web for stuff to do.&nbsp; The over all idea I went for was to connect my cell phone with a bluetooth device that will trigger my garage door to open or close on command.&nbsp; I chose bluetooth instead of through the web or wifi as I didn't want to accidentally leave my garage door open all day and if it were to be hacked it would have to be done a decent range of my house and not from someone half way around the globe.&nbsp; Why not just use the garage door opener?&nbsp; Well I have more than one car and just one remote and rarely do I not have my cell phone on me.&nbsp; Opening the garage door with my cell phone is easier than reaching into my daily driver and remembering to put the remote back before heading to work the next day.&nbsp; You can see it work on my <a href="http://www.youtube.com/watch?v=UoakUpzQEUY">YouTube video</a>.<br /><br />Parts:<br /><a href="http://www.lmgtfy.com/?q=arduino+uno">Arduino Uno</a> - Any micro controller will do, I started with arduino and the code below is purposefully for the Uno board, since that's what I had from other projects.<br /><a href="http://www.lmgtfy.com/?q=BlueSMiRF">BlueSMiRF</a>&nbsp; - The bluetooth antenna of my choosing.&nbsp; Namely because it was the cheaper of available options at around $40.&nbsp; I'll probably go with the gold instead of silver version in the future to get more range out of the wireless connection.&nbsp; An Xbee or Bluetooth Mate antenna would work as well.<br /><a href="http://www.lmgtfy.com/?q=2N2222+Transistor">2N2222 Transistor</a> - Simply, there are 3 leads on this part and when electricity is sent down the middle lead it will bridge an electrical connection through the two outside leads.<br /><a href="http://www.lmgtfy.com/?q=garage+door+remote">Garage Door Remote</a> - This can be the wall mounted internal remote or the remote for your car.&nbsp; I chose my car remote as it seemed easier to open the case.<br /><a href="http://www.lmgtfy.com/?q=Amarino">Amarino</a> app on Android phone - The Amarino app is designed to manage multiple bluetooth devices from your phone that can accept serial commands.&nbsp; It also has a library for simplifying the Arduino code needed to receive and respond to your cell phone.&nbsp; Amarino install instructions were fairly clear for me from their website.<br /><br /><br />Code:<br />I'm going to skip a bit of Arduino basics since it's covered so well on there <a href="http://arduino.cc/en/Guide/HomePage">website</a>.&nbsp; Specifically with how to install their software, edit code, add a software library, and upload the code to your Arduino Uno.&nbsp; From the Amarino website. you'll need to follow the instructions for downloading and adding the MeetAndroid library found <a href="http://www.amarino-toolkit.net/index.php/download.html">here</a>. Once the library is added you should be able to copy the following code and upload it without editing.<br /><br />#include &lt;MeetAndroid.h&gt;<br /><br />MeetAndroid meetAndroid; // Declare MeetAndroid so that you can call <br />&nbsp;&nbsp;&nbsp; // functions with android devices over bluetooth.<br /><br />int GaragePin = 9;&nbsp;&nbsp; // We need a pin to initiate the garage door<br /><br />void setup()&nbsp; <br />{<br />&nbsp; &nbsp;&nbsp;&nbsp; <br />&nbsp; Serial.begin(57600); // Use the baud rate your bluetooth module is configured to use. <br />&nbsp; <br />&nbsp; meetAndroid.registerFunction(Garage, 'A'); // Register callback functions, <br />&nbsp;&nbsp;&nbsp; // which will be called when an associated event occurs.<br />&nbsp;&nbsp;&nbsp; // These match the "FLAG" used from Amarino<br /><br />&nbsp; pinMode(GaragePin, OUTPUT);&nbsp; // set garage pin as output<br /><br />}<br /><br />void loop()<br />{<br />&nbsp; meetAndroid.receive(); // you need to keep this in your loop() to receive events<br />}<br /><br /><br />void Garage(byte flag, byte numOfValues) // Defining the function we registered above.<br />{<br />if (meetAndroid.getInt() == 999) { &nbsp;&nbsp;&nbsp; // replace 999 with any 1 to 5 digit code to keep <br />&nbsp;&nbsp;&nbsp; // the bluetooth door opener some what secure.&nbsp; This will be the number you type on your <br />&nbsp;&nbsp;&nbsp; // phone from the Amarino app to open/close the door.<br /><br />&nbsp; analogWrite(GaragePin, 153); // Probably overly cautious, but on a scale of 0 to 255 with<br />&nbsp;&nbsp;&nbsp; // 0 volts being 0 volts and 255 being 5 volts I set the analog pin to 153 to <br />&nbsp;&nbsp;&nbsp; // roughly simulate 3 volts since that the battery in my garage door remote is a 3V battery and <br />&nbsp;&nbsp;&nbsp; // I didn't know or wanted to find out that 5v was too much for the circuit.<br /><br />&nbsp; delay(0750); // simulate pushing the tactical button for 3/4 of a sec.<br /><br />&nbsp; analogWrite(GaragePin, 0); // simulate releasing the button<br />&nbsp; }<br />}<br /><br /><br /><br />Assembly:<br />First I setup and ran a test with the bluetooth connection using one of the MeetAndroid examples that came with the library.&nbsp; In fact the code above is a modified version of the multicolor led example.<br />I followed this <a href="http://wiring.org.co/learning/tutorials/bluetooth/">tutorial</a> for the test. Take Note: There is an RTS and CTS pin on the antenna that need to be wired together and I didn't see this mentioned on the link, which can provide hours of stress and self-doubt when you follow the tutorial step by step and it doesn't work.&nbsp; Once complete leave the wring in place and begin to hack into the garage door remote.<br /><br />Usually there is a small indentation or gap not easily visible around the seam of the case.&nbsp; You should be able to slowly and firmly twist a flat head screw driver without breaking the case.&nbsp; If you want a visual reference search for how to change the battery in <a href="http://www.lmgtfy.com/?q=your+specific+brand+garage+door+remote">your specific brand of garage door remote</a>.&nbsp; Now that it's open, identify which side of the button is positive and negative.&nbsp; There's 4 leads only 2 will be connected by either a trace in the PCB board linked to it or a resistor soldered directly to a lead.&nbsp; I jammed two jumper wires under the active leads on the button and connected the button's positive lead to the collector pin on the transistor and the button's negative lead to the transistor's emitter pin.&nbsp; The transistor's base pin is linked through a 10k resistor to pin 9 on the arduino board.&nbsp; Depending to the transistor you're using you'll need to look up the datasheet of that model to know the pin place and which size resistor to use on the base pin.<br /><br />And that should do it.<br /><br />Alternatives:<br /><br />1. It may have been faster to test that the transistor was working by having it light an led when active then just connect it to the push button and reverse the leads if it didn't work.&nbsp; May have saved time and eye strain from tracing the PCB lines to find positive and negative leads on the button.<br />2. Research Arduino code for detecting if the bluetooth antenna has a successful connection.&nbsp; If I can change the standard authentication so not just anyone could connect than I could have Arduino just check for an active connection.&nbsp; When found open the door and drop the connection.&nbsp; This would mean no app needed for the phone, just an attempt to connect to the device will open or close the door.<br />3. I have a Parallax ultrasonic range sensor.&nbsp; Might be neat to have the door close automatically when the vehicle reached 6 inches from the back wall or use the sensor to close the door if the garage is left open for more than 10 min.<br />4. Swap bluetooth for http for connection to arduino, because your spouse or child calls you locked out of the house.Danny Oakleyhttps://plus.google.com/104605038824455350875noreply@blogger.com5