Communicating analog data over low-cost RF modules between Arduino microcontrollers
Communication of analog data over RF between two Arduino microcontrollers. The analog data we use is from a light-dependent resistor being read by an Arduino Nano.
We used the popular low-cost 433MHz RF Transmitter & Receiver pair, there is no complex hardware encoding or decoding on these devices. A HIGH signal on the transmitter will produce a HIGH signal on the receiver. We use the Arduino VirtualWire library to encode our data as well as provide error-checking.
The analog light value is received by an Arduino Uno which prints the value onto an attached LCD Keypad Shield.
Download and Install Arduino IDE
- Download VirtualWire Library
- Import in Arduino IDE
Sketch -> Include Library -> Add .Zip Library...
- Open transmitter.c or receiever.c in Arduino IDE
- Select Board in Arduino IDE
Tools -> Board: XXXXX
- Select
Sketch -> Upload
Transmitter
- Arduino Nano
- FS1000A
Receiver
- Arduino Uno
- XY-MK-5V
- Python3.6
- VirtualWire Library