Skip to content

SER-22 1-Wire with parasitic power and only a weak pull-up

Severity Status Implementation
suggestion planned mid, depends on NET-7, NET-10

Looks at. 1-Wire devices and their VDD wiring, the pull-up, a strong pull-up switch.

What it catches. A 1-Wire bus with parasitically powered devices (VDD tied to GND, as the DS18B20 demands in that mode) and only the usual 4.7 kΩ pull-up, without a MOSFET that can pull the line hard to the rail.

Why it matters. A parasitic device takes its energy from the data line while it is high. A temperature conversion or EEPROM write draws up to 1.5 mA, which a 4.7 kΩ cannot deliver without the line sagging below what the device needs; conversions return the power-on value 85 °C or the device resets mid-write. Several sensors converting together make it worse, and above 100 °C leakage makes parasitic power unreliable.

Example. Four DS18B20 on a 10 m cable in parasite mode on an ESP32 GPIO with 4.7 kΩ to 3.3 V: 12-bit conversions read 85 °C on the far sensors. The datasheet asks for a strong pull-up switched on within 10 µs of a Convert T and held for the whole conversion.

How to check. 1-Wire devices (part data, NET-7) whose VDD pin is on ground; on their DQ net, look for a MOSFET from a rail besides the resistor (NET-10).

Fix. Power the devices from VDD (a third wire), or add a P-MOSFET strong pull-up driven by a GPIO; use a 1-Wire master (DS2482) that has one built in.

References. DS18B20 "Powering the DS18B20" (1.5 mA, 10 µs, Figure 6); Wikipedia, 1-Wire "Power supplies".