Usage Example on Raspberry Pi
Last revision 2026/01/08
Hardware Preparation
- CE30-C Area Array Laser Radar x 1
- Raspberry Pi 4B x1
Software Preparation
- Python dependency library (build-essential python-dev python-smbus)
- Git
- Code from GitHub: DFRobot_CE30C
Wiring Diagram

Other Preparation Work
- Install Python dependency library and git. Make sure Raspberry Pi is connected to the Internet. Skip this step if you have installed already.
Input the following commands in the terminal and press "Enter":
Download codes from github:sudo apt-get install build-essential python-dev python-smbus gitcd Desktop git clone https://github.com/DFRobot/DFRobot_CE30C - Power on LiDAR module and connect it with Raspberry Pi's Ethernet port.

- Revise Raspberry Pi Ethernet port IP address.
Open the terminal and input cat /etc/resolv.conf to find static DNS server.

In the terminal, input sudo nano /etc/dhcpcd.conf to edit dhcpcd.conf file, and add the following at the end.
Note: If you have modified the IP address of the LiDAR, please remember to revise the IP address above.interface eth0 static ip_address=192.168.1.10/24 static routers=0.0.0.0 static domain_name_servers=8.8.8.8
"Ctrl+0" to save, "enter" to confirm, "Ctrl+x" to exit.

In the terminal, input sudo reboot to reboot Raspberry Pi.
After the Raspberry Pi board is restarted, input /sbin/ifconfig in the terminal to check IP address, then we can see that the IP address has been changed.

- Run the program, input the following commands in the terminal and press "Enter":
cd cd Desktop cd DFRobot_CE30C/examples sudo python get_CE30C_data.py
Result
When the running is done, there will be a DATA.EXE file appearing in the folder DFRobot_CE30C. It is the saved complete point cloud data.
Was this article helpful?
