How to be very happy when communicating serial wireless low tech
Since I discovered this:
http://letsmakerobots.com/node/5916
all has changed! I was blind, but now I can see. And I can program!
On Picaxe, in order to send with these modules, use this code:
testsender:
for b0 = 0 to 255
high 3 pause 3 low 3 pause 1 serout 3,N2400, (85, 85, b0)
pause 200
next b0
goto testsender
and to recieve, use this code:
testreciever:
serin 7, N2400, (85,85), b0
sound 0, (b0,10) low 0
goto testreciever
- Of course adapted to your own setup etc.
The important parts here are:
high 3 pause 3 low 3 pause 1 serout 3,N2400, (85,85...
and
serin 7, N2400, (85,85...
Because with that combination all together, the reciever is left most happy in all states, and the result is 100% rock steady. Like in not a single bit lost in a thousand!
***
Bonus tip:
A) Hook up a speaker to your MCU
B) Send sound to it in a loop
C) Take off the speaker, and hook up the sender
D) Power up the reciever, and on the out-pin, hook up the speaker (and other wire to ground on the reciever)
Now do you hear sound from the reciever, punk? If not, you can rest assured that your recieving MCU will not get any signal either :)
Yes, you can start your own little radio station with these ;)
***
(Note that this post has changed, some of the comments below may be from earlier)




@ Fri, 2010-03-19 19:21
RF Serial Assembly code for PIC
Hello,
As for your sujested code for:
How to be very happy when communicating serial wireless low tech
Do you have also an Assember code for PIC Micro such as 16F870, that works in a robust way using these pair of RX/TX modules?
Thanks,
Gid
@ Sun, 2010-03-21 18:23
No, I am sorry.However, the
No, I am sorry.
However, the BASIC examples above should be close to plain English, so you should be able to copy the functionality :)
@ Sun, 2010-03-21 20:52
Thanks.
@ Mon, 2010-03-22 11:59
re: RF LINK
@ Sat, 2010-01-23 01:45
virtualwire
with this modules some kind of redundant algorithm must be emplyed have a look at this:
http://www.open.com.au/mikem/arduino/VirtualWire.pdf
@ Fri, 2009-09-04 10:00
I use these modules for my
I use these modules for my robots also. It is very cheap to get from China. ($2 for a pair). But there are easily interrupted (by TV, motors ...).
May be you are interested to check on this RF5050 protocol. With a 2 byte encoding method, I can send any data effectively.
http://www.seattlerobotics.org/encoder/200304/donc/TwoWayRF.htm
@ Sun, 2009-05-17 13:19
so what does your testsender
@ Sun, 2009-05-17 15:58
Did you read the "Forget
Did you read the "Forget everything written originally in this posting"-part in the top?
(This posting is void)
@ Sun, 2009-05-17 17:02
yes, and the picaxe manuel.
@ Sun, 2009-05-17 20:14
I am sorry, I just do not