Gesture issue on rpi
Opened this issue · 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
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'm use this library on several RPi 3B (revision a02082) using apds-gesture-ui.
UPDATE:
Not setting the baud rate to 400KHz in config.txt resolve the indefinitelyINTERRUPT
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
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.
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
对于便宜的传感器尝试添加, 对我有用。我认为它们存在一些电源问题
apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA)``apds.setGestureGain(APDS9960_GGAIN_2X)
It works for me
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()
对于便宜的传感器,尝试添加, 为我工作。我认为它们存在一些电源问题
apds.setGestureLEDDrive(APDS9960_LED_DRIVE_50MA)``apds.setGestureGain(APDS9960_GGAIN_2X)
thanks