mristau / arduino_nrf5x_lowpower Goto Github PK
View Code? Open in Web Editor NEWArduino Power Management Library for nRF5x
Arduino Power Management Library for nRF5x
I can put the Adafruit nRF52840 feather board into power off mode just fine, but I'm not able to wake from an interrupt. In my case it's a button pulled low, and I'm trying to detect a RISING interrupt to wake. This code worked just fine on the Adafruit nRF52832 but I think something has changed and I'm having trouble finding any other way to do this in Arduino IDE.
nRF5x_lowPower.enableWakeupByInterrupt(11, RISING); // not working, doesn't wake
nRF5x_lowPower.powerMode(POWER_MODE_OFF); // working
Any help or hints is appreciated.
How do I increase or adjust the wake up interval?
Thanks for creating this library, highly appreciated. Can you please add two example sketches, e.g.,
One that measures something based on a timer; e.g., reports the temperature from the sensor embedded inside the nRF 5 via BLE, and then goes to sleep for x minutes, then have it repeat
One that sleeps until it is triggered by an interrupt; e.g., a PIR motion sensor attached to the nRF5, and then sends the information "motion detected" via BLE
Also, maybe you can add some documentation on the power modes and what is possible in which power mode. What is the most power efficient way to send the temperature every x minutes?
Keep up the great work!
I just installed it last night and took the example as is. When I press the button (as in giving it an interrupt), it does not wake up the system at all. But the interrupt seems to work just fine in POWER_MODE_LOW_POWER and POWER_MODE_CONSTANT_LATENCY.
I got the latest nRF5 Core 0.6.0, what version do you think I should install to make POWER_MODE_OFF to work? Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.