Spark Logic

DS18B20 1-Wire thermometer pinout

The DS18B20 is an individually addressable 1-Wire temperature sensor with programmable 9- to 12-bit conversion.

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.

SO-8 · 150 mil pinout

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 · Link to this pin

Read a sensor on a three-wire bus

  • +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

Connection guide

All 8 pins

PinSignalDirectionFunction
1NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
2NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
3VDD Supply inputSupply input Power input for external supply mode. In parasite mode the sensor draws power through DQ.
4DQ Open drainOpen drain 1-Wire data. The same wire can supply the device in parasite-power mode.
5GND Supply returnSupply return Connect to the common ground plane or bench return.
6NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
7NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
8NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.

Signal assignments

1-Wire

An open-drain multidrop bus with a unique 64-bit ROM identifier per device. External power keeps DQ available for conversion-status polling.

Electrical limits

ParameterLimitConditions and source
External supply3.0–5.5 V3.0–5.5 V Tie VDD to ground when using parasite power. Analog Devices / Maxim DS18B20 Rev. 6, pp. 1–4, 7–8, 11–12 and 19.
Conversion time (max)93.75 / 187.5 / 375 / 750 ms93.75 / 187.5 / 375 / 750 ms At 9 / 10 / 11 / 12 bits respectively. Analog Devices / Maxim DS18B20 Rev. 6, pp. 1–4, 7–8, 11–12 and 19.
Temperature accuracy±0.5 °C±0.5 °C From −10 to +85 °C. Overall measurement range is −55 to +125 °C. Analog Devices / Maxim DS18B20 Rev. 6, pp. 1–4, 7–8, 11–12 and 19.

Manufacturer documents

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