This is a test project to build IoT temperature meter using ESP8266 WiFi module, DS18b20 temperature sensor and nodemcu. It sends temperature data to ThingSpeak.
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:
and
Draft posted from WordPress for Android and edited with WordPress
5 Comments
Tomi Engdahl says:
LUA scripts for ESP8266 with NodeMCU firmware
https://github.com/ok1cdj/ESP8266-LUA
Thermometer-DS18B20-Thingspeak
Thermometer-DHT11-Thingspeak
Thingspeak-Tweet
Tomi Engdahl says:
Here is an Interesting looking temperature and humidity sensor example:
Primary IoT Make with NodeMcu ->ESP8266<-
http://www.seeedstudio.com/recipe/232-primary-iot-make-with-nodemcu-gt-esp8266-lt.html
The world hottest WiFi IoT Chip, ESP8266. I know you feel hard(and suck…but don't let them know) when using SDK to program, so we decided to insert the Lua(an script language with easy syntax) to the ESP8266. Through NodeMcu, you can build up IoT(Internet of Things) BY YOUR OWN HAND. Much easier, more fun~
1.The things you need to prepare
A NodeMcu v2. Board
An DHT11 or DHT22 sensor
Tomi Engdahl says:
EasyIoT Cloud
Build your IoT in couple of minutes
https://hackaday.io/project/8079-easyiot-cloud
We want to build Easy Internet of Things framework. With EasyIoT Cloud framework you are able to build your most simple IoT in couple of minutes.
Components
1 × ESP8266
1 × sensor modules
ESP8266 WiFi DS18B20 temperature sensor (EasyIoT Cloud REST API)
http://iot-playground.com/2-uncategorised/68-esp8266-wifi-ds18b20-temperature-sensor-easyiot-cloud-rest-api
In this tutorial we will show how to build WiFi temperature sensor connected in EasyIoT Cloud. We will use ESP8266, DS18B20 and Arduino IDE.
Tomi Engdahl says:
Check also
Battery powered IoT temperature logger testing
http://www.epanorama.net/newepa/2015/06/25/battery-powered-iot-temperature-logger-testing/comment-page-1/#comment-1486351
Tomi Engdahl says:
Fail of the Week: ESP8266 Heats Temperature Sensor
http://hackaday.com/2016/05/06/fail-of-the-week-esp8266-heats-temperature-sensor/
Richard Hawthorn] sent us in this interesting fail, complete with an attempted (and yet failed) clever solution. We love learning through other people’s mistakes, so we’re passing it on to you.
First the obvious-in-retrospect fail. [Richard] built a board with a temperature sensor and an ESP8266 module to report the temperature to the Interwebs. If you’ve ever put your finger on an ESP8266 module when it’s really working, you’ll know what went wrong here: the ESP8266 heated up the board and gave a high reading on the temperature sensor.
ESP8266 + temp sensor fail!
http://blog.richardhawthorn.com/?p=272