In this tutorial we will show how to build ESP8266 WiFi temperature sensor with DB18B20. We will use Arduino IDE, but without Arduino. Data will be sent to EasyIoT server (Windows or Raspberry Pi) for nice display and logging.
See more tutorials at http://iot-playground.com/build
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials
- ESP8266 module
- DS18B20 temperature sensor
- 4.7K resistor
- 3.3 V power supply (or 2 AA batteries)
Step 2: Add Node to EasyIoT Server
Step 3: Connection
Electrical connection is very simple. Just connect wires like on connection diagram on picture. You can use 2 AA batteries or 3.3V power supply.
Step 4: Program
We will use modified Arduino IDE. It can compile and program ESP8266 like Arduino. Tutorial how to use ESP8266 Arduino IDE is here. Program can be downloaded on GitHub. Before downloading program fix access point username and password:
#define AP_SSID "your ssid"
#define AP_PASSWORD "your AP password"
and EasyIoT server username, password and node address:
#define EIOT_USERNAME "admin"
#define EIOT_PASSWORD "test"
#define EIOT_IP_ADDRESS "192.168.1.5"
#define EIOT_PORT 80
#define EIOT_NODE "N13S0"
If everything is correct you should see temperature in EasyIoT server web interface. If you want to see temperature chart enable data logging for node parameter Sensor.Temperature.
Full tutorial ESP8266 WiFi DS18B20 temperature sensor Arduino IDE.