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!
Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- zhshen
- Posts: 2
- Joined: Wed Nov 09, 2022 3:54 pm
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working
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?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working
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.
- zhshen
- Posts: 2
- Joined: Wed Nov 09, 2022 3:54 pm
Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working
Here are some images of the circuit itself:
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Arduino Uno with Adafruit VL53L1X Time of Flight Distance Sensor not working
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
This guide has some tips on identifying and fixing some common soldering problems:
https://learn.adafruit.com/adafruit-gui ... n-problems
Please be positive and constructive with your questions and comments.