DS18B20 Measurement Path
DS18B20 Measurement Path
Tip
Checkpoint: DS18B20 Measurement Path
Checkpoint: DS18B20 Measurement Path
A dependable DS18B20 reading requires a discovered bus address, a completed conversion, and validation of the returned value before it enters the application.
You now know:
- Each DS18B20 has an address, so devices can share a bus.
- A 12-bit conversion can take 750 ms. Divide the raw value by 16.
- 85 °C may be the power-on value or a real reading. Check that conversion finished.
- The DallasTemperature library uses -127 °C as an error value. Check the bus and CRC.