DS18B20 1-Wire thermometer connection guide
DS18B20 1-Wire thermometer (SO-8 · 150 mil) connection guide. Read a sensor on a three-wire bus. Use a host with a strong pull-up for parasite power.
| Package | Contacts |
|---|---|
| TO-92 | 3 |
| SO-8 · 150 mil | 8 |
| µSOP / FSOP-8 | 8 |
Device variants · SO-8 · 150 mil
| Device | Details |
|---|---|
| DS18B20Z | Narrow SO package. |
| DS18B20Z+ | Narrow SO package. |
| DS18B20Z/T&R | Narrow SO package. |
| DS18B20Z+T&R | Narrow SO package. |
Connection scenarios
Use a host with a strong pull-up for parasite power
Switch off power to the host and sensor. If switching from external power, disconnect VDD from the 3.3 V rail before connecting VDD to GND. Use a 1-Wire host with a switched strong pull-up to the 3.3 V rail. Its switched output joins DQ alongside the normal bus pull-up. Use a single pull-up resistor if the host already includes one.
- +3.3 V
- Host 3.3 V
- R1.1
- Ground
- Host ground
- 1-Wire data
- ↔
- Host open-drain GPIO
- Host switched strong pull-up output
- R1.2
Bench checks
- With the strong pull-up off, issue Read Power Supply (0xB4) followed by a read slot. A low response indicates that an addressed device uses parasite power.
- Enable the strong pull-up within 10 µs after Convert T (0x44) or Copy Scratchpad (0x48). Hold DQ high for the full conversion (93.75 / 187.5 / 375 / 750 ms max at 9 / 10 / 11 / 12 bits) or for at least 10 ms for the EEPROM copy. Pause all 1-Wire traffic while it is on.
- Verify DQ stays at or above 3.0 V during the hold, allowing for the drop across the switch. A sensor can draw up to 1.5 mA during conversion or EEPROM copying. Use external power above +100 °C.
Analog Devices / Maxim DS18B20 Rev. 6, pin descriptions p. 4 and Figure 6 p. 7.
SO-8 · 150 mil wiring map
1 · NC
No internal connection. Leave electrically open unless the package notes specify otherwise.
Manufacturer documents
The three package maps cover the bare sensor. Check polarity separately on cabled probes or third-party modules.
- DS18B20 manufacturer documentation· Analog Devices / Maxim DS18B20 Rev. 6, pp. 1–4, 7–8, 11–12 and 19.
- Local datasheet provenance· Manufacturer URLs, mirror origins and SHA-256 checksums.
