I got an rpi pico the other day & it didn't take long to figure out there is no machine.rtc & so no obvious way to put the board into low current sleep between sensor readings for battery powered applications. So a couple of questions;
1) Does circuit python generally support low current sleep?
2) Could someone suggest a circuit python board (preferably with a small oled display) that allows low power sleep with wakeup after say 10 mins?
3) Is it possible to load an off-the-shelf flavour of circuit python onto an rpi pico via thonny? And, if so, would it enable low power sleep on that board?
sleep mode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- tannewt
- Posts: 3298
- Joined: Thu Oct 06, 2016 8:48 pm
Re: sleep mode
Yes, though it's relatively new and only released for the ESP32-S2. nRF, STM and RP2040 support is in the works. The Learn guide for it is here: https://learn.adafruit.com/deep-sleep-w ... cuitpythonplanB1 wrote:I got an rpi pico the other day & it didn't take long to figure out there is no machine.rtc & so no obvious way to put the board into low current sleep between sensor readings for battery powered applications. So a couple of questions;
1) Does circuit python generally support low current sleep?
The nRF has the best low power performance that I know of. The PR to add sleep support is here: https://github.com/adafruit/circuitpython/pull/4236planB1 wrote:2) Could someone suggest a circuit python board (preferably with a small oled display) that allows low power sleep with wakeup after say 10 mins?
I don't know of an OLED board but you can look through all supported boards here: https://circuitpython.org/downloads
I don't know how to do it via Thonny. Our install instructions are here: https://learn.adafruit.com/getting-star ... cuitpython Current versions don't support sleep on the RP2040 though. I expect it to be PR'd soon.planB1 wrote: 3) Is it possible to load an off-the-shelf flavour of circuit python onto an rpi pico via thonny? And, if so, would it enable low power sleep on that board?
- planB1
- Posts: 6
- Joined: Tue Mar 01, 2016 12:39 am
Re: sleep mode
tnx for the heads up. Can you define 'soon' re low current sleep support for pico?
- tannewt
- Posts: 3298
- Joined: Thu Oct 06, 2016 8:48 pm
Re: sleep mode
Not really. I believe Hierophect has it working but they haven't made a PR with it yet.planB1 wrote:tnx for the heads up. Can you define 'soon' re low current sleep support for pico?
- planB1
- Posts: 6
- Joined: Tue Mar 01, 2016 12:39 am
Re: sleep mode
OK. What's the preferred IDE for loading circuit python onto the various supported micros?
- danhalbert
- Posts: 4613
- Joined: Tue Aug 08, 2017 12:37 pm
Re: sleep mode
The Mu editor has a CircuitPython mode. It is designed for beginners and has an easy connection to the CircuitPython REPL.
See https://learn.adafruit.com/welcome-to-c ... -mu-editor
If you are interested in another IDE, see https://learn.adafruit.com/welcome-to-c ... iting-code for some considerations about which ones work well in terms of writing files to CIRCUITPY and which ones don't. We don't have strong recommendations: some of us use Atom, PyCharm, and VSCode, and some editors like Sublime, vim, or emcas.
See https://learn.adafruit.com/welcome-to-c ... -mu-editor
If you are interested in another IDE, see https://learn.adafruit.com/welcome-to-c ... iting-code for some considerations about which ones work well in terms of writing files to CIRCUITPY and which ones don't. We don't have strong recommendations: some of us use Atom, PyCharm, and VSCode, and some editors like Sublime, vim, or emcas.
Please be positive and constructive with your questions and comments.