I want to make some RF sensors and remotes for my arduino but cheap. I need to send and receive only On/OF (0/1) signal to and from arduino. I have no idea about coding for RF (I hope Transmitters and receivers will be paired).
My vision is:
After signal Input (+5) on DATA at transmitter (Sensor version) will be end signal to Receiver and that I can read on digital port through Arduino.
Will it work this way?
After signal Input (+5) on DATA at transmitter (Sensor version) will be end signal to Receiver and that I can read on digital port through Arduino. Will it work this way?
I think those transmitters/receivers use ON/OFF Keying (OOK). When the transmitter data pin is HIGH it transmits. When the data pin is LOW it turns off. Similarly, if the receiver detects a signal it turns the output pin HIGH and if it doesn't detect a signal it turns the output pin LOW. If the two are close to each other and there are no other transmitter in the area using the same band the output of the receiver should be similar to the input of the transmitter.
There is a library called "VirtualWire" that adds framing around your message so that it can detect interference. This can be used to prevent damaged messages from causing unexpected behavior on the receiver.
johnwasser:
There is a library called "VirtualWire" that adds framing around your message so that it can detect interference. This can be used to prevent damaged messages from causing unexpected behavior on the receiver.
Those modules are very easy to use with the VirtualWire library. Go get it. It lets you send short data packages, enough for your purpose.
Don't expect long distance range, the signal will suffer because of every obstacle you put inbetween.
I used them at home, they cover some 10meters w/ obstacles. Much depends on the power supply too (higher voltage makes them cover higher distances).