n-able-Arduino icon indicating copy to clipboard operation
n-able-Arduino copied to clipboard

Need help with deep sleep NRF51822 board

Open MegaSegaDrive8 opened this issue 2 years ago • 5 comments

Hello. Thank you for this library.

I need help with deep sleep with board nrf51822. Now for example "delay(5000);" get me about 0.8-0.9 mA.

Is this maximum mA for sleep mode?

MegaSegaDrive8 avatar Jun 25 '23 11:06 MegaSegaDrive8

You're welcome 😄 , is there anything else on the board drawing current? On my nrf51822 boards the current draw is much less in sleep mode. What peripherals are you using?

h2zero avatar Jun 29 '23 03:06 h2zero

No, just 2 contacts like switch, between GND and P16

Maybe I have a problem with the code. Do you have any example, for example, just advertising for 1 second when the contact is closed between P16 and GND?

MegaSegaDrive8 avatar Jun 29 '23 11:06 MegaSegaDrive8

I don't have any examples of that at the moment but I am wondering if you are calling Serial.begin() in your code? the UART will consume power at that level.

h2zero avatar Jun 29 '23 21:06 h2zero

hello guys; @MegaSegaDrive8, i was wondering if you can share your example code, I wanted to do exactly the same thing, i want to advertise a custom payload and then send it to sleep, would be able to share at least the nuts and bolts. @h2zero i did also check your other repos but i was not able to find the deep sleep for nrf51822, great work!

beckmx avatar Sep 06 '23 16:09 beckmx

@beckmx systemPowerOff() will put the device into deep sleep while just calling delay() will put the device into "system on" sleep mode.

h2zero avatar Nov 16 '23 23:11 h2zero