Professional Documents
Culture Documents
FOLLOWING ROBOT
OVER VIEW
Introduction
Basic principle
Components used
1. Chassis
2. DC motors
3. Microcontroller(ATmega16-pin diagram, associated registers
etc.)
4.
I.R Sensors
5. Motor driver IC
. Working
. Algorithm
. Application
. Limitations
. References
INTRODUCTION
Line follower is a robot which follows
either black line in white area or white
line in black area.
Robot must be able to detect a line and keep
following it.
BASIC PRINCIPLE
SENSOR ARRAY
FOR LINE
DETECTION
DECISION MAKING
CIRCUIT TO DECIDE
DIRECTION OF
MOTION
MOTORS TO
PROVIDE
CONTROLLED
MOTION
MOTOR DRIVER
CIRCUIT
COMPONENTS USED IN
CIRCUIT
Chassis
Motors
ATmega16 microcontroller
Motor driver IC (L293D)
Resistors-R1 to R4.
IR transmitters IR TX1,IR TX2
IR Receivers -IR RX1,IR RX2
CHASSIS
PROVIDES
A BASE
TO THE ROBOT
WHEELS
,SENSORS AND
CONTROLLER
BOARD ARE
ATTACHED TO IT
DC MOTOR
A DC Motor is an electric motor that runs on
direct current and gives rotating motion as
an output.
In robotic application DC motors
are preferred over AC motors
as the motor and circuit
require same kind of supply
i.e. DC supply
DC motor is a non polar device i.e. polarity
of
DC motor is not fixed.
DC MOTOR
When you apply a DC supply it will rotate in
one direction and its direction can be changed
by changing the polarity of DC supply.
We do not connect DC motor with
microcontroller directly because the amount of
current output from microcontroller pin is not
sufficient enough to generate a magnetic field
which can rotate the shaft
Thus, we need to amplify the current coming
out of the microcontroller pin. Here we use
Motor driver IC L293D
MICROCONTROLLER
DIFFERENCE BETWEEN
MICROCONTROLLER &
MICROPROCESSOR
MICROCONTROLLER
It has I/O ports,
memory timers etc all
integrated on chip.
It is a full fledged pc
ROM ,RAM,FLASH
CPU,ALU ON chip
peripheral
MICROPROCESSOR
I/O ports, memory
timers etc are to be
connected externally.
Separated units
ATMEGA16
MICROCONTROLLER
PIN DIAGRAM
ATMEGA16 MICROCONTROLLER
PORTx
0
PINx1
PINx2
PINx3
PINx4
PINx5
PINx6
PINx7
Pinx is an 8bit register that stores the logic value, the current state
of the physical pins on PortX.
So to read the value of the pins of the Portx, you read the values
that are in its PIN register.
PORTx
1
PORTx
3
PORTx
4
PORTx
5
PORTx
6
PORTx
7
Portx is an 8 bit register which stores the logic values that currently
being outputted on the physical pins of Portx if the pins are
configured as output pins.
So to write the values to a port you write the values to the Port
register of that port.
IR SENSORS
An infrared sensor is an electronic instrument
which is used to sense certain characteristics of its
surroundings by either emitting and/or detecting
infrared radiation
IR SENSORS IN L.F.R
IR sensor circuit consists of mainly IR
transmitter and IR receiver
IR receiver is connected in reverse bias
and a 15K resistor is placed between VCC
and the receiver.
IR transmitter is similar to an LED. Its
operating voltage is around 1.4V. So to
protect it, a 10k resistor is placed before IR
and is connected in forward biased
Output is taken between resistor and IR
receiver.
WORKING
ALGORITHM
STEP1: start
STEP2: configure sensor port as input port
STEP3: configure motor ports as output ports
STEP4: check while(1) is true or false, if false move
to11
STEP5:make condition if both motors are on white motors
go forward
STEP6:make condition if left sensor is on black motor take
left turn
STEP7:make condition if right sensor is on black motors
take right turn
STEP8: else motor should be stop
STEP9: give a sufficient delay
STEP10: go to step4
STEP11: end
APPLICATIONS OF LINE
FOLLOWING ROBOT
THANK YOU