Hi everyone, I was wondering whether setting pins to input or output would be better in terms of extending battery life of the Teensy.
On the Arduino digital pins tutorial, it says that input pins make very small demands on the circuit, and it seems like having a pull down resistor would also reduce the current consumption of peripheral devices. On the other hand, it states that output pins are in a low-impedance state, so they can provide a substantial amount of current to other circuits.
So if I have the 3V pad of a sensor connected to a Teensy digital pin, and want to reduce current consumption when the sensor is not being used, would it be better to set the digital pin as an output LOW while not in use, or as an input pulldown (with output HIGH while in use)? Or perhaps as output LOW with a 1K resistor between the digital pin and the 3V pad? (It also seems that even when using output LOW to power down the sensor, there is quite a bit of current leaking through and reducing battery life)
Additionally, for unused pins the Teensy page says to set them as output, but how does this extend battery life?
On the Arduino digital pins tutorial, it says that input pins make very small demands on the circuit, and it seems like having a pull down resistor would also reduce the current consumption of peripheral devices. On the other hand, it states that output pins are in a low-impedance state, so they can provide a substantial amount of current to other circuits.
So if I have the 3V pad of a sensor connected to a Teensy digital pin, and want to reduce current consumption when the sensor is not being used, would it be better to set the digital pin as an output LOW while not in use, or as an input pulldown (with output HIGH while in use)? Or perhaps as output LOW with a 1K resistor between the digital pin and the 3V pad? (It also seems that even when using output LOW to power down the sensor, there is quite a bit of current leaking through and reducing battery life)
Additionally, for unused pins the Teensy page says to set them as output, but how does this extend battery life?