My project is based in get data from a temperature/humidity sensor DHT11 with 'Arduino UNO' and plot a living graph with the data with Python.
I can divide this project in 4 steps:
- Assemble the circuit
- Program Arduino UNO
- Get data from python
- Plot the living graph
And those are the materials:
- Arduino UNO with USB cable for Arduino (or any other material that allow you to write a code in Arduino)
- DHT11 (Temperature/Humidity sensor)
- Protoboard (Optional)
- Wires/Jumpers
Arduino Libraries:
- dht.h (I uploaded it here)
Python Libraries (you can install them with 'pip install'):
- matplotlib
- drawnow
- pyserial
DHT11 Sensor:
Arduino UNO:
Squematic:
Assembled circuit:
We can see that I put the '-' terminal of DHT11 at ground, middle terminal at VCC +5V (Arduino) and 'S' terminal for data at pin '8'.
The serial port works fine.
We get data from COM3 with sucess!
And finally our living graph! I hope you learn from this git and could replicate it.