# Animated staircase with VL53l0X?

**URL:** <https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903>\
**Category:** Questions\
**Created:** [May 24, 2024, 8:07am UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903 "2024-05-24T08:07:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar73594](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/sagar73594/32/7406_2.png) [@Sagar73594](https://wled.discourse.group/u/Sagar73594)\
**Post date:** [May 24, 2024, 8:07am UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903/1 "2024-05-24T08:07:08Z")

</div>

Hello Wled Community,  
I’ve required some pointers regarding, My project with WLED.  
can anyone guide me on how to do it?

My Setup -  
I’ve two ESP32s for the Staircase Project. There are two TOF vl53l0x sensors, Top and Bottom respectively. Both are connected with ESP32.

1. One ESP32(Top) running WLED With vl53l0x TOF sensor with animated staircase usermode.
2. Second ESP32(Bottom) with vl53l0x TOF sensor Running ESPNOW Transmitter code.

What I want is for the 2nd esp32 should send the data to the 1st esp32, and start the animated staircase effects.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [May 24, 2024, 9:30am UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903/2 "2024-05-24T09:30:51Z")

</div>

You’ll need a custom code.  
The changes would be too involved for a quick “how-to” though.  
Better to modify existing Staircase usermod to support dual VL53I0X. I’ve had that in plans for over a year but cannot find a justification to do it.

The idea is simple:

- adjust driver to use two I2C VL53i0X sensors (normally they will have same I2C address)
- modify Staircase usermod to work with VL

---

<div class="post-metadata">

**Author:** ![Magig\_Wled](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Magig\_Wled](https://wled.discourse.group/u/Magig_Wled)\
**Post date:** [May 24, 2024, 12:31pm UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903/3 "2024-05-24T12:31:33Z")

</div>

@blazoncek isent it just to solder a other adress to one of the VL53x as they got 3 adesses to use  
and then call a loop on the WIRE to get the data in

---

<div class="post-metadata">

**Author:** ![Sagar73594](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/sagar73594/32/7406_2.png) [@Sagar73594](https://wled.discourse.group/u/Sagar73594)\
**Post date:** [May 24, 2024, 12:59pm UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903/4 "2024-05-24T12:59:05Z")

</div>

I’ve developed the custom code with ESPNOW. But now I want to know that, How to start the effects, If Motion is detected in one of the TOF sensors.

---

<div class="post-metadata">

**Author:** ![unopixel](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/unopixel/32/8415_2.png) [@unopixel](https://wled.discourse.group/u/unopixel)\
**Post date:** [September 26, 2024, 3:19am UTC](https://wled.discourse.group/t/animated-staircase-with-vl53l0x/11903/5 "2024-09-26T03:19:11Z")

</div>

Did you ever get vl53l0x sensors to work with the staircase usermod? I would really like to use these over the HC-SR04.
