In this tutorial we will show how to build DS18B20 and ESP8266 temperature sensor without Arduino. We will use Arduino IDE and report temperature over WiFi on EasyIoT server.
Sensor temperature is visible in EasyIoT server Web interface. If data logging is enabled you can see temperature chart.
ESP8266 WiFi module
|ESP8266 ESP-01 Serial WIFI Wireless Transceiver Module|
|ESP8266 ESP-03 Serial WIFI Wireless Transceiver Module|
|ESP8266 ESP-12 Serial WIFI Wireless Transceiver Module|
|ESP8266 ESP-05 Serial WIFI Wireless Transceiver Module|
|ESP8266 ESP-07 Serial WIFI Wireless Transceiver Module|
|ESP8266 Lua Nodemcu WIFI Network Development Board|
DS18B20 temperature sensor
|DS18B20 DALLAS Temperature Sensor|
|DS18B20 DALLAS Waterproof Temperature Sensor|
|DS18B20 Temperature Sensor module|
|400X 0.25w 1/4w Metal Film Resistor Pack Kit 1% 20 Value Each 20 Pcs 10 ~ 1M ohm|
See buying guide at the end of tutorial.
EasyIoT server configuration
In EasyIoT server add new node in Virtual driver. Node type is Temperature (AI). Tutorial how to add node to EasyIoT server can be found here. Remember Virtual node address, because you will need it later.
Program is available at GitHub. It is based on program contributed by community member @Dennis. To load program you will need ESP8266 Arduno IDE. Read Arduino ESP8266 IDE tutorial how to program ESP8266 in Arduino IDE.
In program you will need to change some settings. First set your AP username and password:
#define AP_SSID "your ssid"
#define AP_PASSWORD "your AP password"
Next change settings related to EasyIoT server like username, password, IP address, port and node address. Change following lines:
#define EIOT_USERNAME "admin"
#define EIOT_PASSWORD "test"
#define EIOT_IP_ADDRESS "192.168.1.5"
#define EIOT_PORT 80
#define EIOT_NODE "N13S0"
Connection diagram is very simple. Add DS18B20 to ESP8266 GPIO2 and one pull up resistor.
Check also EasyIoT Clud ESP8266 DS18B20 temperature sensor.
See more tutorials at http://iot-playground.com/build
To support this site and EasyIoT framework development please buy in our store.