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.
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) |
-
Arduino IDE
https://bit.ly/ArduinoIDE_Installer
-
CH340 USB Driver
https://bit.ly/CH340_USB_Driver
Block Diagram | Pictorial Diagram |
---|---|
Wiring |
---|
-
Open the
Arduino IDE
first, then open this project by clickingFile
->Open
:obstacle_avoidance_robot.ino
-
Board Setup
in Arduino IDEHow to setup the
Arduino Uno
boardClick
Tools
->Board
->Arduino AVR Boards
->Arduino Uno
-
Install Library
in Arduino IDEDownload all the library zip files. Then paste it in the:
C:\Users\Computer_Username\Documents\Arduino\libraries
-
Port Setup
in Arduino IDEClick
Port
-> Choose according to your device port(you can see in device manager)
-
Before uploading the program please click:
Verify
. -
If there is no error in the program code, then please click:
Upload
. -
If there is still a problem when uploading the program, then try checking the
driver
/port
/others
section.
-
Download and extract this repository.
-
Make sure you have the necessary electronic components.
-
Make sure your components are designed according to the diagram.
-
Configure your device according to the settings above.
-
Please enjoy [Done].
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.
This application is my own work and is not the result of plagiarism from other people's research or work, except those related to third party services which include: libraries, frameworks, and so on.
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.