Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 11 months ago.
C program for Proximity detection using APDS9960
/media/uploads/Poornima55/gesture_prog1.c Hi,
We are using APDS9960 for proxmity detection.We are setting the Enable register(0x80), Proximity threshold and offeset registers . and then reading from the Proximity data register (0x9C). but we are not getting any variation in the proximity result.
0x9C always gives us the same result. either 96 or 5 or 0.
We are making mistake in configuration settings. Can anyone please look at our codes and suggest any changes or improvements so that we will be able to detect proximity?
Thank you in advance.
Regards, Poornima/media/uploads/Poornima55/gesture_prog2.c
That's clearly not mbed code and you haven't mentioned what platform you're running on. You may have more luck by 1) telling people which processor / OS you are using and 2) posting on a suitable forum for the platform you are using. Including links to the datasheets for the parts you're using is also a good plan, people are more likely to help if you give them the information they need rather than expecting them to dig it out.
posted by Andy A 14 Nov 2017