This test is based on ESP8266 + ds18b20 + thingspeak+ nodemcu article and it’s files on GitHub plus ds18b20.lua. ESP8266 + ds18b20 + thingspeak+ nodemcu article describes how to build a simple temperature logger from small ESP8266 module.
Instead of using this tiny ESP8266 module (soldering components. etc.), I wanted to test the idea with Nodemcu dev kit. The ESP8266 + ds18b20 + thingspeak+ nodemcu article recommended to use ESPlorer to upload the needed files to the module (needs Java), but I deciced to use alernative ESP8266 Lua Loader to to that (worked well).
I need to do several changes to the files:
init.lua: update wifi.sta.config(“apname”,”password”) command to have my real WLAN name and password.
dallas.lua: update line conn:send(“GET /update?key=Q67WTIRSOWGXJEO&field1=”..t1..” to have my ThingSpeak key
I also needed to do ome debugging to find to which are the right pins on my module to connect the DS18B20 Arduno module (NODEMCU dev kit pinout helped on this): the connectons go to +3.3V, GND and D3 pin.
Here are some pictures of my temperature logger using Nodemcu dev kit:
Draft posted from WordPress for Android and edited with WordPress