Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with deep sleep NRF51822 board #22

Open
MegaSegaDrive8 opened this issue Jun 25, 2023 · 5 comments
Open

Need help with deep sleep NRF51822 board #22

MegaSegaDrive8 opened this issue Jun 25, 2023 · 5 comments

Comments

@MegaSegaDrive8
Copy link

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?

@h2zero
Copy link
Owner

h2zero commented Jun 29, 2023

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?

@MegaSegaDrive8
Copy link
Author

MegaSegaDrive8 commented Jun 29, 2023

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?

@h2zero
Copy link
Owner

h2zero commented Jun 29, 2023

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.

@beckmx
Copy link

beckmx commented Sep 6, 2023

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!

@h2zero
Copy link
Owner

h2zero commented Nov 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants