Which GPIO Pin mode saves more power?

Posted on
  • Hi there,

    I am planning to use the Puck's GPIO pin to detect if a switch is open (it will be closed most of the time), however I was wondering if the GPIO pin mode will affect the battery drain? My original idea is to connect the switch to both a GPIO pin (as input, pull down) and the 3V pin. But is there a better design that will save more power?

    Thanks.

  • What you're suggesting sounds fine and shouldn't draw much power. All GPIO pins should be about the same.

    The only problem is if your switch is 'normally closed' rather that the usual 'normally open' type (which could cause the pulldown resistor to be drawing power all the time) - but that is very unlikely

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Which GPIO Pin mode saves more power?

Posted by Avatar for intern @intern

Actions