0% found this document useful (0 votes)
66 views5 pages

Lab Report 8

This document summarizes a lab report submitted by Taimoor Khan for an engineering lab course. The lab aimed to control two servo motors using a servo driver module and display the results on a serial monitor. The lab objectives were to study servo motors, control their speed and position, and understand how a servo driver works. The lab tasks involved connecting an Arduino, servo motors, and servo driver with jumper wires. Code was written and run to control the direction and speed of the servo motors using the servo driver and display results on the serial monitor.

Uploaded by

razakhan5114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views5 pages

Lab Report 8

This document summarizes a lab report submitted by Taimoor Khan for an engineering lab course. The lab aimed to control two servo motors using a servo driver module and display the results on a serial monitor. The lab objectives were to study servo motors, control their speed and position, and understand how a servo driver works. The lab tasks involved connecting an Arduino, servo motors, and servo driver with jumper wires. Code was written and run to control the direction and speed of the servo motors using the servo driver and display results on the serial monitor.

Uploaded by

razakhan5114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

DEPARTMENT OF MECHATRONICS

ENGINEERING
UNIVERSITY OF ENGINEERING AND TECHNOLOGY,
PESHAWAR
MtE-226L ACTUATING SYSTEM LAB, 4th Semester

LAB NO. 8
SUBMITTED BY : TAIMOOR KHAN
REG NO. : 20PWMCT0739

SUBMITTED TO : SIR WAHAD-UR-REHMAN

SUBMISSION DATE: 24-06-2022


LAB TITLE TO CONTROL TWO SERVO MOTOR USING
SERVO DRIVER MODULE MOTOR AND DISPLAY ON SERIAL
MONITOR.
LAB 8
LAB TITLE
TO CONTROL TWO SERVO MOTOR USING SERVO
DRIVER MODULE MOTOR AND DISPLAY ON SERIAL
MONITOR
 OBJECTIVES:
1. Servo motor and types of servo motor
2. Study the operational mechanism of servo motor
3. Control the speed of servo motor
4. Control the position of servo motor
5. Application of servo motor.
6. To study about the servo driver of servo motor and its usage.

THEORY:
Servo Driver:
A servo drive is an automatic device that takes a command signal and compares it with the
feedback from a servomechanism in order to provide the required voltage to a servo motor to
correct any deviation from the commanded status.

Mechanism Of Servo Drive:


The concept of the servomechanism is much older than the use of the current terms. The
Greeks used wind-driven servo-motors to continuously adjust the heading of their windmills
so the blades always faced into the wind. The history of these systems is difficult to trace as
the terms governor, regulators and follow-up device proceeded the use of servo motor
and servo drives.
The Industrial Revolution marked a major turning point in human social history. The
development of windmills, furnaces, boilers and at last the steam engine that could not be
regulated by an operator required automatic control. James Watt developed his fly-ball
governor for regulating speed of steam engines long before the term servo-motor came into
use and Nikola Tesla experimented with “wireless control” of model ship on the Potomac
River using electric contactor “servo-motors” to steer the models remotely.
Diagram Of Servo Driver:

IN LAB TASK EXPERIMENTATIONS:

Task no 1:
CONTROL DIRECTION AND SPEED OF 2 SERVO
MOTOR USING SERVO DRIVER
PROCEDURE
I. Take an arduino UNO, servo motor and a servo driver.
II. Then connect them with jumper wires.
III. Then write the code according to the circuit
IV. Then check the results.

CODING:

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>

Adafruit_PWMServoDriver srituhobby = Adafruit_PWMServoDriver();

#define servoMIN 150


#define servoMAX 600
void setup() {
Serial.begin(9600);
srituhobby.begin();
srituhobby.setPWMFreq(60);
}

void loop() {
for (int servo = 0; servo < 4; servo++ ) {
srituhobby.setPWM(servo, 0, servoMIN);
Serial.println(servo);
delay(300);
}

for (int servo = 3; servo >= 0; servo-- ) {


srituhobby.setPWM(servo, 0, servoMAX);
Serial.println(servo);
delay(300);
}
}

CIRCUIT DIAGRAM ON TINKERCAD:

Figure 1 tinker figure of servo driver circuit


REAL TIME CIRCUIT DIAGRAM:

Figure 2 Experimentation picture of servo module

SERIAL MONITOR READING:

RESULTS AND CONCLUSIONS


WE STUDY ABOUT
 Servo motor.
 Types of servo motor.
 Servo motor driver.
 Working and mechanism of servo driver.
 Then interfacing of arduino with servo motor and with servo driver.
 Perform different functions with servo using arduino and driver module.

You might also like