Skip to content

Latest commit

 

History

History
78 lines (39 loc) · 2.22 KB

File metadata and controls

78 lines (39 loc) · 2.22 KB

Monitoring Temperature and Humidity

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

Assembling the circuit

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'.

Results

Arduino Results

dataarduino

The serial port works fine.

Python 'getting_data.py' Results

datapython1

We get data from COM3 with sucess!

Python 'plotting_tu.py' Results

datapython2

And finally our living graph! I hope you learn from this git and could replicate it.

Projeto sem título