Author Topic: Low power reading of DIP switches inputs on Moteino [how-to]  (Read 1333 times)

yoopee

  • NewMember
  • *
  • Posts: 10
Low power reading of DIP switches inputs on Moteino [how-to]
« on: August 24, 2016, 05:40:57 AM »
hi,
I'm trying next low power thing, the Moteino configuration through the DIP switch and pull up resistors. I want to configure my TX packet interval with four state DIP switch. But if I am using the INPUT_PULLUP function, the power consumption goes up to 400uA when all four digital pins HIGH. Too much for low power.

I was thinking about using another digital pin as "power" instead using baterry pin and switch this pin to HIGH only when reading configuration from the DIP.
Or using external pullup resistor with higher resistance, such as megaohms?

anyone here dealt with the same problem?

Thank you


« Last Edit: August 26, 2016, 09:07:43 AM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6595
  • Country: us
    • LowPowerLab
Re: Low power reading of DIP switches inputs on Moteino
« Reply #1 on: August 24, 2016, 01:23:43 PM »
Yes, just use a power pin when you do the reading.
Once done reading make the inputs OUTPUTs and set them to LOW.

yoopee

  • NewMember
  • *
  • Posts: 10
Re: Low power reading of DIP switches inputs on Moteino
« Reply #2 on: August 25, 2016, 05:32:12 PM »
Thank  you Felix, tested today, works perfect!