Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zhshen
 
Posts: 2
Joined: Wed Nov 09, 2022 3:54 pm

Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post by zhshen »

Hi,

I've been trying to get the VL53L1X Time of Flight Distance Sensor working with an Arduino Uno exactly as shown in the tutorial (https://learn.adafruit.com/adafruit-vl53l1x/arduino). However, it seems that the line Wire.begin() in the simpletest sample code makes the entire program hang...does anyone know what's causing this and how to fix it? Thanks!
issue.png
issue.png (78.45 KiB) Viewed 103 times

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post by blnkjns »

If I compare to mine code, I only used different pins for IRQ and XSHUT. I used 12 and 13. No idea if that can be a solution. Did you try running it on another board, say some 32U4 based board?

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post by adafruit_support_bill »

The wire library will often hang if there is a marginal connection on the i2c bus. IF you post some photos showing all your soldering and connections, we can try to spot the problem.

User avatar
zhshen
 
Posts: 2
Joined: Wed Nov 09, 2022 3:54 pm

Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post by zhshen »

Here are some images of the circuit itself:
20221109_162333.jpg
20221109_162333.jpg (1011.42 KiB) Viewed 95 times
20221109_162342.jpg
20221109_162342.jpg (502.98 KiB) Viewed 95 times

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working

Post by adafruit_support_bill »

The soldering on your header needs a bit of work. The solder has not flowed well onto the solder pads. You need to heat the pad as well as the pin so that the solder will flow. A good joint should have a cross-section as in the diagram below.

This guide has some tips on identifying and fixing some common soldering problems:

https://learn.adafruit.com/adafruit-gui ... n-problems

Image

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”