Maker Turns a Used Hesai Car Lidar Into a DIY 3D Scanner That Sees in the Dark

User Avatar Aswinth Raj
Author
Share
Maker's DIY 3D Scanner Using Hesai Lidar

Professional terrestrial laser scanners cost as much as a car, so Tyler of the 9nl YouTube channel built his own. His open-source Lumirion scanner takes a used Hesai Pandar 40P, a 40-channel spinning lidar made for autonomous vehicles, lays it on its side and turns it slowly on a gimbal motor until it has seen the whole sphere around it. Because the lidar brings its own laser light, it maps a backyard or a cave passage just as well in total darkness.

How it works

Mounted sideways, each of the Pandar's ten turns per second measures one vertical slice of the scene. A 4015 gimbal motor turns the whole head in direct drive on a thrust bearing, sweeping that slice around the vertical axis. A Teensy 4.0 runs closed-loop velocity control through a SimpleFOC Mini driver, reads the motor's AS5600 magnetic encoder over I2C, and streams the head angle to the Pi 200 times a second.

A Raspberry Pi 5 with an NVMe SSD runs Ubuntu 24.04 and ROS2 Jazzy. Hesai's driver sends the points over Ethernet, and both the points and the encoder angles are stamped by the Pi's own clock, so no PTP or GPS time source is needed. Each scan is recorded as a rosbag2 file, then deskewed: every point is rotated back by the head angle at the instant it was measured, which turns a smeared sweep into one clean point cloud.

Everything, including the 12 V Li-ion pack, rides in the rotating head, so no cable crosses the moving joint. The Pi joins a known Wi-Fi network or starts its own access point with a captive portal, and a phone browser becomes the control panel for starting the motor, recording and checking scans.

Our take

The clever part is not the expensive sensor, it is the timing. A rotating lidar on a rotating platform only works if you know exactly where the head pointed for every point, and Tyler solved that with one shared clock instead of extra sync hardware. His companion app, DeskewStudio, handles calibration, merging and viewing, and its README shows a 42-million-point cave scan. The CAD, the TeensyFOC carrier PCB, firmware and software are all free, with the hardware under a non-commercial licence.

Some time back, we covered a wireless 3D scanner built with an ESP32-S3 and a rotating lidar; Lumirion shows how far the same idea goes with a 40-channel sensor.

Image credit: 9nl (Tyler), YouTube, cropped and resized.

About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn

Have any question related to this Article?

Add a comment

No account needed. Your comment appears once a moderator has reviewed it.

Never shown publicly.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.