Skip to main content

Posts

Showing posts from February, 2017

Arduino code for ESP8266 to take readings from DHT11 and upload them to InitialState.com

www.initialstate.com is a great data broker and visualization platform for IoT devices. Up until now it was out of reach for ESP8266 fans because the Arduino environment for ESP8266 did not support SSL/TLS connections. But now it does. So here is how to get HTTPS working on ESP8266 using Arduino IDE and upload readings from DHT11 every 10 seconds.

 Steps for Windows computers:

Install CP2102 drivers for the USB-UART chip onboard the ESP8266 NodeMcu v1.0 boardGet the latest offline Arduino IDE Windows Installer from https://www.arduino.cc/en/Main/SoftwareInstall Board support for ESP8266 in your Arduino IDE, follow instructions here:
https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/installing-the-esp8266-arduino-addonAssemble your ESP8266 and DHT11 circuit. You will need 3 jumper cables and a breadboard to connect 3 signals from ESP8266 to DHT11 module. Connect pin marked D2 on ESP8266 to DHT11's data pin. Also supply 3.3V and GND from ESP8266 to DHT11's Vcc and G…