tag:blogger.com,1999:blog-9880582580850142082024-03-13T06:52:34.563-07:00Living in a FishbowlBig Tray Jayhttp://www.blogger.com/profile/12470313743445513939noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-988058258085014208.post-40396106098708686712012-04-25T12:07:00.000-07:002012-04-26T08:43:03.215-07:00Bluetooth Garage Door Opener<div class="separator" style="clear: both; text-align: left;">
This project I used a <a href="http://www.amazon.com/gp/product/B004M180HS/ref=as_li_ss_tl?ie=UTF8&tag=liviinafish-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B004M180HS">Samsung HM1100 Bluetooth Wireless Headset</a><img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=liviinafish-20&l=as2&o=1&a=B004M180HS" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px;" width="1" />, a simple transistor and software found @ <a href="http://btmate.com/" target="_blank">BTMate</a></div>
<img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=B004M180HS&MarketPlace=US&ID=AsinImage&WS=1&tag=liviinafish-20&ServiceVersion=20070822" /><br />
<div class="separator" style="clear: both; text-align: left;">
This was a very simple and fun project. The most difficult part was removing the ear piece of the headset without damaging the wires inside. First thing you should know is that software used if for an Android phone, so if you don't have that it won't work (with the software), although you could still use your phone to connect manually and get the door to open, you just wouldn't have the cool GUI interface.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
First thing you should do is connect and pair the headset to your phone and ensure that you hear a beep in the speaker when the device connects. That beep is going to act as the switch to open the door. Once you have it connected, you can turn the headset off and begin breaking the ear bud off. Remove the speaker and carefully cut the wires off the speaker, you want to keep as much wire as possible attached to the headset. Next use needle nose pliers to crush the rest of the speaker cone and break it off as clean as possible. When you're done you want it to look roughly like this</div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPVAlYPVpoHJxItgGy3HO3OAdx-Gj-mqYlZ062HYgkEv696aOtPSC1MqN6j7mFH1mA2D5bVGUcgGLkZFNe9evWaZSABxthlMW070QbB67sC3_TrsAfw7Po9LMT0UnNjb6LlsfMdJWZTwbV/s1600/266473_2150943531474_1182956511_32644905_3587899_o.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" oda="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPVAlYPVpoHJxItgGy3HO3OAdx-Gj-mqYlZ062HYgkEv696aOtPSC1MqN6j7mFH1mA2D5bVGUcgGLkZFNe9evWaZSABxthlMW070QbB67sC3_TrsAfw7Po9LMT0UnNjb6LlsfMdJWZTwbV/s320/266473_2150943531474_1182956511_32644905_3587899_o.jpg" width="320" /></a><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: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
Next you want to take the <a href="http://www.amazon.com/gp/product/B002N6LNCI/ref=as_li_ss_tl?ie=UTF8&tag=liviinafish-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002N6LNCI">transistor</a><img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=liviinafish-20&l=as2&o=1&a=B002N6LNCI" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px;" width="1" /> and with the flat side of the transistor facing you, place the left most wire inside of the power connector for the headset, plug the power adaptor in, wedging the transistor in between the headset and the power adapter, this may take some force and should be fairly secure when done. Then slowly and carefully twist the transistor so the flat side is face down onto the power cord. Then you're going to solder the middle wire of the transistor to the red wire from the headset. </div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<strong>Be sure to attach a heatsink to the transistor to prevent overheating</strong></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
You will now want to solder wires to the left and right sides of the transistor. 24-gauge is recommended. </div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
as seen in the picture above, solder a wire (i used red) to the left and a wire (black) to the right (this should be the same end that is jammed into the power port. Once this soldering is complete, remove the heatsink from the transistor and zip tie it down to the power cord, i also added another zip tie further up with the other two wires, for added support. (All shown in the above picture)</div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
Finally you're going to ADD the two 24-gauge wires you have to the connection on the garage door opener that come from the indoor switch. Repeat, ADD these two wires to the existing wires, this will allow you to still use the internal door opener and the bluetooth transmitter to open the door. You want to connect the red wire from the headset to the + terminal on your garage door opener (usually a red and white wire) and the black wire from the headset to the - terminal (usually a white wire). </div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
Plug the headset into the wall and turn it on, and you should be ready to go. If you connect to the device (and immediately disconnect) you should cause the door to open. The reason this happens is because when you connect to the headset, the headset beeps. but since there is not speaker, it is really just sending voltage, which is amplified by the transistor and sent to the garage door opener, completing the circuit and telling the door to open... </div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
The software at BTMate is pretty slick little interface that does all the "dirty" work for you, it will turn on bluetooth (if not already on), connect to the headset, and immediately disconnect and even turn off bluetooth when you close the app, if you want. </div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
<br /></div>
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaMBoyPjBVdvGzS7NM_nxs4j0C2SQsks66sRBNXc2W0rX1zYHpxwPS3SQ3wRQeOHTosb8QC8cZhAl5pYgGsB7NUeAnJme4qCZYPbVbbNg0Ud6dY-gbmFvDPVXV3pY82aMkQLKUfA2dCLdw/s1600/257733_2150944811506_1182956511_32644906_8336091_o.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" oda="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaMBoyPjBVdvGzS7NM_nxs4j0C2SQsks66sRBNXc2W0rX1zYHpxwPS3SQ3wRQeOHTosb8QC8cZhAl5pYgGsB7NUeAnJme4qCZYPbVbbNg0Ud6dY-gbmFvDPVXV3pY82aMkQLKUfA2dCLdw/s320/257733_2150944811506_1182956511_32644906_8336091_o.jpg" width="320" /></a><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: left;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;">
Below are the two parts you'll need (outside of some wire and a soldering iron):</div>
<br />
<iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=liviinafish-20&o=1&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=B004M180HS" style="height: 240px; width: 120px;"></iframe><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=liviinafish-20&o=1&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=B0058V31GQ" style="height: 240px; width: 120px;"></iframe><br />
<br />
I'd love to hear you comments or questions!Big Tray Jayhttp://www.blogger.com/profile/12470313743445513939noreply@blogger.com3tag:blogger.com,1999:blog-988058258085014208.post-19181748518742797042010-08-18T13:28:00.000-07:002012-05-01T15:59:16.231-07:00Doorbell to Text Project<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; white-space: pre-wrap;"></span><br />
<ul style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-size: large;"><em><span style="font-weight: bold;" x="y">Obj: </span>Create a doorbell that will send a text message to my cell phone. </em></span><span style="font-family: "Courier New", Courier, monospace;">When we moved into our house a few years ago, one of the first things we did was unhook our doorbell because it seemed that someone would always ring it during naptime. This would inevitably wake children up with no hope of getting them back to sleep... so the only solution was to unhook it. Of course the downside was we sometimes missed people we didn't want to miss, but we didn't want to have the doorbell just for that. This project was born from the fact that most of our friends knew that our doorbell didn't work and would usually just text us that they were here. I decided to then create a doorbell that would automate this task for us. In the future I figure I could add components like a camera to take the doorbell ringers picture and send it to the phone and a feature where I could send an SMS message to the Arduino and have it unlock the door, making it the ultimate in door laziness!</span><span style="font-family: "Courier New", Courier, monospace;">For this project I used an <a href="http://www.amazon.com/gp/product/B001VK18HC/ref=as_li_ss_tl?ie=UTF8&tag=liviinafish-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B001VK18HC">Arduino Duemilanove</a><img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=liviinafish-20&l=as2&o=1&a=B001VK18HC" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px;" width="1" /> and a <a href="http://www.amazon.com/gp/product/B000HEAA2C/ref=as_li_ss_tl?ie=UTF8&tag=liviinafish-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000HEAA2C">Wireless Doorbell</a><br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxKNYNbN972Le-hwf8Xp9oU1oKLw0rrPSMh5c5h4N01OqKvIZJ5NLBrAq7_0weSubzb29d9qDciZ7IvQemYZY7L4SyJZ2OfeZ5za6jyDe-QR1uYQBpNbOqXVN6b2Yk7Ntkf0gZhShD3MmC/s1600/14760_1279974277787_1182956511_30884418_4744690_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" mea="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxKNYNbN972Le-hwf8Xp9oU1oKLw0rrPSMh5c5h4N01OqKvIZJ5NLBrAq7_0weSubzb29d9qDciZ7IvQemYZY7L4SyJZ2OfeZ5za6jyDe-QR1uYQBpNbOqXVN6b2Yk7Ntkf0gZhShD3MmC/s320/14760_1279974277787_1182956511_30884418_4744690_n.jpg" width="320" /></a></span></ul>
<ul style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: "Courier New", Courier, monospace;"><br /><span style="font-family: "Courier New", Courier, monospace;">The initial hack was pretty straightforward. I purchased a wireless doorbell and took the receiver end apart, just needing the circuit board from the inside... I supply power and ground to the doorbell component via the Ardunio red and black wire, respectively. Pressing the doorbell button sends a signal to the wireless receiver (hooked to the Arduino) and through the yellow wire, that used to be hooked to a speaker. Now it's just sends a voltage change, which I've instructed the Arduino to look for and when it detects the voltage change, send a text message to my phone. To get the text message out to the phone, you have to have an internet connection... for initial testing the arduino was connected to a computer and would send the message via a piggy back off of the computers internet connection. I didn't want to have a standalone computer at our front door to send the text so I had to search for a different solution. Via some research on the Oracle of Google, i found this little </span><a href="http://www.iobridge.com/store/"><span style="font-family: "Courier New", Courier, monospace;">beauty</span></a><span style="font-family: "Courier New", Courier, monospace;">! This device allows me to have an internet connection without a dedicated computer. </span><br />
<br />
Once everything was hooked up, load this sketch to your Ardunio and you will get a text when someone rings the doorbell.<br />
<br />
</span><span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><b><u>Arduino Source Code</u></b></span></ul>
<div style="text-align: left;">
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><br /></span><br />
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"></span><br />
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><span class="Apple-style-span" style="background-color: #eeeeee;">#define txPin 3 //set input pin where you want to detect voltage</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">int po</span></span><span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><span class="Apple-style-span" style="background-color: #eeeeee;">tPin = 0;</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">int val = 0;</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">long time = 0;</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">long debounce = 5000; //sets a 5 second delay between "rings"</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">//you can set this to any amount of time you wish to inpose</span></span><br />
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><span class="Apple-style-span" style="background-color: #eeeeee;">//between button presses.</span></span><br />
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><span class="Apple-style-span" style="background-color: #eeeeee;"><br />
<span class="Apple-style-span" style="font-family: "Courier New", Courier, monospace;"><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;"> }</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;"> }</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">}</span></span><br />
<div>
<br /></div>
</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">void setup() {</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">pinMode(txPin, OUTPUT);</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">digitalWrite(14 + potPin, HIGH);</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">Serial.begin(9600);</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">delay(100);</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">Serial.flush();</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">delay(100);</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">}</span><br /><span class="Apple-style-span" style="background-color: #eeeeee;"><br /></span><br /><span class="Apple-style-span" style="background-color: #eeeeee;">void loop(){</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">val = analogRead(potPin);</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;"> if (val < 25) {</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;"> if (millis()-time > debounce) {</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;"> Serial.print("[[[email|XXXXXXXXXX@vtext.com,XXXXXXXXXX@vtext.com|Doorbell|Get the door]]]");</span><br /><span class="Apple-tab-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: #eeeeee;"></span></span><span class="Apple-style-span" style="background-color: #eeeeee;">time = millis(); </span></span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="font-size: 16px; font-weight: bold;">Considering doing something like this next:</span></div>
<div class="zemanta-related">
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://blog.makezine.com/archive/2010/09/outbound_calling_with_arduino_aster.html">Outbound calling with Arduino + Asterisk</a> (makezine.com)</li>
</ul>
</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<img alt="" class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=431af81b-69d9-4748-bb76-7e951f1b81a1" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; float: right;" /></div>Big Tray Jayhttp://www.blogger.com/profile/12470313743445513939noreply@blogger.com13