I’m pretty new to the hardware part of technology, been programming a while. Now I’ve got this sparkfun VCNL4000 connected (or trying to) to my spark core. (https://www.sparkfun.com/products/10901)
I’ve hooked it up as follows at the moment:
Where the vcnl ports are as follows:
1 = IR+
4 = SDA
5 = SCL
6 = GND
7 = 3.3v
I run the example code linked to from the spark website but it keeps hanging up on
The value returned is always 0.
My current code is currently this: http://pastebin.com/q5GQXpn8
The only other thing I can think of is that the 3.3v supply for the ir+ isn’t enough, but the sparkfun website suggests anything between 2.5-5.5v or am I mis interpreting this? Or is that possibly not the problem at all.
As I said, I’m kind of lost of what it can be. Any ideas?