• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 4.5k 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 Sep 5, 2023, 8:26 PM Sep 5, 2023, 6:42 PM

    @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 Sep 6, 2023, 7:05 AM Reply Quote 0
    • M Offline
      MMRIZE @Egnos
      last edited by Sep 6, 2023, 7:05 AM

      @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 Sep 6, 2023, 12:38 PM Reply Quote 0
      • E Offline
        Egnos @MMRIZE
        last edited by Sep 6, 2023, 12:38 PM

        @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 Sep 6, 2023, 1:37 PM Reply Quote 0
        • M Offline
          MMRIZE @Egnos
          last edited by Sep 6, 2023, 1:37 PM

          @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 Sep 6, 2023, 2:03 PM Reply Quote 0
          • E Offline
            Egnos @MMRIZE
            last edited by Sep 6, 2023, 2:03 PM

            @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

            A 1 Reply Last reply Sep 7, 2023, 12:25 AM Reply Quote 0
            • A Offline
              ankonaskiff17 @Egnos
              last edited by Sep 7, 2023, 12:25 AM

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

              E 1 Reply Last reply Sep 7, 2023, 7:36 AM Reply Quote 0
              • E Offline
                Egnos @ankonaskiff17
                last edited by Sep 7, 2023, 7:36 AM

                @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 A 2 Replies Last reply Sep 7, 2023, 7:45 AM Reply Quote 0
                • M Offline
                  MMRIZE @Egnos
                  last edited by MMRIZE Sep 7, 2023, 7:47 AM Sep 7, 2023, 7:45 AM

                  @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
                  • A Offline
                    ankonaskiff17 @Egnos
                    last edited by Sep 8, 2023, 7:01 PM

                    @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)

                    A 1 Reply Last reply Sep 8, 2023, 7:15 PM Reply Quote 0
                    • A Offline
                      ankonaskiff17 @ankonaskiff17
                      last edited by Sep 8, 2023, 7:15 PM

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

                      A 1 Reply Last reply Sep 8, 2023, 7:26 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        17/25
                        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