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.
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.
3D Printed Chassis | Arduino Uno | Motor Driver | Ultrasonic Sensor |
---|---|---|---|
- Arduino Uno: Amazon Link
- L298D Motor Driver: Amazon Link
- UltraSonic Sensor: Amazon Link
- Gear Motor: Amazon Link
- Mecanum Wheel: Bitly Link
- Battery Holder: Amazon Link
- Battery: (Get it in an old power bank)
- Arduino Uno: Quartz Components
- L298D Motor Driver: Quartz Components
- UltraSonic Sensor: Quartz Components
- Gear Motor: Quartz Components
- Mecanum Wheel: Quartz Components
- Battery Holder: Quartz Components
- Battery: Quartz Components
- Soldering iron kit
- Wirecutter
- Glue gun
Chassis | Wheel Couple |
---|---|
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 Wheel Couple STL File
Follow the Instructions:
- Mount the Arduino Uno and L298D Motor Driver Shield to the chassis.
- Connect the Gear Motor wires to the Motor Driver motor pin as shown in the circuit diagram.
- Carefully mount the Ultrasonic Sensor to the front part of the chassis using hot glue.
- Follow the Ultrasonic Sensor connection from Image No. 3.
- Mount the Battery Holder to the chassis as shown in the 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
Once the code has been uploaded, insert the battery into the Battery Holder to activate the project.
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.