I’m working on a prototype product(Wifi motion sensor) that will be powered from a battery source, it has a mega328(arduino bootloader, with sleep mode on and wake on interrupt,and WDT in case it hangs up), a PIR motion sensor , and a CC3000 break out board.
Power saving is done in software, but what type of battery should I use? I initially used 2AA with LT1302-5 boost converter, but I think it was not able supply enough current for the CC3000 module, it could not start the SSID scan also the LED on the break out board dimmed out a bit.
Now I’m thinking of using 4AA and using a 5v LDO regulator.
How do I go about it?, what other options I have, I need 5V to operate the circuit. I’ve never designed a battery powered project before. Should I use different type of battery,LiPo perhaps?
Peak current of 150mA is drawn when communication is going on, draws and 10mA when its asleep. Let me know if you need more details.
Circuit Diagram
LT1302 IC is soldered exactly as in its data-sheet.
Source code
https://github.com/hemalchevli/Sketchbook/blob/master/PIR_LP/PIR_LP.ino
This is how to looks
Read more: Battery powered device hardware design tips