how to use sleep mode extended battery

22 Jan 2010

I have saw some topics about sleep mode on mbed. but I still can't success.

I used "wait()" function to delay brfore and wait too much time.now  I want use sleep mode replace wait() function.

I saw some said use sleep(int seconds) function work well.but i can't use sleep() function.why?

sorry my poor english.

best regards.

22 Jan 2010

I hope some one can provide the codes here. thanks.

22 Jan 2010

oh,    i forget to say .  I only want to enter sleep mode 1 hour or 2 hour, and then wake up auto.

22 Jan 2010

Hi Wen,

There is no official sleep function at the moment, but take a look at http://mbed.org/forum/mbed/topic/172/ which discusses some code examples that might work.

Simon

23 Jan 2010 . Edited: 23 Jan 2010
27 Jan 2010

Hi Simon Ford and Michael Wei ,


Thanks for the response for the power management of the MBED,
but from your result of the power down, the minimum power consumption
is still in 120-130 mA range, this is not way too big! if you look
at the CPU power management, the current is in the uA range. It
looks like there is a lot of peripheral components are still sucking
the current ... we will have to do better to bring the current
down to, at least by cutting it from 120 mA by half. Any thought
on this?

By the way, I used other ARM7TDMI CPU before (about 5 years ago),
the board is way big then MBED, and we were able to cut the power
to about 40 mA range. MBED now is 5 years younger than the old
one ... we got to do better on this.

27 Jan 2010
wen xingxing wrote:

Hi Simon Ford and Michael Wei ,


Thanks for the response for the power management of the MBED,
but from your result of the power down, the minimum power consumption
is still in 120-130 mA range, this is not way too big! if you look
at the CPU power management, the current is in the uA range. It
looks like there is a lot of peripheral components are still sucking
the current ... we will have to do better to bring the current
down to, at least by cutting it from 120 mA by half. Any thought
on this?

By the way, I used other ARM7TDMI CPU before (about 5 years ago),
the board is way big then MBED, and we were able to cut the power
to about 40 mA range. MBED now is 5 years younger than the old
one ... we got to do better on this.

minimum is ~81.6 mA at 40 MHz (running normal, not sleep) with peripherals turned off and PHY off...
take out 2mA for the LED, maybe ~79 mA...
turn off mbed chip should save a lot of power as well, and I almost forgot about on board NAND which probably eats up lots of power...

02 Feb 2010

I am pretty sure from the pinouts that the magic chip is actually just a LPC2148 or one of its cousins. It runs the spi for the at45d chip, etc . If this is true, it seems that for good battery applications we need some way of putting that chip to sleep also.