I will show you how to make a remote temperature reading. You will be able to connect multiple temperature sensors DS18B20. Temperature measurement will be the HTTP server on ESP8266 12e V3. Source code was written in the Arduino IDE.
This project can also see here.
Step 1: Components- ESP8266 12e V3
- 3 x DS18b20
- Resistor 4k7 Ohm
- Few wires
ESP8266 GND 🠚 GND DS18B20
ESP8266 3V3 🠚 DS18B20 VCC
ESP8266 D3 🠚 DS18B20 DQ
- Connect the temperature sensors DS18B20 parallel
- Connect resistor 4k7 one pin to VCC and the second pin to the DQ
You can download Arduino IDE from here. In this project, I am using the Arduino IDE 1.8.1 Before you upload the software to ESP8266, setup your WiFi connection.
//WIFI const char* ssid = ""; const char* password = "";
Download source code: HTTP_DS18B20.ino
Step 4: Flashing ESP8266 12e V3 with Arduino IDE- Connect your ESP8266 to PC via USB port.
- Select ESP8266 board.
- Select COM port with your ESP8266.
- Press upload button in Arduino IDE.
- Open serial monitor in Arduino IDE.
- Get your server IP from serial monitor.
- Now open WWW page in your browser.
I connect three temperature sensors to my ESP8266 12e V3. Measuring the temperature every 5 seconds, but you can change this value.
Comments