DS18B20 1-Wire thermometer connection guide
DS18B20 1-Wire thermometer (TO-92) 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 · TO-92
| Device | Details |
|---|---|
| DS18B20 | Bulk, straight leads. |
| DS18B20+ | Bulk, straight leads. |
| DS18B20/T&R | Tape and reel. |
| DS18B20+T&R | Tape and reel. |
| DS18B20-SL/T&R | Tape and reel. |
| DS18B20-SL+T&R | Tape and reel. |
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.
TO-92 wiring map
2 · DQ
1-Wire data. The same wire can supply the device in parasite-power mode.
Wiring requirements
Parasite power. Disconnect VDD from the supply and tie it to GND. Keep the ordinary DQ pull-up and add a host-controlled strong pull-up in parallel. Use external power above +100 °C.
During conversion or EEPROM copy. 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.
- 1-Wire data
- ↔
- Host open-drain GPIO
- Host switched strong pull-up output
- R1.2
- Via R1 4.7 kΩ to +3.3 V · Host 3.3 V, R1.1
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.
