3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


USB controlled home automation hack

USB controlled home automation hack
Hack a wireless home automation system to be USB controlled using two AVR microcontrollers!

Check out the video! The system is really more responsive, but the browser on my phone is slow.


 
Remove these adsRemove these ads by Signing Up
 

Step 1Skills ans tools

Skills ans tools
There are two ways of hacking an RF remote to be controlled by a computer or a microcontroller.

The lame way:
Soldering wires onto the button pads on the remote and hooking them up to an Arduino.

The cool way:
Most RF remotes have a separate module for transmitting data. This device usually has a VCC and a GND line and a DATA line. You can easily transmit your own wireless data by connecting a microcontroller to the DATA line.

However, in order to transmit something that the wireless receivers can understand, you first have to figure out how the wireless data is formatted and transmitted.

To do this hack you will need a logic analyzer and optionally an oscilloscope.

I use the Logic from Saleae. This is an awesome tool and I have done a few reverse engineering hacks using this device!

Check it out at http://www.saleae.com/logic/

It costs 149 USD but it's a good investment for any hacker!

You also need to be familiar and comfortable with microcontrollers and programming in C.
« Previous StepDownload PDFView All StepsNext Step »
31 comments
Apr 29, 2012. 12:02 AMjanisalnis says:
Hi!
Like your tutorial very much.

It inspired me to put togather an instructable too.
http://www.instructables.com/id/Wireless-power-outlets-for-home-automation-using-A/


Can one use voltage doubler for RF transmitter using 2 capacitors and 2 diodes.
http://www.reuk.co.uk/Making-Voltage-Doublers-and-Multipliers.htm
Sorry, I put your picture about voltage booster in the description. Is it OK or should I remove it.
Mar 8, 2011. 3:11 AM007fred says:
very good, its great !
fred
Feb 16, 2011. 9:33 PMblackghost says:
i love how thorough your explanations are !
well done
you made me interested in taking my circuits course again ha ha
Feb 1, 2011. 7:34 PMNostraquedeo says:
cool thanks
Jan 31, 2011. 5:05 PMcamdenhersh says:
i have absolutely no experience with building things like this but im starting my studies in electrical engineering soon and i want to build something cool like this very badly. any thoughts or suggestions?
Jan 31, 2011. 12:39 PMEngineeringShock says:
This deserves to win the contest =)
Jan 30, 2011. 8:26 AMhelllordkb says:
I was an EE student and this instructable was fantastic. It was an excellent walkthrough that teaches you the theory of digital circuits through a custom/cool and practical implementation. Awesome Logic analyzer btw, gonna pick up one of those for myself perhaps to replace the one i hate. Incredibly well done and really invaluable. This is like a digital control programming class and a lab in ONE instructable. Just amazing.

Nice Oscilloscope btw, looks like an expensive one. Sparkfun has a really nice usb oscilloscope just like the logic analyzer you used/referenced. Both of them are at the bottom of their tools page. http://www.sparkfun.com/categories/177. I'd love to see this done with some of the xbee units they sell, but doing it this way might be cheaper.
Jan 30, 2011. 4:32 AMjonnyt6 says:
Thanks for the excellent explanaition and idea!!!!
its nice that you explain the logic and order.
keep it up!
Jan 27, 2011. 8:46 PMtundrawolf says:
This is an awesome inscrutable. It has helped me a great deal with digital circuits. Thanks again.
Jan 28, 2011. 6:47 AMrhkramer says:
Some projects are, I'm sure, quite inscrutable--this doesn't sound too bad. ;-)
Jan 27, 2011. 10:22 PMtuleele says:
This is exactly why this site and DIY is AWSOME!
Jan 27, 2011. 5:26 PMpixiandreas says:
Hello Everyone!

Realy nice prodjekt :-)

There is a product from a swedish company www.telldus.se named tellstick.
I have run this i 4 years with linux and windows and it[ very easy to set up and work like a charm
there is also many 3part application.

/Andreas
Jan 27, 2011. 3:20 PMitaross says:
This is simply AMAZING!
This is what i was looking for! V-USB + RF+Android !
How can i say.....you're the best (:
Best instructable I've ever read!
Jan 27, 2011. 2:40 PMClaudioDonate says:
Very very nice. Cool beginners guide to reverse engineering. Thanks for that!
Jan 27, 2011. 1:52 PMdagob says:
\\\\\\\Genious!
Jan 27, 2011. 12:14 PMyizhak says:
Isn't the zener diode reverse connected in the schematic?
We want the diode to reverse bias, not to forward bias.
Jan 27, 2011. 10:17 AMstudleylee says:
Very Well Done!!!! -Lee
Jan 27, 2011. 9:02 AMdavidprosser says:
This is pretty cool. For my A-Level electronics project I reverse engineered an RGB LED remote that I got cheap of eBay, found the protocol much like you, and used it to control my own coloured lights which decoded the protocol! Cool
Jan 27, 2011. 6:59 AMpolossatik says:
Don't turn it on, take it apart!..

I assume you are also suffering from an eevblog overdose? :)

nice writeup, cheers!
Jan 27, 2011. 6:51 AMmaltep says:
I've published a similar project some weeks ago (but more protocols and pcb available):
http://www.maltepoeggel.de/?site=usbfunk
Jan 27, 2011. 6:45 AMjavipz says:
Nice work!
Jan 27, 2011. 3:31 AMaugustoyeung says:
That's COOL!
I understand you can control the mcu by PC through USB, but how do you control the PC by cell phone?!?! By blue tooth?! wifi? How?!!?
Jan 26, 2011. 1:31 PMRetroPlayer says:
Another option is to purchase the encoder ICs that most of these remote systems are based on. I picked up several encoders and decoders on ebay for a similar project. Had to order from China, though.

They are usually PT2262 (encoder) and PT2272(decoder)

I think this is awesome that you decoded the protocol, however. Lower parts count, yeah!
Jan 26, 2011. 12:41 PMwoodega says:
Excellent! I have fairly rudimentary electronics knowledge, so this was practically a tutorial on using a logic analyzer and reverse engineering communication protocols. Not just a quick how-to, but something that I can take as a beginning step for doing similar stuff. Thanks!
Jan 26, 2011. 12:17 PMone2one says:
Nice: here is something similar that i did
http://linux-utils.blogspot.com/2011/01/arduino-remote-control-outlet.html
the kit was cheap (15€, 2 RF outlets modules and the remote control)
Jan 26, 2011. 10:15 AMH3PO says:
to do the thing with an rfm12 module, take a look at ethersex. there even is another libra set on the compatibility list, so i think it should work out of the box.
http://ethersex.de/index.php/RFM12_ASK
Jan 26, 2011. 3:48 AMjohnnyrun says:
coool...
can we have the pcb layout??
Jan 26, 2011. 6:27 AMjohnnyrun says:
Only now I see that you published .sch too... sorry.
very funny project.
I've made it in the lame way (16f627 + transistors), but it should be fine to control a lot of other receiver.
tnx a lot
Jan 25, 2011. 3:59 PMTOCO says:
Very impressive!
Jan 25, 2011. 2:33 PMrtty21 says:
This is so BOSS! its awesome!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
652
Followers
7
Author:chr
I like microcontrollers and LEDs :D