Xiao Sense Accelerometer Examples and Low Power

Hi there,

Well there add say’s this “Have you ever wanted your project to just “hibernate” until someone picks it up or moves it? It’s a great strategy for dramatically extending the battery life of a widget that doesn’t need to be active all the time.”

add the Mosfet and use the motion portion of the demo code in the above example. Works the same way if you set the threshold very low. In testing I couldn’t even touch the Xiao before the buzzer would sound with those lower settings in the comments. If you add the TAP sleep code to that base code, BOBS your uncle and it will be the same as the sparkfun thing.
HTH
GL :slight_smile: PJ
:v: