Differenze tra le versioni di "Arduino, ESP and 1wire thermometers"

Da raspibo.
Jump to navigation Jump to search
(Creata pagina con '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 Ar...')
 
m
Riga 15: Riga 15:
  
 
The connection to the DS18B10 is simple:
 
The connection to the DS18B10 is simple:
 +
 +
[[File: TO-92_Front_with_Pin_Numbers.svg]]
  
 
GND -> GND
 
GND -> GND

Versione delle 09:13, 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:

TO-92 Front with Pin Numbers.svg

GND -> GND