Build A 500 Metre Radio Data Link For Under $40

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Build a 500 metre radio data link for under $40.


by James Moxham on March 15, 2008

Table of Contents

Build a 500 metre radio data link for under $40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Build a 500 metre radio data link for under $40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Transmitter and antenna . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 3: Build a dipole antenna with a balun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Transmitter module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 5: Receiver module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 6: Receiver circuit and picaxe code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 7: Lower power module and neighbourly relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
Author:James Moxham author's website
Dr James Moxham is a general medical practitioner in Adelaide, Australia. His interests include general family medicine, medical politics, microcontrollers
and tending a rose garden. He lives on a property with his wife, three children, three cats, 6 cows, 8 kangaroos and numerous koalas.

Intro: Build a 500 metre radio data link for under $40.
Have a water tank you want to measure or a dam or a gate? Want to detect a car coming down the drive but don't want to string wires through the garden? This
instructable shows how to send data 500 metres with 100% reliability using picaxe microcontroller chips and 315Mhz or 433Mhz radio modules.

Step 1: Schematic
The transmitter and receiver circuits are quite simple and use picaxe chips. These single chip microcontrollers can sense analog voltages, turn things on and off and can
transmit data. See instructables http://www.instructables.com/id/Control-real-world-devices-with-your-PC/ and http://www.instructables.com/id/Worldwide-microcontroller-
link-for-under-20/ for a description of how to program picaxe chips. With a radio link as well as an interface to a PC it is possible to sense data remotely and transmit it
anywhere in the world.

Step 2: Transmitter and antenna


The transmitter prototype was built on a piece of prototype board. There are a myriad of low power 10mW RF modules available which work well up to a range of about
30 metres. However, once the power goes up above half a watt the RF tends to get back into the picaxe chip and cause resets and other strange behaviour. The answer
is to remove the module's antenna and take the RF away with 3 metres or more of 50ohm coax and build a proper dipole antenna. This also boosts the range
considerably.

http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
Step 3: Build a dipole antenna with a balun
At the antenna is a balun made of coax cable. A balun is needed otherwise the shield of the coax ends up becoming an antenna instead of being the earth and radiates
RF down near the picaxe which defeats the purpose of the antenna. There are lots of balun designs but I chose this one because it just uses bits of coax cable. Common
wavelengths are 95.24cm for 315Mhz and 69.34cm for 433Mhz. The coax lengths are 1/4 and 3/4 of the wavelength respectively. The dipole wires are 1/4 of the
wavelength. So for the modules I used at 315Mhz the coax wires were 23.8cm and 71.4cm and the dipole wires were each 23.8cm.

The coax shield and core are joined together where the coax splits into two. At the dipole note the shields are also connected. If these joins are out in the weather then
they need to be weatherproofed in some way - eg with paint or non conductive silicone. Antennas work best when at least 2 metres off the ground.

Acknowledgement and thanks to I0QM for this design.

Step 4: Transmitter module


The transmitter module is available on ebay for around $US14 at http://stores.ebay.com.au/e-MadeinCHN. The current consumption is around 100mA when transmitting
at 9V, and is virtually nothing when idle. The antenna was removed to build the dipole, though the module might be ok with the antenna attached if it were paired with a
different microcontroller. The coax braid is connected to the module earth which is conveniently next to the antenna connection.

http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
Step 5: Receiver module
The receiver module is a superheterodyne unit available for around $US5 from the same ebay store. There are a number of other modules (including superregenerative)
that are not as sensitive and don't give the range.

Step 6: Receiver circuit and picaxe code


The receiver module is connected to a picaxe as shown in the schematic. The antenna is a 23.8cm piece of wire, and to make a dipole and increase the sensitivity
another length of 23.8cm wire is soldered to the earth of the module.

The transmitter code is as follows:

main:serout 1,N2400,("UUUUUUUUUUUUUTW",b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13)
' T and W = ascii &H54 and &H57 = 0100 and 0111 = equal 1s and 0s
'b0=random number
'b1=random number
'b2=to device
'b3=reverse
'b4=messagetype
'b5=reverse
'b6/b7 = data 1 and reverse
'b8,b9 = data 2
'b10,b11 = data 3
'b12,b13 = data 4
random w0 ' random number used to identify messages when using multiple repeaters
b2=5' to device number...
b3=255-b2
b4=126' random number for testing
b5=255-b4
b6=0' random number for testing
b7=255-b6
b8=1' random number for testing
b9=255-b8
b10=2' random number for testing
b11=255-b10
b12=3' checksum - any value
b13=255-b12
pause 60000' transmit once per minute
goto main

And the receiver code:

main: serin 4,N2400,("TW"),b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13


b13=255-b13' inverse again only need to really test one
if b12=b13 then
for b12=0 to 55
high 2
pause 100' flash led once a second for a minute
low 2
pause 900
next
endif
goto main

The transmitter sends a packet once per minute - once debugged this ought to be decreased to every 15 mins or 30mins to avoid interference to neighbours. The
"Â?UUUU"Â? at the beginning of the packet is binary for 01010101 which balances the Rx unit. The protocol uses a form of Manchester coding where the number of 1's
and 0's is kept as equal as possible, and this is done by sending the inverse of each byte after the byte is sent. Without this the packets sometimes don't get through if
http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
they are sending lots of binary zeros. A checksum at the end must be valid before the data is processed. The receiver flashes a led for 55 seconds when a packet is
received and once debugged, this could be changed to some other acknowledgement.

Step 7: Lower power module and neighbourly relations


To keep neighbourly relations happy, especially with digital TV, send the data as far as it needs to go but no further. One can argue about the legalities of higher power
transmitters but the best solution is to keep the RF on your property and send data infrequently in brief packets. This lower power module is half the price and goes about
200 metres. The lower power does have the advantage that it can have an antenna mounted directly on the module and can be soldered next to the picaxe, so the coax
and balun are not needed.

Range tests were done through trees and over a hill which explains why a module listed as "4000m" only went 500 metres.

Next up will be an instructable on building self contained solar power supplies suitable for the these units, as well as sensors such as temperature, pressure, humidity,
soil moisture and tank levels.

Related Instructables

Air quality
Control real Worldwide Automate your balloons by
world devices microcontroller Dark Lights science
433 MHz UHF link for under staceyk
with your PC by LED by botronics experiments by
lost model radio Dr_Acula $20 by Dr_Acula James Moxham
beacon by
manuka
http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
Comments
23 comments Add Comment

tzq33tdq says: Oct 14, 2010. 10:12 PM REPLY


wow. will this work for a weather station?

Dr_Acula says: Oct 15, 2010. 4:25 PM REPLY


Yes it probably would. Since I wrote this, other solutions have become available. One of the problems with this design is that it may exceed the legal RF
power allowed in your country. Given this is generally limited to 10mW, the other solution is to increase the receiver sensitivity. I've been using this one
lately http://www.appcon.com.cn/en/product/APC200A43_pro.html as it has can go to 9600 baud, has a higher Rx sensitivity, has an inbuilt 256 byte
buffer, and it seems to be a lot more reliable. If you want to pursue this further please let me know and I'll try to find a supplier.

NXTreme says: Mar 16, 2010. 12:50 PM REPLY


It seems that the link is broken. For anyone wanting to find the eBay store listed I think it is http://stores.ebay.com/e-MadeinCHN . They have a page that is
just about their radios, find it here . The radios do seem pretty cheap, thanks for pointing them out Mr. Moxham!

wee_man says: Apr 14, 2009. 9:22 PM REPLY


hi I can't seem to find any of these RF modules in my country are their any special names they go by ? and could i connect this like this

Computer ---Serial port ---> RF trasmitter ----------->RF reciver --->Picaxe

Dr_Acula says: Apr 14, 2009. 10:41 PM REPLY


The modules are on ebay at http://stores.ebay.com/e-MadeinCHN

But no you can't connect it like you say, because the computer RS232 goes from -12V to +12V, and the module expects 0V to 5V. You need a max232
chip and then an inverter gate eg 74HC04. At the other end though, yes you can go from the RF receiver straight into a picaxe.

The technology has been racing ahead in the last 12 months with more and more RS232 to wireless modules coming out at very good prices. Hope and
Yishi are two companies making them for a very good price - probably less than the cost of bare RF modules and a picaxe. See my post from 3rd April
below.

wee_man says: Apr 14, 2009. 11:27 PM REPLY


Also (sorry for double posting) from what i understand from stuff like this is that its sending machine code 00111011 threw the rf modules couldn't
one just build a Am or/Fm trasmitter and connect it up?

Dr_Acula says: Apr 15, 2009. 12:12 AM REPLY


If you want very simple commands, then the e-madeinchn people have boards with relays on them. Push one of 4 buttons, and one of 4 relays
closes. This could be the easiest to configure and I've got one and it does have a long range. Or hack a radio control car and use the servo to
turn things on and off. How many things do you want to turn on and off and how much data do you want to send?

wee_man says: Apr 15, 2009. 1:23 AM REPLY


Well what i had in mine was using this concept http://www.instructables.com/id/SOCBOT-the-next-generation-vibrobot/ and some how
controlling it from the computer wirelessly. Just to freak out my technology ill mother "hehe"

wee_man says: Apr 14, 2009. 11:22 PM REPLY


Ok thats a bummer i wanted a remotly computer controlled vibrabot. I will have a look at these other wireless module thingys but its a hassel getting
one product and then paying large shipping to new zealand

onegizmo01 says: Apr 2, 2009. 7:45 AM REPLY


Could You Please Add A Complete Parts List for this project? Thanks

Dr_Acula says: Apr 3, 2009. 5:50 AM REPLY


You would need two picaxes and the radio Tx and Rx as described, plus the components in step 1. Having said that, further experiments over the last
year have revealed a whole range of better options for sending data with RF modules from companies such as Hope and Yishi. These are true "serial in
= serial out", have ranges up to 3Km for a similar price, and are bi-directional. It depends what you want to do - range, baud rate, one direction or two
directions, power source, a few bytes or big files. See http://drvernacula.topcities.com/n8vem.htm for an example. If you only want to send a few bytes
through over a short range, picaxes with cheap $2 RF modules is still the cheapest option.

Xellers says: Sep 6, 2008. 2:47 PM REPLY


The radio transmitter in the last step looks relatively easy to make, could you please post some schematics.

http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./
Dr_Acula says: Sep 8, 2008. 6:27 PM REPLY
They already come pre-built for a very low price - see the link in step 4.

Xellers says: Sep 9, 2008. 1:38 PM REPLY


Hmm.... I don't need a receiver, and the transmitter looks like I could make it from supplies that I already have. So can you please post a picture of
the underside at least so that I could see how it is wired up? Thank you.

Xellers says: Sep 9, 2008. 1:39 PM REPLY


Also, please specify the colors on the resistor in order? THX

Xellers says: Sep 9, 2008. 1:40 PM REPLY


And the value of the SMT capacitor...

Xellers says: Sep 9, 2008. 1:40 PM REPLY


And if the transistor is PNP or NPN.....

Xellers says: Sep 9, 2008. 1:40 PM REPLY


The voltage of the battery as well...

Xellers says: Sep 9, 2008. 1:42 PM REPLY


Please.....

James Moxham says: Sep 9, 2008. 4:44 PM REPLY


Just checking you have the supplies. The metal tin is not a battery, it is the actual transmitter sealed in a can. The 'resistor' is
actually an inductor. There are no parts on the underside. I don't know the part number of the transistor - they filed it off. If you
go to www.ebay.com and search for radio module (two words, no quotes), this module comes up fairly high on the list. It is only
$2.50 and so there really isn't much point trying to build one from scratch.

bumsugger says: Mar 16, 2008. 11:00 AM REPLY


Nice,clean,well presented Instructable James, i'd use the adjective "awesome," but someone beat me to it!

GorillazMiko says: Mar 15, 2008. 9:17 AM REPLY


Awesome! Looks VERY hard to do, but great job, I like how you labeled the images and stuff. You can just edit the image by clicking where you want the tag
to be, and drag, it's easier. Nice job! +1 rating.

vernors says: Mar 15, 2008. 6:37 AM REPLY


looks complicated but very cool

http://www.instructables.com/id/Build-a-500-metre-radio-data-link-for-under-40./

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy