Professional Documents
Culture Documents
PLT424 Laboratory 1
PLT424 Laboratory 1
PLT424 Laboratory 1
LABORATORY MODULE
PLT 424 / 3
AUTOMATED GUIDED VEHICLE
EXPERIMENT 1
DC Motor Wheeled Moving Direction
(Proteus Simulation Programming)
EXPERIMENT
1. OBJECTIVES:
3. INTRODUCTION:
Different types of motors are used in different applications like Robotics, precision
positioning, industrial automation etc. Generally, when a DC motor is associated
with any microcontroller-based system, it is often connected using a Motor Driver
IC. A Motor Driver IC provides the necessary current for the motor to run. It can
also control the direction of the rotation. In this project, an Arduino based speed
and direction control of DC motor with using Motor Driver IC which are L293D or
L298. A DC Motor can’t be connected directly to a Microcontroller as the output
because a current of the Microcontroller is very small and it cannot drive the motor
itself.
The L293 is a very basic H-bridge. It has two bridges, one on the left side of the
chip and one on the right, and can control 2 motors. It can drive up to 1 amp of
current and operate between 4.5V and 36V. The small DC motor you are using in
this lab can run safely off a low voltage so this H-bridge will work just fine.
• Pin 1 (1,2EN) enables and disables our motor whether it gives HIGH or LOW
• Pin 2 (1A) is a logic pin for our motor (input is either HIGH or LOW)
• Pin 3 (1Y) is for one of the motor terminals
Figure1 is shown a diagram of the H-bridge and which pins do what in our example.
Included in the diagram is a truth table indicating how the motor will function
according to the state of the logic pins (which are set by our Arduino).
For this lab, the enable pin connects to a digital pin on your Arduino so you can
send it either HIGH or LOW and turn the motor ON or OFF. The motor logic pins
are also connected to designated digital pins on your Arduino so you can send it
HIGH and LOW to have the motor turn in one direction, or LOW and HIGH to have
it turn in the other direction. The motor supply voltage connects to the voltage
source for the motor, which is usually an external power supply. If your motor can
run on 5V and less than 500mA, you can use the Arduino’s 5V output. Most
motors require a higher voltage and higher current draw than this, so you
will need an external power supply in your design.
Student must know to write the coding in language of Arduino coding IDE software
for DC motor moving and breaking. The coding able to get at many of programmer
Arduino website. The technique or skill how to write the coding should be learned
by own self. While finish the coding writing user must remember to open the
Preferences in File menu bar box and select the compilation before compile the
target or coding. After finish verification, the hex file is created and copy the target
to the Proteus simulation for running.
4. PROCEDURE:
ii. Copy the Arduino Library from Arduino website to Proteus LIB and
pick the components in Proteus Library.
iii. Write the coding such as shown in Figure3 and add the coding for
reverse, right-turn and left-turn and compile the coding successfully
in Arduino IDE software
v. Fill in the table1 for each function of pins for L923 H-Bridge driver
for wheeled moving characteristic.
vi. Draw the flow chart in Lab Assessment below, where is the robot
car has moving forward in 4 seconds then reverse in 2 second,
after that it turn right and move forward in 2 second and it turn left
to and moving forward in 3 second then the robot car has stopped
at destination.
1 | FTKE
Automated Guided Robot Laboratory Assessment
DISCUSSION (5 Marks)
CONCLUSION (5 Marks)
2 | FTKE
PLT 424 AUTOMATED GUIDED ROBOT - SEMESTER 1 2020/2021 ACADEMIC SESSION: LABORATORY RUBRICS (LAB 1)
PANEL SIGNATURE : ∕ 35
3 | FTKE