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

Read a sensor on a three-wire bus

With power off, remove any VDD-to-GND jumper before connecting VDD to 3.3 V. Power the device and a short 1-Wire bus from the same 3.3 V rail. The host drives low or releases the bus. Use the pull-up to return DQ high.

  • +3.3 V
    • R1.1
  • Ground
    • Host ground
  • 1-Wire data
    • ↔
    • Host open-drain GPIO
    • 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

  • After a reset pulse, check that the device pulls the line low for presence. Use a ROM search if more than one device is on the bus.
  • Issue Convert T (0x44), then wait up to 750 ms at 12-bit resolution. Read the scratchpad with 0xBE and validate the CRC before accepting a sample.
  • An 85 °C reading immediately after power-up is the documented reset value. Confirm that conversion completed before using it.

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

SO-8 · 150 mil wiring map

External wiring example · Read a sensor on a three-wire bus

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.