Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Powering a DS18b20
#1
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
Reply
#2
GPIO can't use as a power supply VCC.
Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)