What
Is Arduino Uno:
The UNO is the best board
to get started with electronics and coding. If this is your first experience
tinkering with the platform, the UNO is the most robust board you can start
playing with. The UNO is the most used and documented board of the whole
Arduino & Genuino family.
Obstacles
Avoiding Robot:
We will use the Arduino uno board
and an ultrasonic sensor. If the robot detects an object in front of it, with
the help of a small servo motor, it scans the area left and right in order to
find the best way to turn.
It has also a notification LED,
an buzzer to play a tone when an object is detected and an button for changing
the function of the robot (stopped / moving forward).
Requirements:
1. Chasis
2.
Ultrasonic sensor (HC-SR04)
3.
Batteries
4.
Mini breadboard
5.
Arduino uno
6.
Buzzer and LEDs
7.
Dc motors
8.
Servo motoer
9.
L298N motor driver
Code:
The code is given in the links mentioned below copy the ultrasonic.cpp and ultrasonic.h to the libraries of the arduino ide and the burn the code to your arduino and here it is ready to go....!!!
Click here
Some important points:
Arduino will not work properly on 9v battery nor the DC motors i have used my power bank to operate both of them so give separate supply to the motor driver so that your motors could work more properly.
Working:



No comments:
Post a Comment