Arduino, ESP and 1wire thermometers
Versione del 27 giu 2016 alle 09:16 di Renzo (discussione | contributi)
This is a simple sketch to read the current temperature from a DS18B10/DS18B20 1 wire thermometer.
I have successfully tested this program on an ESP-12 (ESP8266) using the Arduino IDE.
hardware wiring
This project uses a "console cable" (but any USB to TTL converter is okay). Using an Adafruit like cable:
Black -> GROUND While -> TXD on ESP Green -> RXD on ESP
DO NOT CONNECT THE RED PIN TO YOUR ESP! The red pin is +5V while ESP need +3V3 so either you have a step-down circuit to convert 5V to 3.3V or you'll need another power source of the right voltage for yout ESP.
The connection to the DS18B10 is simple:
GND -> GND