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.
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
| Pin | Name | Use |
|---|---|---|
| VDD | VDDSupply pin | Supply 3.0–5.5 V (tie to GND for parasite power) |
| DQ | DQI/O pin | 1-Wire data: 4.7 kΩ pull-up to the supply, to any GPIO |
| GND | GNDGround pin | Ground |
Parameters 2
Temperature
templiveDefault21 °C
48-bit serial number (hex)
serialDefault0000000001
Part of the 64-bit ROM code (family 28h, serial, CRC); give several sensors on one bus different numbers
PCB
Verified land pattern
TO-92_Inline| Package | Land pattern | Status | Source |
|---|---|---|---|
| TO-92 · DS18B20+ | TO-92_Inline | Verified land pattern | KiCad Package_TO_SOT_THT:TO-92_Inline; DS18B20 datasheet TO-92 pinout 1 GND, 2 DQ, 3 VDD |