Go Down

Topic: IR remote controller project with low power? (Read 514 times) previous topic - next topic

dtokez

Hi all. I would like to make a IR remote controller and run it off batteries - maybe 2 AA cells? The IR part should be fine, but I'm not sure about how to achieve the lowest power consumption possible. I will be using a 328P - because I have a few around the place and also I will probably use most of the digital inputs to read buttons. This means that 99% of the time the 328 would be idle, but always checking pin state changes.

Any advice would be gratefully received :)

holmes4

Put the micro to sleep and then have it wake every 1/10th (or so of a second) to check the pins. This will save you 99% of your power and still give you a good response to a key press.

Mark

jremington

I would use pin change interrupts, so the MCU would be sleeping virtually all the time.
"It seems to run on some form of electricity"

LarryD

Great information here:
http://www.gammon.com.au/forum/?id=11497
The way you have it in your schematic isn't the same as how you have it wired up!

dtokez

Thanks guys, I will have a read of the link later.

If I was to use interrupts, how could I read multiple inputs?

dtokez


NI$HANT

You have to configure and read pins in order of their interrupt generation .there are 2 hardware interrupts on a uno or technically a atmega328 but in addition to that each pin I mean the gpio can have a interrupt but I think they can't wake your uC so use the hardware interrupt to wake up the uC from sleep and after waking it up immediately check for inputs etc.
"Real Men can Accomplish  Anything"
- <a href="http://www.winacro.com">  <b><font color="red">Website</font></b> </a> 
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

dtokez

the only trouble with that though is I would need to press two buttons, one hardware interupt then another button connected to a standard digital IO pin?

Thanks

NI$HANT

Yes in my understanding yes you have to press one pin to generate the external interrupt and thus waking it up and then follow up with a routine to read the other presses.
"Real Men can Accomplish  Anything"
- <a href="http://www.winacro.com">  <b><font color="red">Website</font></b> </a> 
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

dtokez

I need to think a bit more about it I guess, it would be nice to only have to press one button but maybe could use come dual pole switches - one pole to wake up via interrupt and the other pole to be read as a digital input?

Thanks

Paul__B


maybe could use come dual pole switches - one pole to wake up via interrupt and the other pole to be read as a digital input?


Diodes!

Go Up