APDS-9960 sensor driver problems

The various drivers for the APDS-9960 sensor (Arduino, Sparkfun, Adafruit) all have various problems. I read a post that this is a fairly old device and the drivers were written for AVR boards.

I am using a SAMD21 board and many of the functions in the driver produce no result. For example there are functions for configuring the LED (power, boost) for proximity mode. These functions do not seem to work. The gain control function doesn't seem to work either. I've double-checked the hardware and its configured correctly - for example to run at higher power for the LED the PS jumper is to be unsoldered and an additional power source is to the UL pin.

Also intermittently the sensing interrupts don't seem to work.

Do you have any suggestions for debugging this short of digging into the source code? I've scoured the datasheet and it appears to fundamentally set up correct. Basic function work - except for the above issue with interrupts.

Thanks

Can you provide links to everything and tell what problems there are.

Manufacturer's page: https://www.broadcom.com/products/optical-sensors/integrated-ambient-light-and-proximity-sensors/apds-9960.
With datasheet (at Sparkfun).

Adafruit library: https://github.com/adafruit/Adafruit_APDS9960.

Sparkfun library: https://github.com/sparkfun/APDS-9960_RGB_and_Gesture_Sensor.

What is not working ?

Did you run a I2C Scanner sketch to be sure that the device is found on the I2C bus ?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.