A simple program to interconnect a master computer with a slave, arduino based, wireless sensor.
- Read temperature and humidity from a DHT11 sensor.
- Send the dummy bytes (for synchronization) and data bytes by RF using a serial to 433MHz transceiver.
- Wait for the ACK
- Manage packet resend (with random backoff to avoid locking the medium)
- Sleep (power-down mode) during 8 seconds for power efficiency.
- Listens for dummy bytes sequence.
- Checks data integrity, repairs using redundancy bytes if needed.
- Sends the ACK and prints the result on standard output.
-
On master side:
- Ruby
- serialport ruby gem
-
On slave side:
- DHT sensor library
- LowPower library