Skip to content

PyThermometer:The GUI/Web Real-time Serial Port Monitor of DHT11

License

Notifications You must be signed in to change notification settings

mg030154/PyThermometer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thermometer: The GUI/Web Real-time Serial Port Monitor of DHT11

These projects introduce some concepts and technologies to build robust and reliable monitoring software of serial port devices in the easy way.

Hardware

Arduino

DHT11

Layout: Arduino UNO + DHT11

  Connect DHT11 pin 1(VCC,left,power)   ->  Arduino +5V

  Connect DHT11 pin 2(DATA,signal)      ->  your DHTPIN in Arduino UNO,for example pin 3

  Connect DHT11 pin 4(GND,right)        ->  Arduino GROUND

  Connect DHT11 pin 2(DATA,signal)      -> a 10K resistor  ->  DHT11 pin 1 (VCC) 

ArduinoDHT11

Arduino sketch

  • Open ArduinoDHTSensor.ino, build and upload to Arduino

Python and Packages

  • Python3.5

  • PyQt4, PySerial, PythonQwt, Tornado

PyQt4 Package

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4

 PyQt4-4.11.4-cp35-cp35m-win_amd64.whl 

is the installer of PyQt4-4.11.4 for 64-bit Python 3.5 and windows.

  • From an administrative command prompt, install the downloaded wheel using pip.
  >pip install  PyQt4-4.11.4-cp35-cp35m-win_amd64.whl

PyQtArduinoDHT11

  • A threaded GUI Monitor with Python and PyQt4 plots live data using PythonQwt

  • Packages:Python3.5,PyQt4, PySerial, PythonQwt, Thread

  • Launching the app

    >python DHT_monitor_app.py

DesktopDHT11

TornadoArduinoDHT11

  • A web monitor with Tornado web server enables real-time plotting of DHT11 signals in the browser(support websocket)

  • Key Points: tornado server + websocket + flotr2

  • Enjoying live data on COM4

    • if your board serial port is not COM4, you may change:

        def openSerial():
            
            port = 'COM4'  # you shoule change to your board serial port
  1) Launching the web server

      >python app.py

  2) Open a web browser and go to :

   http://localhost:8000  

  You should see the graph and be able to select the curves to display.

WebDHT11

Reference

License

MIT

About

PyThermometer:The GUI/Web Real-time Serial Port Monitor of DHT11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.0%
  • Python 10.6%
  • Other 1.4%