Obstacle Avoiding Robot by Arduino and Ultrasonic sensor
So, today we are going to make an awesome obstacle avoiding robot step by step tutorial. this robot can detect thing near him and make the decision itself by the microcontroller used in the robot. we use Arduino development board in obstacle avoiding robot. The sensor transmits some data in the ultrasonic waveform which come back after hitting the subject and the duration in this phenomena Divide with the speed of sound which gives the distance of the subjects.In this Obstacle Avoiding Robot by Arduino and Ultrasonic sensor, we learn the concepts of Ultrasonic sensor, it’s working, working principle, concepts, uses, calculation and many more things. ultrasonic based obstacle avoiding robot uses ultrasonic wave principle to work. it is very good projects to learn the embedded system. You can make many other projects like line follower robot
Component Required for obstacle avoiding Ultrasonic robot:-
- Ultrasonic Sensor
- Arduino Uno
- Chassis
- 4 motos
- Motor driver L2N8
ultrasonic sensor work on the Ultrasonic frequency at the range of 40000 hz. It has two component in the module. one is a transmitter which is known as Trigger and another is a receiver which is called as Echo. It transmits the Ultrasound of 40000 hz . and receive it by the Receiver in the module after some time. a sound wave is generated and transmitted through the transmitter and this soundwave comeback to the receiver by collision with an object.
The ultrasonic sensor is widely used in embedded projects as well as in robotics projects. very easy to use and have only 4 pins Echo, Trig, GND, Vcc. you can make many other projects with the ultrasonic sensor Arduino such as distance measures device, Stick for blind persons which can be very useful. the ultrasonic sensor has a very high-frequency range for sound. which we can not hear.
To know more about the ultrasonic sensor download the data sheet and read it carefully. definitely, you will find something useful for your projects and maybe you find some more projects on the ultrasonic working principle. you can learn also the interfacing to the AVR, Arduino, Raspberry Pie and with many other controllers. In this post, we will teach you how to use the ultrasonic sensor with Arduino.
2. Arduino Uno
As we know the Arduino is an open-source microcontroller. having 14 GPIO pins and 6 analog pins. works on 5v-9v. to learn Arduino go through this.
we can connect the ultrasonic sensor with the digital pins. in ultrasonic sensor we need to trigger by the digital pins in some microsecond duration.as you can see in the CODE given below. we not need any serial connection with the ultrasonic sensor.
Obstacle avoiding robot connections/ultrasonic sensor interface with arduino
- Connect ultrasonic Trig pin to Arduino pin9
- Connect ultrasonic Echo pin to Arduino pin10
- Connect Arduino pin 5 pin to Arduino L2N8 pin IN1
- Connect Arduino pin 6 pin to Arduino L2N8 pin IN2
- Connect Arduino pin 7 pin to Arduino L2N8 pin IN3
- Connect Arduino pin 8 pin to Arduino L2N8 pin IN4
- Connect Arduino Vcc and Gnd with Ultrasonic sensor Vcc and Gnd
- Connect L2N8 5v with arduino Vcc and Gnd to Gnd.
- Give 9v,12v supply to the L2N8