MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-GroveGestures / Python script is terminated

    Scheduled Pinned Locked Moved Solved Troubleshooting
    25 Posts 5 Posters 6.2k Views 5 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.
    • E Offline
      Egnos @MMRIZE
      last edited by Egnos

      @MMRIZE said in MMM-GroveGestures / Python script is terminated:

      Have you tried testing the sensor?

      Yes, and also when appear [GESTURE] Python script is terminated. It will restart soon. the gesture works well.

      @MMRIZE said in MMM-GroveGestures / Python script is terminated:

      Pins are not stably connected

      I exclude it.

      @MMRIZE said in MMM-GroveGestures / Python script is terminated:

      Too long cabling, > 30cm. The signal would be weaker or noisy.

      It will surely be longer, 40 or 50 cm

      @MMRIZE said in MMM-GroveGestures / Python script is terminated:

      I2C frequency is still too high. Set slower (lesser number than your trials)

      I tried all speeds, maybe with 32000 seems better.
      From this value (32000) do I go down or up?

      @MMRIZE said in MMM-GroveGestures / Python script is terminated:

      I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
      I exclude it. I have only Paj7620 and PIR sensor on GPIO…

      I’m sure with the old version v2.23 of MM I always had the error messages but the gesture sensor always worked, with the new version v2.24.0 of MM sometimes the sensor stops working and I have to redo this procedure
      https://github.com/MMRIZE/MMM-GroveGestures#install-hw

      @MMRIZE Thanks for your precious advises.

      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @Egnos
        last edited by

        @Egnos said in MMM-GroveGestures / Python script is terminated:

        Too long cabling, > 30cm. The signal would be weaker or noisy.

        It will surely be longer, 40 or 50 cm

        Hopefully not, over 30cm long cabling could be the issue. (You wrote 40~50cm, is it right?)

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          Egnos @MMRIZE
          last edited by

          @MMRIZE Yes, from the GPIO to the sensor there will be about 40/45 cm…

          My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @Egnos
            last edited by

            @Egnos
            40~45cm seems somewhat too long. Could you build it shorter? or use a lower frequency than usual case.
            Ref. these;

            • https://learn.adafruit.com/working-with-i2c-devices/cable-length
            • https://www.telos.info/faq/i2c-cables-the-shorter-the-better/
            E 1 Reply Last reply Reply Quote 0
            • E Offline
              Egnos @MMRIZE
              last edited by

              @MMRIZE The path of the sensor cables (Yellow, red, white and black) is this:

              IMG20221005172951

              Maybe I could shorten the wires a bit…

              Thanks for the links.

              My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

              ankonaskiff17A 1 Reply Last reply Reply Quote 0
              • ankonaskiff17A Offline
                ankonaskiff17 @Egnos
                last edited by

                @Egnos Maybe Sparkfun Midpoint and Endpoint to give you ample length. They tout over 100’ with those devices.

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  Egnos @ankonaskiff17
                  last edited by

                  @ankonaskiff17 said in MMM-GroveGestures / Python script is terminated:

                  Endpoint

                  Hi @ankonaskiff17, wich one of these?
                  https://www.sparkfun.com/categories/304?page=1

                  My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                  M ankonaskiff17A 2 Replies Last reply Reply Quote 0
                  • M Offline
                    MMRIZE @Egnos
                    last edited by MMRIZE

                    @Egnos
                    There are several “I2C Extenders” (Or “Active Terminator”)

                    I haven’t tried this kind of thing, but it is worth researching.

                    • https://sandboxelectronics.com/?product=active-i2c-long-cable-extender-p82b715-module
                    • https://www.adafruit.com/product/4756
                    • https://www.sparkfun.com/products/16988 (It needs QWIIC environment)
                    1 Reply Last reply Reply Quote 0
                    • ankonaskiff17A Offline
                      ankonaskiff17 @Egnos
                      last edited by

                      @Egnos You want what is called a Midpoint which is Midpoint.jpg
                      Also need an Endpoint which is this Endpoint.jpg

                      I whipped this together in double quick time so pardon the lack of tidiness.
                      For reference sake I focused on a couple of BME688’s to give you sort of a benchmark.
                      First is screenshot showing both BME’s running. Had to do jumper on one to get a second address 0x76 and 0x77
                      ![ScreenShot2.jpg](Input file contains unsupported image format)

                      ankonaskiff17A 1 Reply Last reply Reply Quote 0
                      • ankonaskiff17A Offline
                        ankonaskiff17 @ankonaskiff17
                        last edited by

                        @ankonaskiff17 Here is screenshot of BME688 0x77BME6880x77.jpg
                        It is connected to one of my Endpoints.

                        ankonaskiff17A 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy