multiple arduinos transmitting temperature & humidity data via RF
Overview This project uses multiple arduinos outfitted with the OpenSourceRF wireless shields to transmit temperature and humidity to a PC via the RF USB dongle. A python script runs on the PC to log the data in a CSV file.
This set up would also likely work with standard RF transmitters/receivers and the wire arduino library.
The sketches on the arduino waits to receive a character from the python script. The python script sends the appropriate information. Once the information is read, the arduino responds with the temperature and humidity reading from the DHT11.
tutorial & photos http://www.shatteredhaven.com/2013/01/1400365-arduino-powered-wireless.html
Software Used
- pySerial - allows python to read from the serial port
- DHT-sensor-library - DHT sensor library from adafruit
Files
- arduinotemp.csv - csv file the python script logs data to
- arduinotemp.sh - shell script that executes the python script (if cron job will not execute python directly)
- arduinotempcron.txt - cron job example
- ArduinoTempLogger1.ino - arduino1 sketch example
- ArduinoTempLogger2.ino - arduino2 sketch example
- OpenSourceRFDHT11TempLogging.fzz - fritzing schematic
- pythonArduinoTempLogger.py - python script
Materials Used
- two (2) OpenSource RF arduino shields (http://www.opensourcerf.com/)
- two (2) Arduino Unos
- two (2) DHT11 temperature sensors
- two (2) 10K Ohm resistors
- two (2) breadboard (preferably mini-breadboard)
- one (1) Wireless RF USB Dongle (http://www.opensourcerf.com/)
- misc wires
Issues/Notes
- if python freezes on serial read, try hitting the reset on the arduino. That should resolve the issues.
- Windows 7 machine immediately recognized the USB device but I have had some issues with a Raspberry Pi. For whatever reason the Pi wouldn't immediately recognize the device and I had to toggle the network on/off switch while plugged into USB before I was able to SSH into the device.