more functions on APDS-9960 at the same time

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
duskohu
 
Posts: 5
Joined: Tue Mar 14, 2023 3:55 pm

more functions on APDS-9960 at the same time

Post by duskohu »

Hi, can you advise me how to use the APDS-9960 sensor as follows:

collect proximity data and take an action at a specific value
ambient light and color measurement
listen for gestures
all at the same time

I use this lib for arduino:
https://github.com/adafruit/Adafruit_APDS9960

Thx for repply.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: more functions on APDS-9960 at the same time

Post by mikeysklar »

This sensor has a complete guide and three sets of example code for color, gesture and proximity. That should be plenty to get you going.

User avatar
duskohu
 
Posts: 5
Joined: Tue Mar 14, 2023 3:55 pm

Re: more functions on APDS-9960 at the same time

Post by duskohu »

Thx, for reply,
Yes, but if I use the examples all at once, it doesn't work.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: more functions on APDS-9960 at the same time

Post by mikeysklar »

Have you run them each independently successfully?

Go ahead and post your combined code attempt.

User avatar
duskohu
 
Posts: 5
Joined: Tue Mar 14, 2023 3:55 pm

Re: more functions on APDS-9960 at the same time

Post by duskohu »

now I chnged arduino uno to arduino nano every.
first problem: example
https://github.com/adafruit/Adafruit_AP ... sensor.ino
failed to initialize device! Please check your wiring.

on arduino uno work.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: more functions on APDS-9960 at the same time

Post by mikeysklar »

Go ahead and post a photo of your wiring. Probably a pin change.

User avatar
duskohu
 
Posts: 5
Joined: Tue Mar 14, 2023 3:55 pm

Re: more functions on APDS-9960 at the same time

Post by duskohu »

I have connections:
Arduino nano every > APDS-9960
GND > GND
3.3V > VCC
SDA(D18) > SDA
SCL(D19) > SCL
D3 > INT

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: more functions on APDS-9960 at the same time

Post by mikeysklar »

The pins you are using sound right. I just need to see the soldering quality, cable lengths and whatever wildcard factors are at play with a photo and code you are uploading.

User avatar
duskohu
 
Posts: 5
Joined: Tue Mar 14, 2023 3:55 pm

Re: more functions on APDS-9960 at the same time

Post by duskohu »

code: https://BANNED.com/XZBGV6Uq
When I connct another sensor for example MPR121 its work
images in Attachment
Attachments
1.jpg
1.jpg (660.87 KiB) Viewed 57 times
2.jpg
2.jpg (814.81 KiB) Viewed 57 times

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: more functions on APDS-9960 at the same time

Post by mikeysklar »

This is not an Adafruit APDS-9960 sensor. You will need to seek support from the vendor.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”