# How can I use VL53L5CX on OpenMV4Plus

**URL:** <https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373>\
**Category:** OpenMV Boards\
**Created:** [May 26, 2023, 5:50am UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373 "2023-05-26T05:50:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![duojibu](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@duojibu](https://forums.openmv.io/u/duojibu)\
**Post date:** [May 26, 2023, 5:50am UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/1 "2023-05-26T05:50:56Z")

</div>

I saw the updata logs of OpenMV, said that VL53L5CX is supported. By read the source code, I found that it is only supported on OpenMV4Pro. I added ‘MICROPY\_PY\_TOF = 1 ‘,’#define #define OMV\_ENABLE\_TOF\_VL53L5CX (1)’ in OpenMV4Plus boardcofing file. Does this open up it`s support? Is it`s examples can be offer?

---

<div class="post-metadata">

**Author:** ![duojibu](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@duojibu](https://forums.openmv.io/u/duojibu)\
**Post date:** [May 30, 2023, 3:11am UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/2 "2023-05-30T03:11:26Z")

</div>

I have solved it.This sensor is so cool.But the driver in OpenMV do not have enough funtion.Like switch to 4\*4 mode.Expect it to get better.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 30, 2023, 1:38pm UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/3 "2023-05-30T13:38:36Z")

</div>

It will need to be on a board before we really work harder on the driver. It’s challenging to just include the sensor as it’s $7 by itself which is more expensive than the camera IC.

---

<div class="post-metadata">

**Author:** ![wedge](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wedge](https://forums.openmv.io/u/wedge)\
**Post date:** [May 6, 2025, 5:08am UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/4 "2025-05-06T05:08:07Z")

</div>

Now that AE3 cam is on the way with tof on board I wonder if the driver will work on the other cams aswell given there is a sensor attached to the corresponding i2c lines.  
A performant, well written driver for the vl53l5cx would be highly beneficial.  
Do you see any reasons against general support? Thanks

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 6, 2025, 6:38pm UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/5 "2025-05-06T18:38:37Z")

</div>

We’ve upgraded to the VL53L8 on the AE3, the L5 has a lot of issues with stability.

As for it working on older cameras, you are free to hack the firmware to add this. We have no plans to.

---

<div class="post-metadata">

**Author:** ![wedge](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wedge](https://forums.openmv.io/u/wedge)\
**Post date:** [May 7, 2025, 9:01am UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/6 "2025-05-07T09:01:36Z")

</div>

I see.  
Is there a specific reason for that decision? I’d not see any resulting rivalry in house. Rather product maintenance and costumer support come to mind.

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [May 7, 2025, 12:43pm UTC](https://forums.openmv.io/t/how-can-i-use-vl53l5cx-on-openmv4plus/8373/7 "2025-05-07T12:43:21Z")

</div>

> [@wedge](#):
>
> Is there a specific reason for that decision?

Because it uses a lot of flash for its firmware blob, about 100K see:

> <https://github.com/openmv/openmv/pull/2687#issuecomment-2858441988>
>
> Code Size Report:
> | Firmware | Text Diff | Data Diff |… BSS Diff |
> |-----------------------|-----------------|------------------|-----------------|
> | OPENMV4P/firmware.elf | 🔺5.90% (+97384) | 🔺275.24% (+2312) | 🔻-0.01% (-3036) |

Also these devices don’t get detected at runtime, so you have to enable one or the other (VL53L5 or VL53L8) but the OPENMV\_4P has neither of those on board. So which one should we enable by default? It would make sense to enable the L8, but what if you or another user wants the L5?
