Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pytrack2 wakeup from acceleration interrupt

    Scheduled Pinned Locked Moved Expansion Board
    pytrack2wakeupaccelerationlis2hh12
    1 Posts 1 Posters 23 Views 1 Watching
    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.
    • M Offline
      michris8400
      last edited by

      Hi,
      I use Pytrack2 (v16) and a Lopy module (1.20.2.r4) & pycoproc2.
      I customized the LIS2HH12 module to only generate an interrupt when the X axis goes over a certain threshold for a certain time. This works well when the Lopy is powered on.
      The next thing I want to do is to power down the module via

      pycoproc.go_to_sleep(pycom_module_off=True, accelerometer_off=False, wake_interrupt=True)
      

      And let the interrupt from the LISHH12 wakeup the module.
      The suggestions from here are not good enough.

      pycoproc.go_to_sleep(pycom_module_off=False, accelerometer_off=False, wake_interrupt=True)
      machine.deepsleep(sleep_time_s * 1000)
      

      I need full power down.
      So my question is is there a piece of the schematic available where I can see how the interrupt of the LIS2HH12 is connected to the PIC ?
      Is there example code available to program the PIC this way ?

      Thanks
      Regards,
      Christophe

      1 Reply Last reply Reply Quote 1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom