Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

devancakra/Obstacle-Avoidance-Arduino-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Love License: MIT GitHub last commit Project

Obstacle-Avoidance-Arduino-Robot

Solo Project: Obstacle Avoidance Arduino Robot

Robots are tools that can ease the burden on humans. Robots can be controlled by humans directly, but actually robots can also make their own decisions if given an intelligent algorithm. The type of robot that is often used in school activities is a wheeled robot. A wheeled robot is a robot that moves by using wheels. The purpose of this project is to get good navigation capabilities on wheeled robots. This project has been carried out and took approximately 3 days. The robot moves and then the ultrasonic sensor will detect whether the area to be passed is safe or not. If there are obstacles in the way, then the robot will avoid them and find another way. The benefits of making this project are none other than to add insight. The results show that the system created can reduce the risk of collisions, because this robot can recognize objects in the surrounding environment well.



Project Requirements

Part Description
Development Board Arduino Uno R3
Code Editor Arduino IDE
Driver CH340 USB Driver
Programming Language C/C++
Arduino Library • Adafruit-Motor-Shield
• Servo
Actuators • Servo Motor SG90 180° (x1)
• Gear Motor / Motor DC (x4)
Sensor HC-SR04: Ultrasonic Sensor (x1)
Other Components • USB type B cable - USB type A (x1)
• Jumper cable (1 set)
• KCD11: Rocker Switch SPST (x1)
• Li-ion battery 18650 (x2)
• 2-Slot series battery holder (x1)
• Robot wheels (x4)
• Motor driver shield L293D (x1)
• Car robot frame (x1)



Download & Install

  1. Arduino IDE

    https://bit.ly/ArduinoIDE_Installer
    

  2. CH340 USB Driver

    https://bit.ly/CH340_USB_Driver
    



Project Designs

Block Diagram Pictorial Diagram
Block-Diagram Pictorial-Diagram
Wiring
Wiring



Arduino IDE Setup

  1. Open the Arduino IDE first, then open this project by clicking File -> Open :

    obstacle_avoidance_robot.ino


  2. Board Setup in Arduino IDE

    How to setup the Arduino Uno board

    Click Tools -> Board -> Arduino AVR Boards -> Arduino Uno


  3. Install Library in Arduino IDE

    Download all the library zip files. Then paste it in the: C:\Users\Computer_Username\Documents\Arduino\libraries


  4. Port Setup in Arduino IDE

    Click Port -> Choose according to your device port (you can see in device manager)


  5. Before uploading the program please click: Verify.

  6. If there is no error in the program code, then please click: Upload.

  7. If there is still a problem when uploading the program, then try checking the driver / port / others section.



Get Started

  1. Download and extract this repository.

  2. Make sure you have the necessary electronic components.

  3. Make sure your components are designed according to the diagram.

  4. Configure your device according to the settings above.

  5. Please enjoy [Done].



Highlights

obstacle-avoidance-robot



Appreciation

If this work is useful to you, then support this work as a form of appreciation to the author by clicking the ⭐Star button at the top of the repository.



Disclaimer

This application has been created by including third-party sources. Third parties here are service providers, whose services are in the form of libraries, frameworks, and others. I thank you very much for the service. It has proven to be very helpful and implementable.



LICENSE

MIT License - Copyright © 2023 - Devan C. M. Wijaya, S.Kom

Permission is hereby granted without charge to any person obtaining a copy of this software and the software-related documentation files to deal in them without restriction, including without limitation the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons receiving the Software to be furnished therewith on the following terms:

The above copyright notice and this permission notice must accompany all copies or substantial portions of the Software.

IN ANY EVENT, THE AUTHOR OR COPYRIGHT HOLDER HEREIN RETAINS FULL OWNERSHIP RIGHTS. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, THEREFORE IF ANY DAMAGE, LOSS, OR OTHERWISE ARISES FROM THE USE OR OTHER DEALINGS IN THE SOFTWARE, THE AUTHOR OR COPYRIGHT HOLDER SHALL NOT BE LIABLE, AS THE USE OF THE SOFTWARE IS NOT COMPELLED AT ALL, SO THE RISK IS YOUR OWN.