Updates:
- I made a few code tweaks yesterday and re-flashed it. I think it’s all done now! I put in several batteries at various voltages and the LEDs are lighting up exactly as they should.
- Switching to using the 32.768KHz oscillator for the clock really helped with power consumption during active state (and a bit in standby as well). The LEDs are no longer dim during the animation, as there is plenty of current available now
- I used LED series resistors with less resistance than what I desired (used 30K, probably should have used 90K or so). With all the LEDs lit during standby, current consumption is 0.35mA (I typically aim for 0.12-0.18mA depending on the LED colors used). I think almost all of that is going to the LEDs. Only an immeasurable amount to the MCU (well, immeasurable with my DMM that only reads to 0.00mA).
- During the active state with animation (one LED lit), the consumption is 0.05mA. That’s actually about how much current I figure the LED itself is consuming… battery voltage at 4.1V with measured LED vF of 2.5V using a 30K Ohm resistor: (4.1V - 2.5V)/30000Ω = 0.05mA. So even during active state (not sleep), the MCU is using almost no current.
Well, now that I know that power consumption during active state can be highly reduced using the ULP oscillator (~12uA), this actually could happen! :+1:
Hey, I think maybe you might have missed post #97 ? Is this what you’re looking for? If it’s not, just let me know.