Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

New VL53L0X not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

New VL53L0X not working

by erenfra on Sat Dec 10, 2016 10:57 pm

I Just received the new VL53L0X sensor and followed all the tutorial and I was not able to make it work. I checked the forum and still not working.
Let me know if there is a known issue with the last batch of the sensor.
I am using Arduino UNO.
Thanks, Renato.

erenfra
 
Posts: 1
Joined: Wed Jan 01, 2014 8:10 pm

Re: New VL53L0X not working

by franklin97355 on Sun Dec 11, 2016 12:42 am

Could you post large (less than 1meg), clear, detailed pictures of both sides of your board showing any soldering you have done and the connections to it? Also which code are you trying to run and does it compile and upload without errors?

franklin97355
 
Posts: 21582
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: New VL53L0X not working

by jn_austin on Tue Dec 13, 2016 4:38 pm

Same issue. Just received a board and removed the little tape cover and popped it onto a UNO board. I am using A4 for the SDA and A5 for the SCL lines. I am not using external pullup's as they were on the board. I am powering it via the 5V from the UNO board and yes I have a ground return!

The example says ==> WARNING: Category 'Sensor' in library Adafruit_VL53L0X is not valid. Setting to 'Uncategorized' while running it under revision 1.6.8 of the IDE.

For fun I downloaded and tried it under the 1.6.13 and see the same issue.

The serial monitor shows this: Reading a measurement... Distance (mm): 44035 (over and over never changes even with sensor depth changes.)

jn_austin
 
Posts: 19
Joined: Tue Nov 22, 2011 10:43 pm

Re: New VL53L0X not working

by jerryn on Tue Dec 13, 2016 4:48 pm

You may find some useful information in this discussion. I was able to get the library working with a few changes.
https://forums.adafruit.com/viewtopic.php?f=19&t=107418

Also, this library worked for me before I made changes to the Adafruit Library.
https://github.com/pololu/vl53l0x-arduino

As far as I can tell, the Warning you referred to is harmless.

Good Luck!

jerryn
 
Posts: 1299
Joined: Sat Sep 14, 2013 9:05 am

Re: New VL53L0X not working

by jn_austin on Tue Dec 13, 2016 5:59 pm

Found the issue. I thought I had proper solder techniques and it visually appeared to be fine but I had the SHDN pin LOW when it was left floating. I removed some of the solder and it's working now. I really only had a fillet of solder and I did not feel it was excessive (soldered hundreds of boards in the past). Could be a insufficient clearance land or poor solder mask.

jn_austin
 
Posts: 19
Joined: Tue Nov 22, 2011 10:43 pm

Re: New VL53L0X not working

by jarclan on Fri Dec 23, 2016 4:20 pm

Just received the VL53L0X, wired it up according to the tutorial and it worked the first time.

To fix the "WARNING: Category 'Sensor' in library Adafruit VL53L0X is not valid. Setting to 'Uncategorized'" message
open the library properties and change "category=Sensor" to "category=Sensors",

From the libaray spec:
category - if present, one of these: "Display", "Communication", "Signal Input/Output", "Sensors", "Device Control", "Timing", "Data Storage", "Data Processing", "Other"

jarclan
 
Posts: 1
Joined: Wed Jul 25, 2012 5:53 pm

Re: New VL53L0X not working

by jerryn on Fri Dec 23, 2016 5:21 pm

Ah! Mystery solved - Thanks for the fix and explanation!

jerryn
 
Posts: 1299
Joined: Sat Sep 14, 2013 9:05 am

Re: New VL53L0X not working

by HarpDude on Thu Jan 12, 2017 2:33 pm

Experienced some fatal compilation errors using the Adafruit VL53L0X library and the Feather M0 AdaLogger, but it compiled okay for the Arduino Uno. Switched to the Pololu library -- compiled successfully for the Feather without errors and is working properly.

HarpDude
 
Posts: 169
Joined: Mon Dec 07, 2015 2:52 am

Re: New VL53L0X not working

by jerryn on Thu Jan 12, 2017 2:37 pm

I do not think Adfruit has included the fix that I submitted for the M0 in the library yet.
see the discussion at the end of :
https://forums.adafruit.com/viewtopic.php?f=19&t=107418&start=30
Good luck

jerryn
 
Posts: 1299
Joined: Sat Sep 14, 2013 9:05 am

Re: New VL53L0X not working

by HarpDude on Thu Jan 12, 2017 2:41 pm

Thanks @jerryn!
Excellent technical and reverse-engineering work. Amazing.

HarpDude
 
Posts: 169
Joined: Mon Dec 07, 2015 2:52 am

Re: New VL53L0X not working

by HarpDude on Thu Jan 12, 2017 9:35 pm

@jerryn: Loaded your newest .cpp file and updated the library.properties category (Sensor -> Sensors). Worked like a champ on the Feather M0 AdaLogger. No compiler errors or warnings. Thanks again!

HarpDude
 
Posts: 169
Joined: Mon Dec 07, 2015 2:52 am

Re: New VL53L0X not working

by jerryn on Thu Jan 12, 2017 9:38 pm

Good to hear! I'm glad it worked for you as well! Good luck with your projects.

jerryn
 
Posts: 1299
Joined: Sat Sep 14, 2013 9:05 am

Re: New VL53L0X not working

by lowellcoder on Thu Jan 03, 2019 2:48 pm

I'm also having issue with my new vl53l0x and all I can get out of it when using arduino uno is

Y:⸮ ⸮⸮⸮⸮)⸮k⸮⸮D⸮⸮⸮⸮⸮<L⸮⸮k⸮⸮k⸮⸮I⸮⸮⸮⸮⸮<̉⸮ϙ⸮D⸮⸮⸮-ߘ⸮,⸮⸮,ٙ⸮-ۙ⸮k⸮⸮<M⸮⸮k⸮-⸮⸮D⸮⸮Yט⸮⸮)⸮-ۙ⸮<I⸮Y⸮ ⸮⸮⸮⸮D⸮⸮⸮⸮)⸮,⸮)⸮k⸮⸮⸮⸮⸮D⸮⸮⸮k⸮⸮-⸮⸮<̙⸮⸮Ǚ⸮,ٙ⸮<M⸮⸮<I⸮⸮<M⸮⸮⸮⸮⸮⸮⸮<̙⸮k⸮⸮⸮⸮⸮⸮⸮⸮-ۉ⸮-ۖ⸮⸮I⸮⸮ϙ⸮,ۙ⸮@⸮ ⸮,⸮)⸮,ۛ⸮I⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮<M⸮⸮-⸮⸮-⸮)⸮D⸮⸮⸮⸮⸮⸮-ۘ⸮<⸮ ⸮k⸮I⸮⸮⸮⸮⸮<L⸮⸮D⸮⸮<I)⸮⸮Ǜ⸮k)⸮,ۙ⸮Ϙ⸮<̙⸮Yי⸮I⸮⸮⸮k⸮⸮Yי⸮⸮k⸮⸮⸮⸮⸮k⸮⸮<̙⸮⸮ϙ⸮⸮⸮⸮⸮ϙ⸮<I⸮⸮⸮⸮⸮k⸮-ۙ⸮⸮⸮⸮<I⸮⸮י⸮⸮⸮-⸮⸮-⸮⸮<M ⸮⸮Ǚ⸮I⸮⸮,ۉ⸮ω⸮ϙ⸮,ٙ⸮⸮⸮⸮⸮D⸮⸮-ۘ⸮,⸮⸮I⸮⸮,⸮⸮⸮⸮⸮⸮I⸮⸮ω⸮⸮ϙ⸮,⸮ ⸮⸮⸮⸮⸮⸮⸮⸮<ٙ⸮<ٖ⸮k⸮⸮D⸮⸮,ٖ⸮⸮כ⸮ϙ⸮-ۙ⸮,ٙ⸮D⸮⸮⸮⸮⸮-ۙ⸮⸮⸮⸮⸮k⸮⸮I⸮⸮k⸮⸮Ϙ⸮I⸮⸮D⸮⸮⸮,ٙ⸮<I⸮⸮k⸮-ۙ⸮Ϙ⸮k⸮⸮⸮⸮⸮⸮⸮<⸮ ⸮⸮⸮⸮⸮⸮D⸮)⸮,⸮⸮⸮⸮D⸮⸮⸮⸮I⸮-⸮ ⸮⸮ז⸮D⸮⸮⸮⸮)⸮⸮lj⸮⸮⸮⸮⸮⸮D⸮⸮⸮ϖ⸮⸮⸮⸮ǖ⸮-ۉ⸮@⸮⸮⸮k⸮⸮I⸮⸮D⸮⸮⸮k⸮⸮⸮⸮-ۉ⸮⸮I⸮⸮<ٛ⸮⸮lj⸮⸮⸮⸮⸮D⸮⸮⸮<̙⸮I⸮⸮<I⸮⸮ϛ⸮⸮ƙ⸮<⸮⸮,ۙ⸮D⸮⸮⸮,⸮⸮⸮⸮⸮k⸮<I ⸮⸮⸮⸮⸮ ⸮⸮⸮⸮k⸮D⸮)⸮<٘⸮⸮⸮D⸮ ⸮⸮k⸮-⸮)⸮⸮⸮⸮-⸮⸮⸮⸮⸮⸮-⸮⸮⸮⸮)⸮⸮lj⸮⸮⸮<ٗ⸮D⸮⸮⸮@⸮ ⸮-ۉ⸮⸮⸮<I⸮⸮⸮Ǚ⸮ϖ⸮<I⸮⸮<̓⸮⸮k⸮⸮⸮⸮⸮ז⸮⸮⸮k⸮⸮I⸮⸮⸮ϛ⸮I⸮⸮D⸮⸮⸮⸮Ǚ⸮ϙ⸮⸮Ǚ⸮<I⸮⸮⸮י⸮<M⸮⸮I⸮⸮⸮⸮k⸮⸮<M⸮-ۙ⸮Y⸮⸮<M⸮⸮D⸮⸮⸮⸮I⸮⸮k⸮⸮⸮)⸮Y⸮⸮-⸮ ⸮⸮⸮⸮-⸮⸮<̓⸮⸮⸮⸮⸮)⸮⸮ǖ⸮D⸮⸮<̗⸮-ۙ⸮@⸮ ⸮⸮k⸮⸮⸮Ǚ⸮ϖ⸮-ۙ⸮<̛⸮D⸮⸮-ۙ⸮,ۙ⸮⸮⸮k⸮⸮D⸮⸮⸮,ۙ⸮I⸮⸮<ٙ⸮k⸮⸮<M

I am very confused what I did wrong because I set it up like the tutorial told me to and this is all I get.

lowellcoder
 
Posts: 7
Joined: Wed Jan 02, 2019 6:17 pm

Re: New VL53L0X not working

by franklin97355 on Thu Jan 03, 2019 4:24 pm

Make sure the rate supplied in serial.begin is the same as what you are using in the serial monitor.

franklin97355
 
Posts: 21582
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: New VL53L0X not working

by lowellcoder on Thu Jan 03, 2019 8:17 pm

Thank you so much!!!!

you fixed it!!!

lowellcoder
 
Posts: 7
Joined: Wed Jan 02, 2019 6:17 pm

Please be positive and constructive with your questions and comments.