A few years ago I already wrote my own code for stairs light similar like this mod, but these days WLed offers much more options so I am looking to migrate to WLed
For the triggering sensors, I am using two I2C V53L0X Laser range sensors for top and bottom. Did anyone use these, and perhaps already modified/included this in the usermod?
Thanks, as mentioned, I do have my own code running it. I am just curious if some already used it for WLed for the staircase mod ( re-invent the wheel thingā¦)
Iāve tried to use this mod as well, but I stepped away from it. The sensor gave unreliable readings causing the light to randomly go on/off or dim. Might be the V53L0X library or maybe my sensor hardware. Havenāt got the time to dig into it.
What is your use of 2 sensors if I may ask? do you need to use 2 sensors in āparallelā or 2 sensors to do 2 different things?
-Edit. Sorry just ready the topic. Youāre requested it for the staircase mod.
I am looking into it, will have a go at it in two weeks (have some spare time). Mind you I am not a programming whizzkid, itās more a hobby for me.
So in the end got it up and running. Not with the Adafruit library, but with pololuās oneā¦
Iāve tried it on a Lolin C3 (this is not an easy device to use. There seems to be some hardware issues with the antenna). It Might be a bit buggy, my coding skills are very basic.
It needs the pololu/VL53L0X @ ^1.3.0 library to be included when building this.
Took a look. Seems straightforward.
If you make a PR (create a separate branch first for which you may need to undo commit) Iāll be able to slightly modify your code.
thanks for sharing @martin072 . Iām trying to test your version. just need to configure the xshut pins? Where do you connect the SCL and SDA pins of the VL53L0X sensor?