6
6
1.INTRODUCTION
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 2140
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 02 | Feb-2018 www.irjet.net p-ISSN: 2395-0072
3.1. Ultrasonic sensor HC-SR04 motor is also connected to the port A via relay switch. The
circuit diagram is shown in Fig. 5.
The ultrasonic sensor is used for obstacle detection.
Ultrasonic sensor transmits the ultrasonic waves from its
sensor head and again receives the ultrasonic waves
reflected from an object.
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 2141
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 02 | Feb-2018 www.irjet.net p-ISSN: 2395-0072
Now you will need six digital output pins on your Arduino, 4.3.3. ATMEGA 328P pin diagram
two of which need to be PWM (pulse – width Modulation)
pins. PWM pins are denoted by the tilde ~ next to the pin Atmega328P is a 28 pin microcontroller. It has 14 digital I/O
number, for example finally, connect the Arduino digital pins, of which 6 can be used as PWM outputs and 6 analog
output pins to the driver module. In our example we have input pins. These I/O pins account for 20 of the pins.The pin
two DC motors, so digital pins D9, D8, D7 and D6 will be configuration is shown in Fig. 7.
connect to the pins IN1, IN2, IN# and IN4 respectively. Then
connect D10 to module pin 7 and D5 to module pin 12.The
motor direction is controlled by sending a HIGH or LOW
signal to the drive for each motor or channel.
However the motors will not turn until a HIGH is set to the
enable pin and they can be turned off with a low to the same
pin. However if you need to control the speed of the motors,
the PWM signal from the digital pin connected to the enable
pin can take care of it.
4.3.2. Key Parameter The obstacle avoidance robotic vehicle uses ultrasonic
sensors for its movements. A microcontroller of 8051 family
Atmega 328P-PU Key parameters as shown in table. 1 is used to achieve the desired operation. The motors are
connected through motor driver IC microcontroller.
Table -1: Key parameter
The ultrasonic sensor is attached in front of the robot.
PARAMETER VALUE Whenever the robot is going on the desired path the
CPU type 8-bit AVR ultrasonic sensor transmits the ultrasonic waves
Performance 20 MIPS at 20 MHz continuously from its sensor head. Whenever an obstacle
Flash memory 32 kB comes ahead of it the ultrasonic waves are reflected back
SRAM 2 kB from an object and that information is passed to the
EEPROM 1 kB microcontroller. The microcontroller controls the motors
Pin count 28-pin PDIP, MLF,32- left, right, back, front based on ultrasonic signals. In order to
pin TQFP, MLF control the speed of each motor pulse width modulation is
Maximum operating 20 MHz used (PWM).
frequency
Number of touch channel 16 6. APPLICATION
Hardware Q Touch No
Acquisition Obstacle avoiding robots can be used in almost all
Maximum I/O pins 23 mobile robot navigation systems.
External interrupts 2
USB Interface No They can be used for household work like automatic
USB Speed - vacuum cleaning.
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 2142
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 02 | Feb-2018 www.irjet.net p-ISSN: 2395-0072
7. CONCLUSION
ACKNOWLEDGMENT
REFERENCES
[3] Mishra S., and Bande P., Maze Solving Algorithms for
Micro Mouse , IEEE International Conference on Signal
Image
[4] Dang (., Song J., and Guo Q., An Efficient Algorithm for
Robot Maze-Solving , in Proceedings of the Second
[6] https://create.arduino.cc/projecthub/albertoz/obstacle
-avoiding-robot-fb30e4
[7] https://en.wikipedia.org/wiki/Robotics
© 2018, IRJET | Impact Factor value: 6.171 | ISO 9001:2008 Certified Journal | Page 2143