Git Product home page Git Product logo

esp8266-dht11-opensensemap's Introduction

ESP8266 with DHT11

Setup

You need an ESP8266 with nodemcu firmware. For programming your ESP8266 you need either an Arduino or other USB-to-serial adapter.

I'm using ESPlorer to program the LUA scripts onto the ESP8266 memory.

Connection Diagram

Connect the ESP8266 with the DHT11.

Connect the Arduino to the ESP8266 for programming the device. The Arduino can be removed after programming the device and if you are using an external power supply or battery.

ESP8266 PIN device
GND GND
GPIO2 -
GPIO0 DHT11 data (2nd from left) & 3.3V VCC w/ 10kΩ resistor
URXD Arduino 0 (RX), for programming
UTXD Arduino 1 (TX), for programming
CH_PD 3.3V VCC
RST -
VCC 3.3V VCC

See also at Adafruit: "Connecting to a DHTxx Sensor"

Circuit Fritzing Parts: DHT11, ESP8266

The script

The script is an adaption from ok1cdj's DHT11 script for Thingspeak.

Configure your wifi SSID and password in init.lua, configure your OpenSenseMap box id and temperature & humidity sensor ids in dht11.lua.

Save both init.lua & dht11.lua on your device, then restart it.

esp8266-dht11-opensensemap's People

Contributors

chk1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ubergesundheit

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.