Professional Documents
Culture Documents
Lab 3
Lab 3
Lab 3
Objectives:
Introduction
Motor speed and direction control is a fundamental aspect of robotics and
automation, playing a pivotal role in determining the movement, precision,
and functionality of robotic systems. Whether it's in industrial automation,
mobile robots, or even hobbyist projects, the ability to precisely manage
the speed and direction of motors is the cornerstone of achieving tasks
efficiently and with precision. By modulating the rotational speed and
steering of motors, we unlock a world of possibilities, from the precise
positioning of robotic arms to the navigation of autonomous vehicles. In
this realm of control, we delve into the technologies and methodologies
that empower us to manipulate motors with finesse, turning them into the
obedient workhorses of our mechanized world.
Direction of a DC Motor:
To change the direction of a DC motor, you need to reverse the polarity of the voltage applied to
the motor. This can be accomplished in several ways, depending on your application and the
available components. Here are some common methods for reversing the direction of a DC motor:
A
Robotics Lab LAB 3
H Bridge:
Circuit containing 4 switching elements + 4 catch diodes
Switching elements are usually bipolar transistors or MOSFETs
Catch diodes are used to prevent short circuiting
Path of current controlled by switches
Incorrect path
L298n Specifications
Task:
Task Description: Moving a Robot Along a Rectangular Path with Timed Movements
In this lab task, the objective is to program a robot to move along a rectangular path,
performing a series of timed movements. The lab demonstrates fundamental concepts of
robot kinematics, motion control, and sequencing.
1- Write a code to program Arduino to run a robot in rectangular path in varying speed to
complete two laps.
Note: Paste your code in the manual:
1- Write a code to program Arduino to spin a robot along y axis and after 5 second of
spinning, the rotation of robot spin should be inverse for next 5 seconds.
Note: Paste your code in the manual:
Robotics Lab LAB 3