Electronic – How to power a ATmega328 with a coin cell battery

atmegacoin-cell

Ok, so i am really keen to try replicate this project here

I'm still a noob and my knowledge of electronics stretch as far as making a light blink using an Arduino (Maybe a bit more).

I was thinking of using a ATmega328 instead of the ATtiny24A, because I can program it using my Arduino Uno like explained here

So this leads me to my question, how do I use coin cell batteries to power the ATmega328, maybe more specifically, what components will I need and why?

Best Answer

You use coincells the same way you use any battery to power an AVR like the ATMega328p. You hook it up directly. That's it, nothing different. Positive to VCC & AVCC, Negative to VSS and AVSS.

Keep in mind, coincells have very little capacity, will drain quickly under 20+ milliamp load, so maximize the time you spend in power-save/sleep mode, and the low voltage will limit your clock speed to 4 or 8 or 10mhz at most.

enter image description here

enter image description here