Spark Logic

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.

PackageContacts
TO-92 3
SO-8 · 150 mil 8
µSOP / FSOP-8 8

Analog Devices / Maxim Integrated

Device variants · SO-8 · 150 mil

DeviceDetails
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
R1 4.7 kΩ between +3.3 V and 1-Wire data+3.3 VR1 4.7 kΩ1-Wire data

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

External wiring example · Use a host with a strong pull-up for parasite power

Highlighted contacts are used in this circuit. Select a contact to highlight its wiring nets.

SO-8 · 150 mil · Face the package marking. Start at the pin-1 index and follow the numbered leads.
Selected pin details

1 · NC

None · NC / reserved

No internal connection. Leave electrically open unless the package notes specify otherwise.

Analog Devices / Maxim DS18B20 Rev. 6, pp. 1–4, 7–8, 11–12 and 19.

Electrical limits · Pin in the reference

Manufacturer documents

The three package maps cover the bare sensor. Check polarity separately on cabled probes or third-party modules.