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.
more functions on APDS-9960 at the same time
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: more functions on APDS-9960 at the same time
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.
- duskohu
- Posts: 5
- Joined: Tue Mar 14, 2023 3:55 pm
Re: more functions on APDS-9960 at the same time
Thx, for reply,
Yes, but if I use the examples all at once, it doesn't work.
Yes, but if I use the examples all at once, it doesn't work.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: more functions on APDS-9960 at the same time
Have you run them each independently successfully?
Go ahead and post your combined code attempt.
Go ahead and post your combined code attempt.
- duskohu
- Posts: 5
- Joined: Tue Mar 14, 2023 3:55 pm
Re: more functions on APDS-9960 at the same time
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.
first problem: example
https://github.com/adafruit/Adafruit_AP ... sensor.ino
failed to initialize device! Please check your wiring.
on arduino uno work.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: more functions on APDS-9960 at the same time
Go ahead and post a photo of your wiring. Probably a pin change.
- duskohu
- Posts: 5
- Joined: Tue Mar 14, 2023 3:55 pm
Re: more functions on APDS-9960 at the same time
I have connections:
Arduino nano every > APDS-9960
GND > GND
3.3V > VCC
SDA(D18) > SDA
SCL(D19) > SCL
D3 > INT
Arduino nano every > APDS-9960
GND > GND
3.3V > VCC
SDA(D18) > SDA
SCL(D19) > SCL
D3 > INT
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: more functions on APDS-9960 at the same time
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.
- duskohu
- Posts: 5
- Joined: Tue Mar 14, 2023 3:55 pm
Re: more functions on APDS-9960 at the same time
code: https://BANNED.com/XZBGV6Uq
When I connct another sensor for example MPR121 its work
images in Attachment
When I connct another sensor for example MPR121 its work
images in Attachment
- Attachments
-
- 1.jpg (660.87 KiB) Viewed 57 times
-
- 2.jpg (814.81 KiB) Viewed 57 times
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: more functions on APDS-9960 at the same time
This is not an Adafruit APDS-9960 sensor. You will need to seek support from the vendor.
Please be positive and constructive with your questions and comments.