Skip to content

To make an obstacle-avoidance robot consisting of Arduino UNO and Ultrasonic Sonic Sensor, driven by DC Motors, that publishes ROS messages about the distance between the obstacle and the Ultrasonic Sensor using rosserial_python.

Notifications You must be signed in to change notification settings

dhatri2003/Obstacle_avoidance_robo_ROS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obstacle-Avoidance Robot using rosserial_python, Arduino, and Ultrasonic Sensor

Description

This project focuses on building an obstacle-avoidance robot using Arduino UNO, Ultrasonic Sensor, and rosserial_python for ROS integration. The robot is designed to navigate autonomously in its environment while avoiding obstacles.

Components

  • Arduino UNO
  • HC-SR04 Ultrasonic Sensor
  • SG90 Micro Servo Motor
  • L289N Motor Driver
  • 12V DC Motors
  • Li-ion Cells
  • Breadboard

Installation and Setup

  1. Install the necessary libraries for Arduino:

    • Servo.h
    • ros.h
    • std_msgs/Int8.h
  2. Connect the hardware components as per the provided circuit diagram.

  3. Upload the provided Arduino code to the Arduino UNO board.

  4. Install rosserial_python for ROS integration.

Usage

  1. Power on the Arduino-powered robot.

  2. Ensure that the ROS environment is set up and running.

  3. Run the rosserial_python node to establish communication between Arduino and ROS.

  4. Monitor the published data using rostopic echo chatter to observe the distance readings.

  5. Test the robot in an environment with obstacles to observe its obstacle-avoidance behavior.

About

To make an obstacle-avoidance robot consisting of Arduino UNO and Ultrasonic Sonic Sensor, driven by DC Motors, that publishes ROS messages about the distance between the obstacle and the Ultrasonic Sensor using rosserial_python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages