WAKE UP FROM DEEP SLEEP USING ACCELEROMETER



  • I want to make pedometer using m5atom, i want to wake up the module as soon as any movement gets detected by MPU6886 and blink different colors at rgb led. If there is any demo code on how to achieve this in arduino ide? That would be very helpful. thanks in advance.



  • Hello @Chandan

    to wake ESP32 from deep sleep when movement is detected by MPU6886 requires a connection between MPU6886 interrupt line output to any of the ESP32 GPIOs. Unfortunately this connection is missing in M5AtomMatrix according to the schematic.

    The only two M5Stack devices I know of with a built-in MPU6886 which also have the MPU6886 interrupt line connected to GPIO35 by default are M5StickC and M5StickCPlus. For reference: WakeOnMotion (WOM) example for M5StickC.

    Thanks
    Felix