Skip to content

This repository contains the code and documentation for aligning a Robocon robot around a pole using a Lidar sensor, Raspberry Pi, and Arduino Mega.

Notifications You must be signed in to change notification settings

Vipsy-123/Lidar_raspi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Omniwheel Robot Angle Alignment using Lidar and Raspberry Pi

Overview

This repository contains the code and documentation for aligning a Robocon robot around a pole using a Lidar sensor, Raspberry Pi, and Arduino Mega. The alignment process involves obtaining raw data from the Lidar sensor, computing angle values on the Raspberry Pi, and serially transmitting them to the Arduino Mega, where the alignment algorithm is executed.

Hardware Requirements

  • Lidar Sensor
  • Raspberry Pi
  • Arduino Mega 2560

Software Requirements

  • Python (for Raspberry Pi code)
  • Arduino IDE (for Arduino Mega code)
  • Ubuntu 20.04 on Raspberry Pi

Setup

  1. Connect the Lidar sensor to the Raspberry Pi.
  2. Connect the Raspberry Pi to the Arduino Mega using UART.
  3. Upload the Arduino Mega code to the board.
  4. Run the Raspberry Pi code to start obtaining Lidar data and computing angle values.

File Structure

  • /LIDAR_AL.py: Contains the Python code for obtaining Lidar data and computing angle values.
  • /RPLidarReciving.ino: Contains the Arduino code for executing the alignment algorithm.

Usage

  1. Run the Raspberry Pi code:
      $ python3 LIDAR_AL.py
  2. On Arduino Mega upload RPLidarReciving.ino code .
  3. Connect Raspberry Pi USB port to Mega

About

This repository contains the code and documentation for aligning a Robocon robot around a pole using a Lidar sensor, Raspberry Pi, and Arduino Mega.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published