Smart Home Automation Forum

Full Version: Powering a DS18b20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

Is it possible to power (VCC) from a GPIO output? I need to be able to reset a DS18B20 by turning off the VCC to the sensor as they get out of timing sync often and only are able to re-sync from a power cycle - not from a node reset.

Whats the max current the GPIO as an output that ic an supply
GPIO can't use as a power supply VCC.
A safer approach is to use a P-channel MOSFET or an N-MOSFET low-side switch to control the sensor’s VCC, or even a small transistor. This way, your GPIO just controls the gate/base and the sensor gets proper power for resets.