Being energy efficient
TC
Posts: 1,019
in Propeller 1
Hello all,
A project I am working on is a USB power bank. I want the prop to control and monitor the charging, discharging, fuel gauge, etc.. And I am looking to get some ideas and input about one thing. I have the rest somewhat figured out.
I would like the prop to either go into a low power mode or stop all together when there is no output load, or input charging. Mostly, if there is no reason for the prop to be running at full power, then in it shouldn't be running at full power.
The actions that would put the prop back into full power mode would be, pushing a single button(power), connecting an input charger, or hooking a load to the output(phone).
One idea I had was to make the prop stop all but COG-0, and go to the lowest clock frequency it can. Then increase the clock frequency, and start additional COG's when a input action is detected.
What ideas does everyone have?
Thanks
TC
A project I am working on is a USB power bank. I want the prop to control and monitor the charging, discharging, fuel gauge, etc.. And I am looking to get some ideas and input about one thing. I have the rest somewhat figured out.
I would like the prop to either go into a low power mode or stop all together when there is no output load, or input charging. Mostly, if there is no reason for the prop to be running at full power, then in it shouldn't be running at full power.
The actions that would put the prop back into full power mode would be, pushing a single button(power), connecting an input charger, or hooking a load to the output(phone).
One idea I had was to make the prop stop all but COG-0, and go to the lowest clock frequency it can. Then increase the clock frequency, and start additional COG's when a input action is detected.
What ideas does everyone have?
Thanks
TC
Comments
The A/D chips probably need to have power all the time because their inputs are connected to the battery. If it was charging I wouldn't snooze on the job, you need to be checking charge voltage/current and time and temperature.
Stopping all but one cog and switching to RCSLOW (~20kHz) is the typical way it can be made to snooze and even then you can waitcnt to cut power further, but bear in mind that the crystal oscillator will need time to stabilize when restarted, up to 10ms.
There are so many A/Ds out there to choose from, just don't go for the old and lame "tried and proven" seeing you want to have some fun with the Prop.
For the A/D portion I was going to use a fuel gauge chip from TI. It would offload reading battery voltage, charge and discharge current, temp, and remaining capacity, as well as other things. The prop would only talk to the TI chip when the prop is out of snooze mode. The TI chip uses micro-amps of current, so it would not matter if the TI chip stayed on.
The Prop sounds like overkill sometimes but we love it.
The prop is way overkill, but its no fun doing something and not going overkill... Plus, its the only MCU I know how to work with.
If you don't need any type of precisely timed operations (serial communication, etc.) use these:
If you do need precisely timed operations, then you'll need to stick to the external crystal, but you can save a little power by turning off the PLL like this: