Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Random proximity values #7

Closed
hanpal opened this issue May 29, 2017 · 11 comments
Closed

Random proximity values #7

hanpal opened this issue May 29, 2017 · 11 comments

Comments

@hanpal
Copy link

hanpal commented May 29, 2017

I'm getting valid ch0 and ch1 values but proximity looks like random values between 350 and 450, no connection at all to movements in front of the sensor.

Also, from the quick start:

"Select File -> Examples -> APDS9930 -> GestureTest"

There is no such example, that's for 9960 only?

@hanpal
Copy link
Author

hanpal commented May 29, 2017

Tried various PPULSE settings. Same random pattern, just different levels.

@depau
Copy link
Owner

depau commented May 29, 2017

The proximity sensor values are unreliable, which is why mobile phones (which use this sensor or similar ones) often give close/far readings only for proximity.

This sensor model does not provide gesture recognition, the 9960, not supported by this library, does.

@hanpal
Copy link
Author

hanpal commented May 30, 2017

  1. I couldn't even use it for close/far since values are "random".

  2. I suggest that you remove the incorrect information on your main page here regarding ""Select File -> Examples -> APDS9930 -> GestureTest", there is no such example using your library.

@depau
Copy link
Owner

depau commented May 30, 2017

@hanpal I will as soon as I have time

@drsabe86
Copy link

drsabe86 commented Apr 20, 2018

maybe my awnser comes in abit late but i used the 9930 before, and there i had the same issue that proximity is random.
CHECK YOUR BORD! i got 3 purple CMJCU boards and all had an shematic error, the ir led does not get any current! thats why ambient light works but Proximity not!

@depau
Copy link
Owner

depau commented Apr 21, 2018

If I remember correctly on some board there's a pin to power the LED, you've just got to power it properly (i.e. make sure you put a resistor if it doesn't have any)

@mrx23dot
Copy link

Could someone tell me what to fix on the board? Proximity works perfectly on 9960 board, but on 9930s there is no IR output at all. Cheers

@drsabe86
Copy link

drsabe86 commented Jan 23, 2019 via email

@Necron79
Copy link

Necron79 commented Feb 18, 2019

Connect the VL pin (far left) to the 3.3v power i.e. same as pin VCC (3rd from left) and sensor works for me. Otherwise I think you can solder across the 2 pads on the back of the board but I've not tried that.

@TheSnyper
Copy link

Can confirm Necron79's fix works.

@mrx23dot
Copy link

Worked for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants