How to build a Line Following Robot 2 – Motor controlling unit

Well, the motor controlling circuit with L293D is simple as follows. The line follower can turn left or right by changing wheel speeds. There for a simple control mechanism will be enough.

Pin 4 and 5 controls left motor while pin 6 and 7 controls the right motor.

H-Bridge IC


High Left

High Right

Low Left

Low Right

Description

On

Off

Off

On

Motor runs clockwise

Off

On

On

Off

Motor runs anti -clockwise

On

On

Off

Off

Motor stops or decelerates

Off

Off

On

On

Motor stops or decelerates

If you need to give pwm(pulse wave modulation) signal separately to each motor , you can disconnect pin 1 and 9 from +2V and give pwm1 to pin 1 and pwm2 to pin 9.

In next post we will discuss how to program the pic to follow the line.

Follow

Get every new post delivered to your Inbox.