sleep mode

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
planB1
 
Posts: 6
Joined: Tue Mar 01, 2016 12:39 am

sleep mode

Post by planB1 »

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?

User avatar
tannewt
 
Posts: 3298
Joined: Thu Oct 06, 2016 8:48 pm

Re: sleep mode

Post by tannewt »

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.

User avatar
planB1
 
Posts: 6
Joined: Tue Mar 01, 2016 12:39 am

Re: sleep mode

Post by planB1 »

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

User avatar
tannewt
 
Posts: 3298
Joined: Thu Oct 06, 2016 8:48 pm

Re: sleep mode

Post by tannewt »

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.

User avatar
planB1
 
Posts: 6
Joined: Tue Mar 01, 2016 12:39 am

Re: sleep mode

Post by planB1 »

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

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: sleep mode

Post by danhalbert »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”