🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    WAKE UP FROM DEEP SLEEP USING ACCELEROMETER

    Atom
    2
    2
    3.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chandan
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        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

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post