Narrow beam light curtain using VL53L1X TOF sensor?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 141
- Joined: 06 Nov 2020, 03:17
Narrow beam light curtain using VL53L1X TOF sensor?
Someone out here who has experience with the VL53L1X TOF sensor?
I have a motorized roller shutter gate (see attached image), which I'd like to make smart. For safety reasons I need to add a light curtain or some other sort of narrow beam sensor, so the motor stops when someone steps below/into the closing gate.
Real light curtain sensors (so IR TX rail on one side and IR RX rail on the opposite side) is a bit too expensive when one want to cover the whole height, but first and foremost not desirable in from a wiring POV.
I'd love to use a microwave radar sensor like or similar to the LD2410, but seriously doubt that the beam/detection area can be shaped to be almost »slit« shaped (I've marked the approx. detection in the image ... I really only need like roughly 20 cm in front and behind the shutter, full height of course).
Just saw the VL53L1X TOF sensor and I’m now asking myself if this might be the solution, when set to 16×4 Spads, which would roughly lead to 27° by 6.8? (In worst case I could also place the sensor centered above the gate).
Experiences? Thoughts?
I have a motorized roller shutter gate (see attached image), which I'd like to make smart. For safety reasons I need to add a light curtain or some other sort of narrow beam sensor, so the motor stops when someone steps below/into the closing gate.
Real light curtain sensors (so IR TX rail on one side and IR RX rail on the opposite side) is a bit too expensive when one want to cover the whole height, but first and foremost not desirable in from a wiring POV.
I'd love to use a microwave radar sensor like or similar to the LD2410, but seriously doubt that the beam/detection area can be shaped to be almost »slit« shaped (I've marked the approx. detection in the image ... I really only need like roughly 20 cm in front and behind the shutter, full height of course).
Just saw the VL53L1X TOF sensor and I’m now asking myself if this might be the solution, when set to 16×4 Spads, which would roughly lead to 27° by 6.8? (In worst case I could also place the sensor centered above the gate).
Experiences? Thoughts?
You do not have the required permissions to view the files attached to this post.
-
- Core team member
- Posts: 10210
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Hmm not sure if that will work as there seems to be some reflective surfaces and there will be obvious changes while the roller shutter is opened or closed.
So I guess you should try it.
Personally I would opt for some kind of laser/IR light beam with some reflector.
This could then also be positioned slightly at an angle with multiple reflectors so you can cover a larger height area.
So I guess you should try it.
Personally I would opt for some kind of laser/IR light beam with some reflector.
This could then also be positioned slightly at an angle with multiple reflectors so you can cover a larger height area.
-
- Normal user
- Posts: 141
- Joined: 06 Nov 2020, 03:17
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Now, check this out!
People Counting Using a Single ST VL53L1X Time-of-Flight Sensor
https://www.youtube.com/watch?v=c91Ve-g0J2U
Only question is whether it is responsive enough. Still don’t quite understand how they've done it using a single sensor!? (Perhaps the two overlapping circles/cones are misleading, as I assume there’s only one cone, while the rest is done in software).
Actually this is probably more than I need, I probably only need to narrow down the Spad grid to 16x4 or so. Guess will have to give it a try.
People Counting Using a Single ST VL53L1X Time-of-Flight Sensor
https://www.youtube.com/watch?v=c91Ve-g0J2U
Only question is whether it is responsive enough. Still don’t quite understand how they've done it using a single sensor!? (Perhaps the two overlapping circles/cones are misleading, as I assume there’s only one cone, while the rest is done in software).
Actually this is probably more than I need, I probably only need to narrow down the Spad grid to 16x4 or so. Guess will have to give it a try.
-
- Normal user
- Posts: 1474
- Joined: 17 Jun 2018, 20:41
- Location: USA
Re: Narrow beam light curtain using VL53L1X TOF sensor?
The sensor can support multiple Field of Views (FOV). This advanced functionality is not available in the ESPEasy plugin. The people crossing application, through the doorway, involves two FOVs and hardware interrupts. There is a white paper at the ST web site that explains how it is done.Still don’t quite understand how they've done it using a single sensor!? (Perhaps the two overlapping circles/cones are misleading, as I assume there’s only one cone, while the rest is done in software).
But you don't need to accurately count people. So your application should be much simpler and the existing plugin should be all you need.
- Thomas
-
- Core team member
- Posts: 10210
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Hmm you always just know how to formulate it to trigger the "hold my beer" itches, don't you?ThomasB wrote: 12 Jun 2025, 05:30 [...]
The sensor can support multiple Field of Views (FOV). This advanced functionality is not available in the ESPEasy plugin. The people crossing application, through the doorway, involves two FOVs and hardware interrupts. There is a white paper at the ST web site that explains how it is done.
[...]
- Thomas

-
- Normal user
- Posts: 141
- Joined: 06 Nov 2020, 03:17
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Hahaha...Hmm you always just know how to formulate it to trigger the "hold my beer" itches, don't you?
One thing though: I strongly suggest that you improve the Home Assistant integration/implementation. ESPEasy needs to be more like „one click, auto-detect“ (just like ESPHome is) instead of manual MQTT configuration, and also must be badly added to the Home Assistant Integrations Catalogue.
When it comes to ESP-based DIY projects, I’d say that most people on the Home Assistant front are using ESPHome, which in my opinion is absolutely inferior to ESPEasy, as ESPHome’s configuration is entirely text-based YAML editing, no user-friendly GUI like in ESPEasy. But when it comes to the actual integration in HA, it’s somehow the other way around.
My fear is a bit that despite the insane development efforts of a tiny team, ESPEasy doesn’t get the attention it deserves, and might dwindle away into obsolescence. Just my two cents.
-
- Normal user
- Posts: 141
- Joined: 06 Nov 2020, 03:17
Re: Narrow beam light curtain using VL53L1X TOF sensor?
I assume this is the documentation Thomas is referring to. One needs to click the "Documentation" tab on the top!ThomasB wrote: 12 Jun 2025, 05:30 There is a white paper at the ST web site that explains how it is done.
-
- Normal user
- Posts: 4547
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Have a look at this, quite complete by now, PR #5199Wookbert wrote: 12 Jun 2025, 14:16 One thing though: I strongly suggest that you improve the Home Assistant integration/implementation. ESPEasy needs to be more like „one click, auto-detect“ (just like ESPHome is) instead of manual MQTT configuration, and also must be badly added to the Home Assistant Integrations Catalogue.
When it comes to ESP-based DIY projects, I’d say that most people on the Home Assistant front are using ESPHome, which in my opinion is absolutely inferior to ESPEasy, as ESPHome’s configuration is entirely text-based YAML editing, no user-friendly GUI like in ESPEasy. But when it comes to the actual integration in HA, it’s somehow the other way around.
My fear is a bit that despite the insane development efforts of a tiny team, ESPEasy doesn’t get the attention it deserves, and might dwindle away into obsolescence. Just my two cents.

If you're willing to test we can provide a test-build (name the build you need...)
/Ton (PayPal.me)
-
- Normal user
- Posts: 141
- Joined: 06 Nov 2020, 03:17
Re: Narrow beam light curtain using VL53L1X TOF sensor?
Excellent! Regarding testing: So much curiosity, so little time ... Seriously, my head and my to-do list are packed. I could try to test it with a GYBMEP280 and LD2410 in combination on an ESP32-C3, but can’t promise when.
The other part of my suggestion was to add ESPEasy to Home Assistant’s Integration Catalogue. ESPEasy is missing on that party. Here are ESPHome and Tasmota for reference:
-
- Normal user
- Posts: 4547
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Narrow beam light curtain using VL53L1X TOF sensor?
I'll build a 4MB C3 build 'soon-ish' for you to testWookbert wrote: 13 Jun 2025, 11:28 Excellent! Regarding testing: So much curiosity, so little time ... Seriously, my head and my to-do list are packed. I could try to test it with a GYBMEP280 and LD2410 in combination on an ESP32-C3, but can’t promise when.

We'll pursue that goal once the MQTT AutoDiscovery feature has been merged for releaseWookbert wrote: 13 Jun 2025, 11:28 The other part of my suggestion was to add ESPEasy to Home Assistant’s Integration Catalogue. ESPEasy is missing on that party. Here are ESPHome and Tasmota for reference:

/Ton (PayPal.me)
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest