Sleep modes #3360
Replies: 7 comments
-
|
Posted at 2016-12-08 by @gfwilliams You don't have to do anything at all. Unlike the other Espruino boards it's always sleeping as much as it can.
Only real guidance is make sure you don't keep pins set to use the hardware UART or PWM, as they use the full speed clock and so force it to stay on when active. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2016-12-08 by gnz Sweeeeet!! |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2016-12-16 by pk910 Hi Gordon,
This is exactly what i've tried to do to save some battery capacity. Greets pk910 Edit: just after NRF.wake() fixed it :) |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2016-12-19 by @gfwilliams That's a strange one - do you have any other code in there that could have been causing problems?
edit: You'll need to be using a recent firmware though - 1v88 could cause you problems |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-09 by user111953 Hi Gordon, For my part I don' t manage to get under 290uA... My measurements are taken with a small amperemeter. It connects the negative pole of the battery to the ground of the circuit. (A piece of plastic separates them, so the ciruit is off if my amperemeter is off). Any idea ?Attachments: |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-09 by user111953 After a hard reset I get ±32uA. I don't know why current intensity was so high the first time. I manage to get ±25 uA with stopping BLE. I flashed the puck with this simple code : It's far better but I still don't understand how I can get less than 5uA. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-11 by @gfwilliams Do you have up to date firmware? Do you have any pullup/pulldown on the reed switch pin? If the reed switch is normally closed that'd obviously cause power draw, but if it's normally open and there's no pullup then any electrical noise on the pin (or any other pins set as inputs) could cause activity inside the nRF52 which draws more power. ... but also if you look at http://www.espruino.com/Puck.js#power-consumption unfortunately just adding a watch to a pin to check its state can add around 10uA of power consumption. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-08 by gnz
Is there already guidance on how to put the puck.js in deep sleep and wake up on intervals? Is it as simple as using the NRF.sleep()?
Beta Was this translation helpful? Give feedback.
All reactions