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 · TO-92

DeviceDetails
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.

TO-92 pinout

TO-92
Flat face toward you and leads down. Pins 1, 2, and 3 are left to right.
Selected pin details

1 · GND

Supply return · Ground

Connect to the common ground plane or bench return.

Wiring requirements

  • External power. Remove any VDD-to-GND jumper with power off, then connect VDD to 3.0–5.5 V. Use the ordinary DQ pull-up. You can poll DQ for conversion completion if every sensor addressed by Convert T is externally powered.

    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.

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 3 pins

PinSignalDirectionFunction
1GND Supply returnSupply return Connect to the common ground plane or bench return.
2DQ Open drainOpen drain 1-Wire data. The same wire can supply the device in parasite-power mode.
3VDD Supply inputSupply input Power input for external supply mode. In parasite mode the sensor draws power through DQ.

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.