Giter Club home page Giter Club logo

esp32-micropython-server's Introduction

ESP32: Micropython Web server with SYSTEM control panel + Weather Station

     " Connecting world ,down to Earth"

image

This is an asynchronous ESP32 web server with the DHT11 that displays temperature and humidity using esp32 using MicroPython Code. We will first interface the Sensor with ESP32 only and check the temperature and humidity reading in Shell Window. Similarly, we will add extra 0.96″/1.3″ I2C  oled display to the same circuit and display the Humidity Temperature reading on OLED Screen.


image

image

image

 -User are able to control , system remotely  - system reboot, deep sleep ,led on ,led off, send mail.

-User will get email that contain device data.

-The web server we’ll build updates the readings    
  automatically with the need to refresh the web page.

 -Display the Humidity Temperature reading on OLED Screen.

image

-ESP32 ESP-32S Development Board (ESP-WROOM-32)

-DHT11 Humidity Temperature Sensor

-Jumper Wires

-Breadboard

- Oled 

DHT11 Humidity Temperature Sensorimage

image

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). image


Interfacing DHT11 Sensor with ESP32 using MicroPython Codeimage DHT11 Sensor & ESP32 & start with MicroPython Code for measuring Humidity & Temperature. The connection is fairly simple. Connect the DHT11 VCC & GND pin to ESP32 3.3V Pin & GND Pin. Connect the digital output pin to ESP32 GPIO5 Pin. image

image


ESP32 DHT11 MicroPython Codeimage

   from machine import Pin
   from time import sleep
   import dht 
   sensor = dht.DHT11(Pin(5))
   while True:
     try:
       sleep(2)
       sensor.measure()
       t = sensor.temperature()
       h = sensor.humidity()
       print('Temperature: %3.1f C' %t)
       print('Humidity: %3.1f %%' %h)
     except OSError as e:
       print('Sensor Reading Failed')

Monitor DHT11 Humidity Temperature Data on OLED with MicroPython Codeimage Here is the connection diagram. The OLED Display is an I2C Module. So connect the SDA & SCL pin of OLED Display to ESP32 D26 & D25 Pin respectively. image

image

image

Open a browser and type the ESP32 IP address. Your web server should display the latest sensor readings. image

image

image

esp32-micropython-server's People

Contributors

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