Skip to content

Sandbird/ESP8266-with-LUA---Thingspeak

Repository files navigation

ESP8266 Thermometer using NodeMCU and DS18B20

Tested on version: nodemcu_integer_0.9.6-dev_20150704 bin

Info

Bugs

  • Sometimes the DS reports a temperature of 85 degrees. Reasking for the temp fixes this error.

Config

Edit ds.lua

--Edit 3 line to change GPIO
pin = 3;

Edit send.lua

--Edit 1 line to change your Thingspeak apikey
apiKey = "Thingspeak apikey"

HowTo

  • Upload the code on your ESP, fire it up then scan with your phone, laptop, etc the networks around you.
  • Connect to ESP8266-Setup, then open your browser and go to : http://192.168.0.1 (if you need to change this address edit run_config.lua)
  • Find you router in the list then use that name and password in the fields bellow and press save.
  • Done. The ESP will create a config file (config.lc) and reboot. It will then connect to the selected router, and update your Thingspeak channel every 10 minutes with the temp value.
  • If for any reason it cant find the router on reboot, it will delete the conf file and go back into setup mode.
  • There is also the option to manually update the Thingspeak channel, or get the Temp value from your browser. Just find the local ip address of the ESP and go to that address on your mobile (ex: http://192.168.1.64). You'll have the options to get the Temperature, refresh the page, or delete the config file.

Example connections

Schematic

Change log

28.12.2016

  • Added autoreseter in case the ESP cant find the router anymore.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages