Skip to main content
16 events
when toggle format what by license comment
Jul 26, 2020 at 17:48 vote accept Zorglub29
Jul 26, 2020 at 6:39 answer added Peter Paul Kiefer timeline score: 2
Jun 12, 2017 at 17:39 comment added Zorglub29 Ok, fair enough for the need to go through the datasheet for very low power. But still, it is a bit strange / sad i cannot get to the 100s of microamps domain.
Jun 12, 2017 at 17:23 comment added Chris Stratton If you're serious about low power, you should probably look directly to the device data sheet and verify that everything you don't need is turned off, like ADCs, voltage references, etc. Divide the clock if possible. Shut down clocks you don't need. Also, at tiny currents, you have to worry about power being supplied or taken by I/O pins, and things like the burden voltage of your meter. Often it's hard to get a meter to both pass the run current and measure the sleep current!
Jun 12, 2017 at 14:55 history edited Zorglub29 CC BY-SA 3.0
added 48 characters in body
Jun 12, 2017 at 14:30 history edited Zorglub29 CC BY-SA 3.0
added 127 characters in body
Jun 12, 2017 at 14:29 comment added Zorglub29 No problem ;) I agree, the link to Nick Gammon says it should be for ATMega328P, but I use it with ATtiny. However, it looks like this code should work also on the ATtiny: technoblogy.com/show?KX0 forum.arduino.cc/index.php?topic=372982.0
Jun 12, 2017 at 14:07 comment added st2000 Sorry, my bad, the trinket uses an Atmel ATtiny85. Still, your link to the power web page says it is intended for the Atmega328P. Also, I am not sure the BSP is the same for these 2 processors. You might check on that to make sure you are not up against using 2 different version of sleep libraries. One for each processor.
Jun 12, 2017 at 13:57 comment added Zorglub29 @st2000: ok, that sounds a bit strange as gammon.com.au/power gets to the micro-amps domain while using just the standard libraries (and I think the same chips architecture), but I may be missing something?
Jun 12, 2017 at 13:55 history edited Zorglub29 CC BY-SA 3.0
added 163 characters in body
Jun 12, 2017 at 13:53 comment added st2000 A trinket uses an ARM core processor. Getting the power down is not trivial. You probably have hours of reading the Atmel then the ARM core specifications before you start in on designing your own "sleep / low-power" Arduino libraries. At which point you can start contributing back to the effort of improving the ARM BSP software for Arduinos as they are (were?) full of bugs.
Jun 12, 2017 at 10:35 comment added Zorglub29 I know that it is awake for the first 10 seconds (then power consumption is about 13 mA), after this period the power consumption drops to the 1.3 mA I was mentioning. ;) I could of course wake it up with the watchdog, but I do not think this is the point of this sketch; I only want to measure sleeping power consumption, so I think getting it to sleep in the setup and letting it sleeping is ok. I also got it to sleep in the main loop in another sketch, get similar results.
Jun 12, 2017 at 10:18 comment added Majenko Are you waking from sleep? Are you taking into account the 10 seconds at the start when it's running on full power? Put something in loop() that could indicate that it's woken up (maybe turn on an LED or something).
Jun 12, 2017 at 9:41 history edited Zorglub29 CC BY-SA 3.0
added 99 characters in body
Jun 12, 2017 at 9:37 review First posts
Jun 12, 2017 at 9:48
Jun 12, 2017 at 9:32 history asked Zorglub29 CC BY-SA 3.0