Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

sleep mode
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

sleep mode

by planB1 on Mon May 03, 2021 9:31 pm

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?

planB1
 
Posts: 5
Joined: Tue Mar 01, 2016 12:39 am

Re: sleep mode

by tannewt on Tue May 04, 2021 1:53 pm

planB1 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?


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 ... cuitpython

planB1 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?


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/4236

I don't know of an OLED board but you can look through all supported boards here: https://circuitpython.org/downloads

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?


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.

tannewt
 
Posts: 2385
Joined: Thu Oct 06, 2016 8:48 pm

Re: sleep mode

by planB1 on Tue May 04, 2021 8:13 pm

tnx for the heads up. Can you define 'soon' re low current sleep support for pico?

planB1
 
Posts: 5
Joined: Tue Mar 01, 2016 12:39 am

Re: sleep mode

by tannewt on Wed May 05, 2021 11:31 am

planB1 wrote:tnx for the heads up. Can you define 'soon' re low current sleep support for pico?


Not really. I believe Hierophect has it working but they haven't made a PR with it yet.

tannewt
 
Posts: 2385
Joined: Thu Oct 06, 2016 8:48 pm

Re: sleep mode

by planB1 on Wed May 05, 2021 7:44 pm

OK. What's the preferred IDE for loading circuit python onto the various supported micros?

planB1
 
Posts: 5
Joined: Tue Mar 01, 2016 12:39 am

Re: sleep mode

by danhalbert on Wed May 05, 2021 7:50 pm

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.

danhalbert
 
Posts: 2376
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.