ESP8266 + DS18B20 Temperature sensor sends data to Thingspeak.com

Its been a while i was searching for a cheap wifi module and with the help of smart-prototyping.com, i was able to get a module almost less than USD 5.

To connect the module to breadboard for prototyping, i made a small jig to interconnect with the board easily. So i can wire up the device and interface anything to GPIO’s.
Be careful with the module cause the device it powered with 3.3V and both UART side levels will be 3.3V so i recommend to use a FTDI converter with 3.3V level select.(one i used can select 3.3 and 5 volts) if you connect 5V the module will fry up. If you have 5V or 12V supply to power up the module i suggest to use LD1117V33 to make 3.3V.

https://duino4projects.com/esp8266-ds18b20-temperature-sensor-sends-data-thingspeak-com/

The stock Firmware in the ESP8266 supports AT commands and for communicating with this need an micro-controller like Arduino. But i want to make a simple solution for that without using external micro-controller. NodeMCU firmware was the best thing i found. To upload the NodeMCU firmware please do a google search, there are tons of video’s and supporting documents out there. I am not going to explain the flashing in this post.

NodeMCU is Lua based firmware and i hope most of the people will know it. Most router GUI also built by Lua.

If you are done with the flashing the ESP8266 module, lets connect the DS18B20 to GPIO 0. If you are not aware of pin mapping please check it before connecting anything to the module.
Before writing any code, goto thingspeak.com and make an account and get the API key which will be used with the Lua code.

 

For more detail: ESP8266 + DS18B20 Temperature sensor sends data to Thingspeak.com


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top