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

Connect LiDAR with Raspberry Pi

Other Preparation Work

  1. 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":
    sudo apt-get install build-essential python-dev python-smbus git
    
    Download codes from github:
    cd Desktop
    git clone https://github.com/DFRobot/DFRobot_CE30C
    
  2. Power on LiDAR module and connect it with Raspberry Pi's Ethernet port.
    Connect LiDAR with Raspberry Pi
  3. Revise Raspberry Pi Ethernet port IP address.
    Open the terminal and input cat /etc/resolv.conf to find static DNS server.
    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.
    interface eth0
    static ip_address=192.168.1.10/24
    static routers=0.0.0.0
    static domain_name_servers=8.8.8.8
    
    Note: If you have modified the IP address of the LiDAR, please remember to revise the IP address above.
    "Ctrl+0" to save, "enter" to confirm, "Ctrl+x" to exit.
    Setting
    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.
    Check IP address
  4. 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?

TOP