Skip to content

A simple low-power library for the PY32F002A microcontroller. Uses py32duino Arduino core

Notifications You must be signed in to change notification settings

regimantas/PY32LowPower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PY32LowPower

A simple low-power library for the PY32F002A microcontroller. Uses py32duino Arduino core, at: https://github.com/py32duino/Arduino-PY32 Make deepSleep with Arduino posible in 10 cents PY32F002A microcontroller's :)

The power consumption drops to as low as 7µA. However, calling the analogWrite() function before entering deep sleep increases the sleep mode power consumption to 70µA, which is 10 times higher. To reduce power usage, you should call HAL_GPIO_DeInit(GPIOA, GPIO_PIN_All); after analogWrite(), and then reinitialize the pins from scratch, setting them as input, output, etc.

About

A simple low-power library for the PY32F002A microcontroller. Uses py32duino Arduino core

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages