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 · µSOP / FSOP-8

DeviceDetails
DS18B20U Micro small-outline package.
DS18B20U+ Micro small-outline package.
DS18B20U/T&R Micro small-outline package.
DS18B20U+T&R Micro small-outline package.

µSOP / FSOP-8 pinout

µSOP / FSOP-8 · Face the package marking. Start at the pin-1 index and follow the numbered leads.
Selected pin details

1 · DQ

Open drain · Bidirectional

1-Wire data. The same wire can supply the device in parasite-power mode.

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.

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

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
1DQ Open drainOpen drain 1-Wire data. The same wire can supply the device in parasite-power mode.
2NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
3NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
4GND Supply returnSupply return Connect to the common ground plane or bench return.
5NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
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.
8VDD 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.