Thursday 28 April 2016

Wireless temperature logger ESP8266 NodeMCU v1.0 with Arduino IDE

Wireless temperature logger ESP8266 NodeMCU v1.0 with Arduino IDE




Picture of Wireless temperature logger ESP8266 NodeMCU v1.0 with Arduino IDE
wireless temperature logger ESP8266 NodeMCU v1.0 with Arduino IDE
Streaming IoT sensor data using ESP8266 NodeMCU v1.0 ESP12-E with Arduino IDE
//Streaming sensor data using ESP8266 NodeMCU v1.0 ESP12-E with Arduino IDE to Thingspeak.
Back in late 2014 and early 2015, your truly came across
this nifty WiFi Chip ESP8266 (the ESP-01) and have to battle among the inconsistent documentations from various sources. For the spur moment, he documented his frustrations (findings) as an instruction guide ESP8266 guide or on instructables ESP8266 guide In due course, the ESP8266 WiFi has opened a whole new window of opportunity for him and his padawans.
The caveat at the moment of writing in 2014/2015 was to find a way to eliminate the “middle” MCU, the well-loved Arduino Uno (or Arduino Mega). It doesn’t make sense to forgo the ESP8266 that sports a 32bit CPU by using an Arduino Uno that sports an 8bit CPU for computations. Over the several months of dec14 to sept15, several IDE flavours/methodologies was released on the Internet to use standalone ESP8266, e.g to use ESP8266 and the available IO pins sans the Arduino Uno or Arduino Mega. From retrospective view, the cost of deploying an IoT framework to collect data has gone down drastically with just the standalone ESP8266 alone as the sentinel device. The flavours of standalone mode are ESP8266 Lua, and ESP8266 Arduino IDE. Check out the reference section for details.

Step 1: Parts needed

In this write up, yours truly is introducing the use of NodeMCU v1.0 (black) with ESP8266 Arduino IDE 1.6.5. There are lots of write up on the NodeMCU v0.9 or ESP8266 ESP-01 and variants with LUA, but information is scarce for NodeMCU v1.0 and ESP8266 Arduino IDE. This post is also a superseding update of an earlier how-to post of using ESP8266 ESP-01 with Arduino Mega and the temperature data is streamed to thingspeak-streaming-temperature-data-acquired.html .
Parts needed
Hardware
1x DS18B20 temperature sensor with 4.7k resistor across vcc and data pin
1x NodeMCU v1.0 (black)
1x Access Point Connected to Internet
Software:
ESP8266 Arduino IDE https://github.com/esp8266/Arduino
Source code available at the footer
Thingspeak account setup, and API key acquired.

No comments:

Post a Comment