Lab Report 8

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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