mrjadkowski / SMARS-mini-XL

A small wheeled or tracked robot running on Circuit Python
18 stars 3 forks source link

APDS-9960 can't do gesture detection and proximity simultaneously #10

Closed mrjadkowski closed 3 years ago

mrjadkowski commented 3 years ago

Probably best to switch to the VCNL-4040 sensor since it's cheaper and still supports both light and proximity. The APDS-9960 works fine but gestures must be enabled and then the gesture proximity threshold set to 255 to inhibit any gesture detection.

mrjadkowski commented 3 years ago

Turns out you can just turn off gesture detection and it has the same effect.

mrjadkowski commented 3 years ago

Made some small changes to use VCNL-4040 and it works great. Solar charging branch is now using VCNL-4040 instead of the APDS sensor