Giter Club home page Giter Club logo

pythermometer's Introduction

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

pythermometer's People

Contributors

thermalogic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.