MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 2/3

12 m LiDAR Radar

A LiDAR on a servo sweeps 0–180° and the ESP32 draws every reading as a dot on a live radar map.

Sign in to save
12 m LiDAR Radar
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Check the LiDAR wire colours against its datasheet. It uses an eye-safe Class 1 laser, but never look into it on purpose.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The servo sweeps the LiDAR from 0° to 180° and back.
  2. The LiDAR measures distance up to 12 m, 100 times a second, over UART.
  3. The ESP32 pairs each distance with the servo angle.
  4. Each pair becomes a dot on the radar map.

Parts you need

  • LiDAR distance sensor (0.1–12 m, UART)× 1Buy
  • ESP32 development board (30-pin)₹518× 1Buy
  • Micro servo (180°)₹126× 1Buy
  • 5V 2A adapter, breadboard power rail, jumper wires× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

LiDARgreenwhiteredblackESP32D25D33D14VIN / GND5V railGND railServoorangeredbrown5V / GND railsAdapter+ / −
PowerGroundSignal
#FromConnect to
1 SignalLiDAR green (TX)ESP32 D25
2 SignalLiDAR white (RX)ESP32 D33
3 PowerLiDAR red5V rail
4 GroundLiDAR blackGND rail
5 SignalServo orange (signal)ESP32 D14
6 PowerServo red5V rail
7 GroundServo brownGND rail
8 PowerESP32 VIN / GND5V / GND rails
9 PowerAdapter + / −5V / GND rails
A wiring step from the video
A wiring step from the video

3D print files

  • LiDAR cradlePLA or PETG · 0.2 mm · 20% · no supportsDownload
  • Servo basePLA or PETG · 0.2 mm · 20% · no supportsDownload

Code

Get the code