Replies: 3 comments 2 replies
-
@rjdza Here is a link to the document PowerSave.md which give solutions for power saving on the ATtiny. |
Beta Was this translation helpful? Give feedback.
-
LowPower.h is a third party library that you were supposed to install.. But no matter - it doesn't support the new parts, only the old "classic" AVR ones (which are, frankly, a lot less exciting, and worse for low power stuff) https://github.com/SpenceKonde/megaTinyCore/blob/master/megaavr/extras/PowerSave.md; See also #158 - there have long been plans to make a library for the modernAVR parts (this, MegaCoreX and DxCore).and it is very frequently requested, but I am always dealing with more urgent or more interesting prioblems so I haven['t had time to work on it. I never really worked with power management. I only made one battery operated device in tjhe past few years, so there's a process of learning how to use that sort of feature myself. CR2032's are some really dismal batteries... check the datasheets on them for them like what the current was when they measured the capacity... they are meant to supply very low current intermittently over long periods of time. I think it was something like this that one person had which, when they turned on the power, it took so long to rise to operating voltages that they asked for options for a longer SUT setting on the fuses. And the way a lot of people use them in Arduino-circles is way the hell outside their specs! |
Beta Was this translation helpful? Give feedback.
-
Something like this should work. I web-searched and stole/adapted the code. On my attiny1614 board, power during sleep was down to about 1uA. The CR2032's are not designed for this, but are commonly used for wearable LED projects. I think with a bit of tweaking, you should end up with something she'll like. This code just blinks PA3 - adjust as required. Play with the RTC prescaler and CMP values to adjust timeouts.
|
Beta Was this translation helpful? Give feedback.
-
Hi there
I'd like to be able to send the chip into low power mode for X seconds.
The research I did said to use lowpower.h, but compiling gives me a "LowPower.h: No such file or directory" error.
I can't find anything to help with this after a few searches foe sleep, low power, standby, ..., and I haven't had a chance to search thoroughly (it's for a mother's day project I'm making for my wife, and I only got the chips (ATtiny412) working today).
Any help appreciated.
Abstract: I've made a resin heart with an LED embedded inside it. The LED is going to flash (Lub Dub) every 20 90 seconds. It's designed as a pendant to be worn around the neck, and will run from a 3V CR2032. The low power mode is required to help the battery to run as long as possible.
Everything is working except the low power standby / sleep. And trouble with the battery.
Beta Was this translation helpful? Give feedback.
All reactions