Professional Documents
Culture Documents
Lab Report 8
Lab Report 8
Lab Report 8
ENGINEERING
UNIVERSITY OF ENGINEERING AND TECHNOLOGY,
PESHAWAR
MtE-226L ACTUATING SYSTEM LAB, 4th Semester
LAB NO. 8
SUBMITTED BY : TAIMOOR KHAN
REG NO. : 20PWMCT0739
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.
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>
void loop() {
for (int servo = 0; servo < 4; servo++ ) {
srituhobby.setPWM(servo, 0, servoMIN);
Serial.println(servo);
delay(300);
}