The Robot is a Mechatronics System which mainly consists a Microcontroller/Microprocessor, Robot Chassis/Body, Wheels, Arms, Battery, Actuators and different types of motors such as DC Motors, Servo Motors, Stepper Motors, BLDC Motors etc. These motors do have different scopes as per the robotic application requirement. So, if we will talk about the vehicle robot then normally Geared DC motors are widely used. If your application requirement is High Torque then you must go with low speed DC motors & vice-versa. If you have already seen the article of DC Motor Interfacing with 8051 then you will not feel any difficulty in interfacing at all.
Let’s discuss about the Vehicle Robot which has two motors at right & left in the back side and one Caster Wheel at the center in the front side. We will control the movement of the Vehicle Robot by controlling the back motors.
Vehicle Robot can run in 6 directions namely:
- Forward Direction
- Backward Direction
- Forward Soft Right
- Forward Soft Left
- Forward Fast Right
- Forward Fast Left
|Sr. No.||EN1, EN2||P2.3||P2.2||P2.1||P2.0||Robot Direction|
|Left Motor||Right Motor|
|3||1||1||0||0||0||Forward Soft Right|
|4||1||0||0||0||1||Forward Soft Left|
|5||1||1||0||1||0||Forward Fast Right|
|6||1||0||1||0||1||Forward Fast Left|
As per in the diagram the motor driver L293D is used to drive the Geared DC Motors. To control the Vehicle Robot In all above six directions, you should follow the below table.
Connect Red wires of DC motors M1 & M2 to OUT1 & OUT3 pins of L293D motor driver IC respectively and connect Black wires of DC motors M1 & M2 to OUT2 & OUT4 pins of L293D motor driver IC respectively.