Skip to content

Monitoring temperature and humidity with Arduino UNO and DHT11 sensor.

Notifications You must be signed in to change notification settings

ViktorCVS/Monitoring-Temperature-and-Humidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Monitoring temperature and humidity with Arduino UNO and DHT11 sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published