LowPowerLab Forum

Hardware support => Low Power Techniques => Topic started by: yoopee on August 24, 2016, 05:40:57 AM

Title: Low power reading of DIP switches inputs on Moteino [how-to]
Post by: yoopee 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


Title: Re: Low power reading of DIP switches inputs on Moteino
Post by: Felix 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.
Title: Re: Low power reading of DIP switches inputs on Moteino
Post by: yoopee on August 25, 2016, 05:32:12 PM
Thank  you Felix, tested today, works perfect!