python-apds9960 icon indicating copy to clipboard operation
python-apds9960 copied to clipboard

Gesture issue on rpi

Open vash3d opened this issue 6 years ago • 9 comments

Hi, I'm trying your library on a rpi3 b+ The proximity example works as expected but I've some issue with the gesture one.

If I use your script as is, I get INTERRUPT printed indefinitely and gesture are not recognized. If I remove the interrupt part of the code the script start and wait but gesture are still not recognized

I've setup the sensor as per your instruction in the Readme.

Any hint? Thank you

vash3d avatar Feb 09 '19 02:02 vash3d

UPDATE: Not setting the baud rate to 400KHz in config.txt resolve the indefinitely INTERRUPT printing issue. But gesture still are not recognized.

I've tried to change the value of apds.setProximityIntLowThreshold(50) but it has no effect.

vash3d avatar Feb 09 '19 10:02 vash3d

I'm use this library on several RPi 3B (revision a02082) using apds-gesture-ui.

liske avatar Apr 14 '19 22:04 liske

UPDATE: Not setting the baud rate to 400KHz in config.txt resolve the indefinitely INTERRUPT printing issue. But gesture still are not recognized.

I've tried to change the value of apds.setProximityIntLowThreshold(50) but it has no effect.

I have the same issue, did you get anywhere? I have had to resort to the adafruit libraries https://learn.adafruit.com/adafruit-apds9960-breakout/circuitpython but only gives me 4 gestures. I would really like to read the raw data

jimmyeao avatar May 29 '19 10:05 jimmyeao

As @vash3d and @jimmyeao I have the same issue and I have tested on rpi3 b+, rpi3 a+ and rpi3 b. Are any of you got any futher?

poulsp avatar Sep 11 '20 13:09 poulsp

I haven't retested, I am still using the adafruit library, but the range and accuracy isnt great, so Im looking at a microwave based sensor now.

jimmyeao avatar Sep 11 '20 15:09 jimmyeao

for the cheap sensors try adding, apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA) apds.setGestureGain(APDS9960_GGAIN_2X) works for me. I think there are some power issues with them

P4LIL avatar Oct 24 '20 15:10 P4LIL

对于便宜的传感器尝试添加, 对我有用。我认为它们存在一些电源问题apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA)``apds.setGestureGain(APDS9960_GGAIN_2X)

It works for me

lijutsang avatar May 06 '22 06:05 lijutsang

apds.setProximityIntLowThreshold(0) apds.setProximityIntHighThreshold(200) apds.setGestureEnterThresh(0) apds.setGestureExitThresh(200) apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA) apds.setGestureGain(APDS9960_GGAIN_2X) apds.enableGestureSensor()

lijutsang avatar May 06 '22 07:05 lijutsang

对于便宜的传感器,尝试添加, 为我工作。我认为它们存在一些电源问题apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA)``apds.setGestureGain(APDS9960_GGAIN_2X)

thanks

lijutsang avatar Sep 27 '22 08:09 lijutsang