Very inexpensive RF module tutorial

Let’s say you need a way to make a project wireless, but don’t have the scratch for a ZigBee or its ilk. You could use IR, but that has a limited range and can only work within a line of sight of the receiver. [Camilo] sent in a project (Spanish, translation) to connect two devices via a wireless serial connection. As a small bonus, his wireless setup is cheap enough to create a wireless network of dozens of sensors.

[Camilo] used the TLP434A transmitter/receiver combination to get his wireless project off the ground. These small devices only cost about $5, but being so inexpensive means the hardware designer needs to whip up their own communications protocol.

For a microcontroller, [Camilo] chose a Freescale MC9S08QC, a pleasant refrain from the AVR or PIC we normally see. After making a small board for his transmitter, [Camilo] had a very small remote control, able to send button presses or other data to a remote receiver.

After the break, you can see a short demo video [Camilo] posted of his wireless transmitter turning on an LED attached to his receiver. Unfortunately, this video was filmed with a potato, but all the schematics and code is on his web site for your perusal.


  1. Sven says:

    Now if you only need to transmit button presses there are ready made receiver/decoders and transmitter/encoders for this purpose that can be ordered for about $5 per pair, 4 buttons in, 4 logic signals out.

    • Zee says:

      Do you have a link?

      • gzaloprgm says:

        HT12D/E (decoder/encoder)

        Seems to be common in electric garage doors.

        I wrote a small article (in spanish) here:

        The IC only needs a resistors as a timebase, it doesn’t need to be that accurate.

        The only problem is that it doesn’t work as well for fast changing data, I tried to control motors (for an RC car) and it felt “laggy”, maybe it was the motor back EMF adding noise to it, don’t know.

        Still, the encoder/decoder pair is cheaper than two micros.

  2. Palandri says:

    this video was filmed with a potato

    I found this inexplicable funny… i loled so hard xD

  3. GeriBoss says:

    “filmed with a potato”
    I’m slightly outraged about this comment, it’s okay on a youtube comment but this is HaD for Christ’s sake!

  4. gzaloprgm says:

    You should keep in mind that because of the way the receiver works (Super-regenerate) if the input signal remains in a steady state, the receiver output oscillates. Because of that, it isn’t advised to do direct serial uart transmission. Something like manchester encoding should work better (at the cost of halving the max speed).
    Anyway, in any case you should be using checksumming and lots of redundant info.

  5. Beat707 says:

    I did the same thing with the Arduino + Virtual Wire library, works perfectly.

  6. ApexLogic says:

    These look like the SparkFun receiver and transmitter pairs. I recently purchased some cheapo chineese ones here Can’t get them for 20 days. But getting 10 pairs for 12 bucks is a steal. Will see if they’re slugs.

  7. cantido says:

    There are some very cheap .. I think about $2.99 shipped .. clones of some more expensive ISM band transceivers floating around on ebay under the label “RF-2400″…

  8. frakey says:

    “Filmed with a potato”

    I almost choked on my beer :’)

  9. bruce land says:

    Bear in mind that transmitting data at 415 or 433 MHz is illegal in the US, except at VERY low power.

  10. kiu112 says:

    Funny, i just completed a similar project based on the RFM12…

  11. kay says:

    If you want to do this in easy mode, the newest generation of Picaxe has a command to do encoding with these modules for you. It works pretty decent if you don’t forget the filter caps.

  12. Giles says:

    I’ve done a similar thing with the AM-RT4 and the AM-HRR ( Wrote a small python script to handle error correction using repetition.

  13. MasterFX says:

    I like the RFM70 Modules. They are cheap too (~3.5€). But you don’t have to do the protocol, CRC etc. in Software. It is all integrated.
    They use 2.4 GHz in with the PCB Antenna you get a range of 100m free field, with 1-2 Mbit/s.
    So why chose the TLP434, if you can get a faster and easy to use RFM70 for almost the same costs

  14. kiu112 says:

    What a coincidence, i just completed a similar project using a RFM12. See

  15. jordan says:

    Nice! I’ve been seeing these on dealextreme and been really keen to try them. into the world of wireless I go…

  16. Alex Rossie says:

    Do loads of RF link stuff.

  17. ejonesss says:

    the site is not working thank!!!!

  18. LordNothing says:

    i didnt like these things. i got 2 sets of them. and while there good for some light radio control applications. they are incredibly tedious to work with. you have to piss away half your baud rate to encoding and you still got to define a frame that throws even more overhead into the mix. i did manage to control an rc car across the room though.

    so instead i got a pair of slightly more expensive nordic transceivers, which i havent got a chance to use yet.

  19. gr0b says:

    I think the nRF24L01+ 2.4Ghz transceivers would be a better option.
    You can pick them up from less then $2 each so they are cheaper and have more features like auto transmit. It does use more IO (SPI) but has more smarts. If using with Arduino there are some radio stacks that support meshing. And powering it you don’t need to have 12v for the transmitter just 3.3v with a power consumption of about 13mAh

  20. Craig says:

    You might be mistaking HaD for a research journal. The idea to to present content which appeals to a spread of the DIY electronics crowd; novelty is good but hasn’t ever really been a strict requirement.

  21. Sasha says:

    Don’t these things cost like 2$ on ebay assembled?

  22. cgimark says:

    If you have never worked with transmitters a good read is the talking electronics site where they show how to build transmitters for remote control from just basic parts like transistors.

  23. adam says:

    i tried these w/ arduino&virtual wire. it didnt work for me ended up trashing them and buying a wixel kit from pololu on black friday. love my wixel. sometimes technology can be too limited to be worth the cheap price tag.

  24. NewCommentor1283 says:

    1) i have a TV remote IR extender using something like this, its useless for the TV protocol i purchased it for, its fine for every OTHER remote, ugh Murphy at it again!

    PS: i know the IRsensor is correct carrier feq… it picks up signal just fine with scope, its the radio thats unreliable.

    2) everyone (understandably) is pre-occupied with LOW and HIGH speed RF links… why is there no love for medium??? :(

    try using AFSK! medium speed and high reliability… @300 baud or higher, it was used commercially to link (dumb,=noCPU) terminals with mainframes and was the standard for several years. Also its SO easy to generate with AVR, wether interupt-based or polling-based :)

  25. DivePeak says:

    Wow, that appears to have more than 5 times the resolution of the potatoes I’ve been growing. Time to upgrade my veggies…

  26. jaxter says:

    I bought a few of these, planning to use it for a doorbell, and the range on them was awful, they quoted upto 100m, but i struggled to get 2m out of them.
    Anyone experienced the same or have any tips?

  27. ThanhTran says:

    I played with similar module bought from Sparkfun about 8 years ago. I hooked them to 2 basic Stamps. I tried to send some texts over the air. Too many errors in the transmission when I was standing across a room. I think they are fine for car door opener or light switch which you just keep sending until it reacts. But for some reliable communication, it’s tough. Anyone knows of some methods (one way) that’s capable of recovering good data out of the stream? maybe sending redundant data for auto recovery?

  28. Bruce says:

    Stan Swan has done a bit of work with these modules and the Picaxe –

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 96,357 other followers