Read the statement by Michael Teeuw here.
MMM-GroveGestures / Python script is terminated
-
@Egnos
By spec, PAJ7620’s MAX i2c speed is 400Kbit/s (400,000) But sometimes Raspberry PI i2c cannot handle fast devices.Have you tried testing the sensor?
cd ~/MagicMirror/modules/MMM-GroveGestures/py python gesture_print.pyAnd there could be other possible causes;
- Pins are not stably connected
- Too long cabling, > 30cm. The signal would be weaker or noisy.
- I2C frequency is still too high. Set slower (lesser number than your trials)
- I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
-
@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.
-
@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?)
-
@MMRIZE Yes, from the GPIO to the sensor there will be about 40/45 cm…
-
@Egnos
40~45cm seems somewhat too long. Could you build it shorter? or use a lower frequency than usual case.
Ref. these; -
@MMRIZE The path of the sensor cables (Yellow, red, white and black) is this:
Maybe I could shorten the wires a bit…
Thanks for the links.
-
@Egnos Maybe Sparkfun Midpoint and Endpoint to give you ample length. They tout over 100’ with those devices.
-
@ankonaskiff17 said in MMM-GroveGestures / Python script is terminated:
Endpoint
Hi @ankonaskiff17, wich one of these?
https://www.sparkfun.com/categories/304?page=1 -
@Egnos
There are several “I2C Extenders” (Or “Active Terminator”)I haven’t tried this kind of thing, but it is worth researching.
-
@Egnos You want what is called a Midpoint which is

Also need an Endpoint which is this
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
 -
@ankonaskiff17 Here is screenshot of BME688 0x77

It is connected to one of my Endpoints. -
-
Hi there.
I made the decision to remove the monitor from the wall to fix the problem on the gesture sensor Paj7620 (is not easy for me remove the monitor from the wall…:face_with_steam_from_nose: ).Now I need to choose the right “I2C Extender” for my installation, in particular I have to cut the cable that connects the gesture sensor with the RPI and connect the “I2C Extender” in the middle in order to increase the signal intensity and therefore the range.
I would share with you what I selected:
-
https://futuranet.it/prodotto/breakout-board-i2c-extender/ (I have a doubt about the 12 VdC…)
-
https://store.ncd.io/product/i2c-extender-cable-adapter-cable-joiner/
-
https://www.adafruit.com/product/4756 (i have a doubt if this extender I can put it in the middle of the line…)
Could you help me?
Thanks.
-
-
Can someone help me?
Many thanks
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


