Skip to content

In this project, we will use an Ultrasonic Sensor to measure distances. Based on the detected distance, the car will take appropriate actions. For example, if an obstacle is detected within 20 cm, the car will change its path by performing an omnidirectional movement.

Notifications You must be signed in to change notification settings

ShahbazCoder1/Arduino-Obstacle-Avoiding-Car-With-Mecanum-Wheel

Repository files navigation

How to Make an Arduino Obstacle Avoiding Car With Mecanum Wheel

Alt text

Greetings everyone, and welcome to my GitHub tutorial. Today, I'll guide you through the process of creating an Arduino Obstacle Avoiding Car with Mecanum Wheel.

Project Overview:

In this project, we will use an Ultrasonic Sensor to measure distances. Based on the detected distance, the car will take appropriate actions. For example, if an obstacle is detected within 20 cm, the car will change its path by performing an omnidirectional movement.

Without further ado, let's dive into the project and get started!

Supplies:

3D Printed Chassis Arduino Uno Motor Driver Ultrasonic Sensor
Mecanum Wheel Image 1 Image 2 Image 3

Amazon:

Quartz Components:

Tools:

  • Soldering iron kit
  • Wirecutter
  • Glue gun

Modeling Chassis in Thinkercad

Chassis Wheel Couple
Image Image 1

I used Tinkercad to plan and design my project. I designed this chassis with three things in mind: easy assembly, 3D printability, and affordability. After finalizing the design, I exported the file in STL format to ensure it was ready for 3D printing. The attached file includes all necessary components and dimensions for accurate printing and straightforward assembly. For even greater affordability, you can also consider CNC cutting the chassis frame from an acrylic sheet.

Download Car Chassis STL File

Download Wheel Couple STL File

Circuit Connections:

Image 1 Image 2 Image 3 Image 4 Image 5

Follow the Instructions:

  1. Mount the Arduino Uno and L298D Motor Driver Shield to the chassis.
  2. Connect the Gear Motor wires to the Motor Driver motor pin as shown in the circuit diagram.
  3. Carefully mount the Ultrasonic Sensor to the front part of the chassis using hot glue.
  4. Follow the Ultrasonic Sensor connection from Image No. 3.
  5. Mount the Battery Holder to the chassis as shown in the image.

Upload the Sketch:

Image

~ Connect the USB cable to the Arduino Uno.

~ Disconnect the Echo and Trig pins of the Ultrasonic Sensor to ensure the code uploads successfully.

CODE: Arduino Code File

Working Video and Tutorial:

Once the code has been uploaded, insert the battery into the Battery Holder to activate the project.

Watch the video

I will continue to update this repository with new information. Don’t forget to follow me for updates on new projects and subscribe to my YouTube channel (YouTube: roboattic Lab) for more content. Thank you for your support.

About

In this project, we will use an Ultrasonic Sensor to measure distances. Based on the detected distance, the car will take appropriate actions. For example, if an obstacle is detected within 20 cm, the car will change its path by performing an omnidirectional movement.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages