# Your example VL53L1X doesnt work

**URL:** <https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211>\
**Category:** Peripherals\
**Tags:** evb-amb82, rtl8735b\
**Created:** [August 4, 2024, 3:43am UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211 "2024-08-04T03:43:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsmith1024](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Post date:** [August 4, 2024, 3:43am UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211/1 "2024-08-04T03:43:13Z")

</div>

I tried your example for VL53L1X doesnt work.

I connect it to I2C port at pins 12 and 13, but the initialization always failed.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [August 4, 2024, 4:01am UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211/2 "2024-08-04T04:01:00Z")

</div>

Hi @nsmith1024,

Please double check on the sensor I2C address.

Thank you.

---

<div class="post-metadata">

**Author:** ![nsmith1024](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Post date:** [August 4, 2024, 12:04pm UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211/3 "2024-08-04T12:04:06Z")

</div>

I used this code at the link below but it always failed.

I set SensorCount to 1, and connect it to I2C pins 12 and 13 on the AMB82-mini.

I have 5K pull ups on both I2C line and XSHUT, still doesnt work, always failed.

As you can see the code sets the I2C address. But it always failed even before it sets the I2C address.

I tried both 3.3V, VUSB, with and without 5K pullups, nothing works. in tried pins 12 and 13 I2C. It always fail at init() function.

This is the board im using:

> **[Amazon.com: AITRIP 2PCS VL53L1X Laser Ranging Flight Time Sensor Module with...](https://www.amazon.com/AITRIP-VL53L1X-Distance-Measurement-Extension/dp/B09JLKKW1H)**
>
> The VL53L1X is a state-of-the-art, Time-of-Flight (ToF), ranging sensor, enhancing the ST FlightSensee product family. It is the fastest miniature ToF sensor on the market with accurate ranging up to 4 m and fast ranging frequency up to 50 HzUnlike...

This is the demo code:

> <https://github.com/pololu/vl53l1x-arduino/blob/master/examples/ContinuousMultipleSensors/ContinuousMultipleSensors.ino>

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [August 5, 2024, 8:04am UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211/4 "2024-08-05T08:04:45Z")

</div>

Hi @nsmith1024 ,

Our example only support the VL53L0X IR sensor in our Arduino SDK.  
[https://www.amebaiot.com/en/amebapro2-arduino-i2c-vl53l0x-ir-sensor/](https://www.amebaiot.com/en/amebapro2-arduino-i2c-vl53l0x-ir-sensor/)

Thank you.
