Bringup
Open the editor
Behavioural mixed-signal modelDS18B20+ds18b20

DS18B20 (1-Wire temperature sensor)

Digital thermometer on the 1-Wire bus (−55 … +125 °C, 9–12 bit, ±0.5 °C): reset/presence, READ/MATCH/SKIP/SEARCH ROM, CONVERT T (up to 750 ms), scratchpad with CRC8, as in the datasheet. DQ needs a 4.7 kΩ pull-up. The temperature is adjustable in the inspector, also during simulation. Drive e.g. with OneWire + DallasTemperature.

VDDDQGNDDS18B20+
Schematic symbol

Key data

Category
Modules
Simulation model
Behavioural mixed-signal model
Manufacturer part number
DS18B20+
Reference prefix
U
Pins
3
Land pattern
TO-92_Inline

Notes

  • DQ needs a 4.7 kΩ pull-up to the supply; several sensors can share one bus (give them different serial numbers).
  • A 12-bit conversion takes up to 750 ms: start it with CONVERT T and read the scratchpad afterwards.

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
ds18b20
Supply pins
VDD / GND

Pins 3

PinNameUse
VDDVDDSupply pinSupply 3.0–5.5 V (tie to GND for parasite power)
DQDQI/O pin1-Wire data: 4.7 kΩ pull-up to the supply, to any GPIO
GNDGNDGround pinGround

Parameters 2

Temperaturetemplive
Default21 °C
48-bit serial number (hex)serial
Default0000000001

Part of the 64-bit ROM code (family 28h, serial, CRC); give several sensors on one bus different numbers

PCB

Verified land patternTO-92_Inline
PackageLand patternStatusSource
TO-92 · DS18B20+TO-92_InlineVerified land patternKiCad Package_TO_SOT_THT:TO-92_Inline; DS18B20 datasheet TO-92 pinout 1 GND, 2 DQ, 3 VDD