Differenze tra le versioni di "Arduino, ESP and 1wire thermometers"
Jump to navigation
Jump to search
m |
|||
Riga 16: | Riga 16: | ||
The connection to the DS18B10 is simple: | The connection to the DS18B10 is simple: | ||
− | [[File: TO-92_Front_with_Pin_Numbers. | + | [[File: TO-92_Front_with_Pin_Numbers.png]] |
GND -> GND | GND -> GND |
Versione delle 09:15, 27 giu 2016
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