Skip to content

This project focuses on building a logic to calculate the distance to the next edge when a robot equipped with a 2D LIDAR sensor is placed on a table. The project leverages the RPlidar.h library and a Raspberry Pi Pico to work with the LIDAR sensor.

Notifications You must be signed in to change notification settings

siddharthpatelde/distance-to-next-edge

Repository files navigation

2D LIDAR Edge Detection using Raspberry Pi Pico

This project focuses on building a logic to calculate the distance to the next edge when a robot equipped with a 2D LIDAR sensor is placed on a table. The project leverages the RPlidar.h library and a Raspberry Pi Pico to work with the LIDAR sensor.

Project Overview

I am currently in the process of refining this project, and so far, I've conducted several experiments to achieve the final goal—calculating the distance to the next edge detected by the LIDAR sensor.

For now, this project emphasizes:

  • Building the logic for edge detection
  • Working with the RPlidar.h library to process data from the 2D LIDAR sensor
  • Using Raspberry Pi Pico as the hardware platform for the implementation

Library Sources

The RPlidar.h library can be found here: RPLidar Arduino Library

The Filters library for data filtering can be found here: Arduino Filters Library

Project Workflow

Here’s the workflow for this project and the current status of each task:

- Continuous Data Retrieval from LIDAR (Important)DONE (click to play the video)

Proof_Lidar_Data_Stream

Circuit Diagram:

Circuit

- LIDAR Hole Processor (Not so important)DONE (click to play the video)

Proof_Hole_Processor

Sorted_Lidar_Array

Lidar_Output

- Edge Detection using LIDAR (Important)DONE (click to play the video)

Proof_Edge_Detection

- Calculating Distance to the Next Edge (Non-filtered)DONE (click to play the video)

Proof 1

Proof 2

- Calculating Distance to the Next Edge (filtered)DONE (click to play the video)

Proof_Filtered_Distance

Author

Siddharth A. Patel
GitHub: siddharthpatelde

About

This project focuses on building a logic to calculate the distance to the next edge when a robot equipped with a 2D LIDAR sensor is placed on a table. The project leverages the RPlidar.h library and a Raspberry Pi Pico to work with the LIDAR sensor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages