Two codes that run on an arduino MRFOX 1200 with a Cortex M0. They execute an operating routine and then go to sleep until the user push a button to wake it up.
Video example : 10 blinks and deep sleep with interruption - example
The schematic :
This code is a test of the library ZeroPowerManager
This one claim to archieve 6 uA sleep current tested on the Feather M0 board family. It also enable to control the clock frequecy.
Measured Adafruit Feather M0 WiFi with:
- LiPo removed, LDO removed
- Powered from separate 3.3V supply
- All ports + spi disabled
- USB off
48 MHz: 7.5 mA
8 MHz: 1.5 mA
32 KHz: 200 uA
Sleep : 6 uA
With this code, I've archieved 50μA of power consumption according to the above schematic. The 2AA power supply deliver around 3.3v voltage.
Find "wiring.c" on macos :
- Open terminal
- type :
cd ~/Library/Arduino15/packages
- type :
open .
to open finder here and find wiring.c (generally it's on "hardware/samd/version/cores/arduino")