QTPy enabling sleep mode

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ken500
 
Posts: 5
Joined: Fri Sep 24, 2021 3:05 pm

QTPy enabling sleep mode

Post by ken500 »

I need help in how to put the QTPy into the sleep modes, I have not found any guide or help on how to do this. I have watched the video many times where you put the device into two sleep modes and measured the current, but I cannot find out how you did it. I am working on an IOT device where the QTPy is the main processor on a transmitter and it is doing a good job but the battery runs down while the device is not active. I need to sleep it when it is not detecting a problem. We are also using the pico boards as part of the system and can sleep it when it is not in use but the QTPy is different. Can you give me some guidance on this feature?

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: QTPy enabling sleep mode

Post by dastels »

Which QtPy amd which programming language?

Dave

User avatar
ken500
 
Posts: 5
Joined: Fri Sep 24, 2021 3:05 pm

Re: QTPy enabling sleep mode

Post by ken500 »

nguage is Micro Python

User avatar
ken500
 
Posts: 5
Joined: Fri Sep 24, 2021 3:05 pm

Re: QTPy enabling sleep mode

Post by ken500 »

sorry the QTPy is RP2040 and the language is Micro Python

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: QTPy enabling sleep mode

Post by dastels »

I found this https://ghubcoder.github.io/posts/deep- ... cropython/ which might help. CircuitPython has builtin sleep support. See this: https://learn.adafruit.com/deep-sleep-w ... cuitpython.

Dave

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

Return to “Microcontrollers”