# Matrix lidar distance sensor v1.0 on Microbit MaQueen v3

**URL:** https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034
**Category:** micro:bit extensions
**Tags:** make
**Created:** [July 14, 2025, 3:57am UTC](https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034 "2025-07-14T03:57:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![microbit](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@microbit](https://forum.makecode.com/u/microbit)
#### Post date: [July 14, 2025, 3:57am UTC](https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034/1 "2025-07-14T03:57:26Z")

</div>

Hello, I bought a Matrix lidar distance sensor v1.0 and a Microbit MaQueen v3 and installed them. I can get the Microbit MaQueen to follow a line with Maker code, but I don’t understand the Matrix lidar distance sensor at all. I wouldn’t know how to code it! Could you help me with that?

Microbit.

---

<div class="post-metadata">

### Author: ![microbit](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@microbit](https://forum.makecode.com/u/microbit)
#### Post date: [July 26, 2025, 9:02pm UTC](https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034/2 "2025-07-26T21:02:09Z")

</div>

I already succeeded, this is the makecode code to drive the microbit maqueen v3 with matrix distance sensor v1.0 and avoid obstacles. This is the code:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/d/6dbe8125e865564665dbbef317dcca7a0c20d47d.png)  
I hope i have help anybody other.

---

<div class="post-metadata">

### Author: ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)
#### Post date: [July 28, 2025, 2:06am UTC](https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034/3 "2025-07-28T02:06:09Z")

</div>

Thank you. I have a V3 still in the box.

---

<div class="post-metadata">

### Author: ![ChrisB2705](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chrisb2705/32/25213_2.png) [@ChrisB2705](https://forum.makecode.com/u/ChrisB2705)
#### Post date: [September 30, 2025, 3:51pm UTC](https://forum.makecode.com/t/matrix-lidar-distance-sensor-v1-0-on-microbit-maqueen-v3/38034/4 "2025-09-30T15:51:00Z")

</div>

Try this one:

> **[Maqueen plus V3 laser 5](https://makecode.microbit.org/S19786-94280-71995-54825)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.
