Hello, I have a project with a custom PCB which will use a ATmega328P powered by a single Lithium cell.
I plan to omit any type of LDO, and run the uC at 8MHz (or 1 MHz), so the low voltage (3,6V) should not be a problem.
The PCB will be powered through approx. ~30cm wire from the battery.
What kind of capacitors should be added near the uC? Besides from the standard 100nF bypass capacitor on Vcc.
Is a buffer capacitor (preferably 4,7uF or 10uF low ESR tantalum) needed?
It is recommended of course, it depends a bit on what other parts you intend to power, the battery will be slow to respond to increased current draw, but the fluctuations will hardly affect the MCU.
Thanks for the explanation, it was my intention to ask @jim-p for further details.
Regarding the other components, nothing high consumers. Two very low current PIR sensors will be powered from the custom board, and two LEDs possibly (max. ~5mA using series resistors).
So a 10uF ceramic should be okay on the Vcc line before uC?
No, ceramics are a bad choice for input capcitors. They are not very good at absorbing input transients such as when you connect and disconnect the battery. A good electrolytic, 33uF or 47uF, with a voltage rating of 10V or more would be good.
Show your schematic and also a link to the PIR sensors. It is likely that these also have a large capacitor across the power rails. Also state if the PIR sensors are to wake the device from sleep mode.
Noted, thanks! Since it is a battery powered project, capacitor leakage current is also important.
I found this 33uF 10V and luckily it states "After 2 minutes' application of rated voltage at 20°C, leakage current is not more than 0.01 CV or 3 (µA), whichever is greater".
I think 3uA will apply to the 33 uF variant.
No schematic yet, I'm just in the data collecting period. I'll add it to the topic, as soon the first version is available.
PIR sensor datasheet shows some type of internal capacitance, but it's just a bypass cap I guess. Just the PIR sensor will be used, not a "breakout" board.
No, on a single 3.6V cell. I guess, your question rather relates to the datasheet equation?
Because it always confuses me what voltage should be used in the given "0.01 CV" formula, because it states
"After 2 minutes' application of rated voltage at 20°C, leakage current is not more than 0.01 CV or 3 (µA),"
and the rated voltage is the nominal to me. But it would make more sense to calculate with the 3.6V, because leakage current is more or less the result of applied voltage and the insulation resistance, right?
For that PIR, it looks like you need a high value (say 100k) pull down on the input to the ATmega328p (pin D2 or D3) and wake up on rising edge trigger. You could also use a pin change interrupt if you can't use D2 or D3.
If the project is purely to drive lights, you may also want to include a photo resistor and only power the PIRs during darkness. Here is gets more complex because you will also have to wake the device regularly (maybe every 8 seconds) to sample the ambient light level.
For a 33uF, 10V cap: 0.01CV would be 0.01 x 33u x 10V = 3.3uA
But since you won't be stressing your capacitotor at the rated voltage the leakage should be less.
How much less, who knows.
Leakage should be the same, the same "0.01CV or 3uA" formula is given in both datasheets.
Low impedance would be better for higher ripple current, right?