tomjorquera / pico-micropython-lowpower-workaround

Workaround for low power support in micropython for the Raspberry pico
GNU Lesser General Public License v3.0
58 stars 12 forks source link

Hardware Requirements #4

Closed tjonesrobotics closed 3 years ago

tjonesrobotics commented 3 years ago

I've run the code, and I'm able to get into the dormant mode. However, my pico doesn't wake up on the GPIO signal.

I believe this is because I'm not using an external oscillator, which seems to be required with the C libraries for going dormant. Is an external oscillator required with your library? And if it is, could that be added to the Read_Me?

tomjorquera commented 3 years ago

Hi @tjonesrobotics

I tested my workaround on two of my "vanilla" pico, and it worked without an external oscillator. However, like I said in the readme, this is really hacked together , so you may definitely have hit a snag.

That says, a few things:

tjonesrobotics commented 3 years ago

I am using the base pico, no variants. The connections are all good, too.

I had been powering it from USB from my laptop. At your suggestion, I switched the power to an external battery, and the pins through the V_SYS, and the GPIO signal started waking up the processor. It's interesting that the power source would cause a difference. It may be something related to the detection of which power source is being used, since GPIO24 can provide that data.

For my application, I put the dormant_until_pins() command inside an "if" statement to check whether it's being powered by USB or battery. Thanks!