thanks for the reply.
noted about leaving the 3.3v alone.
the problem persists, but I found another post on the forum from a month ago with the same essential question.
Why does the serial print just stop?viewtopic.php?f=25&t=24263
Postby XSlayer » Sun Nov 20, 2011 1:25 am
"I changed the amount of power going to the irled and that seemed to help.
write8(VCNL4000_IRLED, 10); // set to 20 * 10mA = 200mA
It was originally set to 20 but after i changed it to 10 it seemed to fix the problem. Just figured i would post that in case someone has the same issue as me. There may still be something else wrong but it is seems to work ok. Kinda sucks though id prolly get a little more distance out of it if i could run full power."
Tried Xslayers advice and it helped, setting it to 100mA, but I had to lower it even further to 70mA to get it to continue with the serial print for mulitple minutes at a time.
I don't know what if anything is bad about this fix. Any ideas or concerns.
the range of detection is pretty small ...1 inch from the sensor and less... anything beyond that only the ambient light value changes much.
I think the sample code should probably be changed if this is a good fix for others as it doesn't seem to be a problem with loose connections (triple checked :) )
Problems withstanding... thanks for selling great things.
and helping to get them working.