Introduction to Servos

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

MOTION CONTROL ECE 105 Industrial Electronics Engr. Jeffrey T. Dellosa College of Engineering and Information Technology Caraga State University Ampayon,
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Servos The material presented is taken from a variety of sources including:
Boe-bots and STEM Boe-bots and STEM – This sectional will introduce participants to a programmable robot that is useful for engaging students in building.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
Navigating the BOE-BOT
Hardware Meets Software CPSC 120 Principles of Computer Science February 15, 2012.
Servos The material presented is taken from a variety of sources including:
EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.
Tony Yi 5/2/2015 CENG4480 TUTORIAL 3. ABOUT ME I am “the other” tutor of CENG4480 You can find me at Rm116 in SHB
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Components of a servomotor are: - a DC electric motor, - gears with an output shaft; - position-sensing mechanism; - control circuitry. Robotics and Automation.
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
Living with the Lab Using servos with an Arduino EAS 199A Fall 2011.
Servo motor angle rotation control by adjusting PWM ratio.
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
Servo Motors # A servo is a motor that you can position at any angle very accurately. # Servos have a limited servo range; most servos have a range of.
1 Servo Motor. 2 Overview A servo motor is a motor that is only capable of rotating 180 degrees A servo motor is controlled by giving it an angle to proceed.
Microcontrollers Module 4: Motion Control. Module Objectives Upon successful completion of this module, students will be able to: Give examples of microcontroller.
Applied Control Systems Robotics & Robotic Control
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Servo Motor Control Demonstration.
Robotics Engineering Basic Maneuvers. Getting the Boe-Bot to Move One of the first tasks we need to do is to get our bots moving.One of the first tasks.
Controlling the Outside World
Servo Motor Control Demonstration. EML 2023 Department of Mechanical and Aerospace Engineering motor with gear reducer flex coupling incremental optical.
Working with Arduino: Lesson #4: Servos EGN1007. Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino.
1 Parallax BASIC Stamp ® Tutorial Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
DC Motor Control The material presented is taken from a variety of sources including: ponents/inductor001.html#howworks,
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
Servos The material presented is taken from a variety of sources including:
ENGR 101: Robotics Lecture 3 – Robot Motion Outline  Robot Motion  FOR Loops  Making Music References 
Slide Menlo Drive Suite 100 Rocklin, CA
Digital Electronics The Boe-Bot and Servo Motors.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Servo Motor Control Using Arduino Instructor: Dr Matthew Khin Yi Kyaw.
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
INTERNET OF EVERYTHING SDU 2016 Week 9. Physical Output  Make things move by controlling motors with Arduino  Servo-motors  Rotary actuator that allows.
The “Board of Education” 1 Three-position switch 0 = OFF 1 = ON / wheels OFF 2 = ON / wheels ON breadboard (for building circuits) electrical power (V.
Motors & Motor Controllers
Controlling Servos with the Arduino
CU ATLAS Practical electronics Motion and Servos
Servo Systems Servo is mechanism based on feedback control.
Group members MUHAMAAD DANISH 2015MC05 USMAN ALI JAT 2015MC14 MUREED SULTAN 2015MC18 AZAN ASHRAF 2015MC19 AYMEN.
Servo Motor.
Using servos.
Servo Positioning Pulse Width Direction of Rotation PULSOUT Period
Servos The material presented is taken from a variety of sources including:
Control a motors angular position with a flex sensor
Servo Systems Servo is mechanism based on feedback control.
Servos The material presented is taken from a variety of sources including:
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Servos The material presented is taken from a variety of sources including:
PROMGRAMING YOUR ROBOT
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Controlling YOUR ROBOT
EET 2261 Unit 12 Controlling Stepper Motors and Servos
Karl Jean-Francois-James Madison H.S. & Eldiquen Mangubat-IS 232
Introduction to Motors
UNIT 11: RC-SERVOMOTOR CONTROL
Robotics System Lecture 11_12: DC Motor
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Servo Motor.
Presentation transcript:

Introduction to Servos The material presented is taken from a variety of sources including: www.seattlerobotics.org/guide/servos.html, www.baldor.com/pdf/manuals/1205-394.pdf and Parallax educational materials

Overview Servo motors are used for angular positioning, such as in radio control airplanes. The output shaft of a servo does not rotate freely, but rather is made to seek a particular angular position under electronic control.

What makes a Servo Servo motors and are constructed out of basic DC motors, by adding: some gear reduction a position sensor for the motor shaft an electronic circuit that controls the motor's operation The basic hobby servo has a 180:1 gear ratio. The motor is typically small. Typically, a potentiometer (variable resistor) measures the position of the output shaft at all times so the controller can accurately place and maintain it’s setting.

open-loop closed-loop Feed-back loop

Control The servo responds to a 1 to 2ms pulse/signal 20ms apart. An external controller (such as the Basic Stamp) tells the servo which direction and how fast to move. This is referred to as Pulse Width Modulation (PWM)

Pulse Width and Position A control wire communicates the desired angular movement. The angle is determined by the duration of the pulse applied to the control wire. The servo expects to see a pulse every 20 milliseconds (.02 seconds). The length of the pulse will determine how far the motor turns If the pulse is shorter than 1.5 ms, then the motor will turn clockwise. If the pulse is longer than 1.5ms, the shaft turns counter clockwise.

Parallax Servo Connections Servo Connector: Black – Vss Red – Vdd or Vin White – Signal

Servo on BOE Rev. C Adjust jumper to connect to Vin

Programming Servos Recall that the servo is controlled by bursts of signals spaced 20mS apart. A high signal can last between 1mS to 2mS. The PULSOUT instruction is used to send the signals: PULSOUT pin, duration pin: Defines which I/O pin to use. duration: defines how long the pulse should last, but it in NOT in mS. The servo-motors are activated by sending them "pulses" of electricity at varying frequencies:

PBASIC PULSOUT command The PULSOUT duration is in 2 microsecond (uS) increments. 1 S = .000001 seconds. 1 mS = 1000S To send a 1.5ms pulse which will center/stop the servo: Convert 1.5ms to 1500 S Divide 1500 by 2 = 750 Then use PULSOUT 13, 750 in your code. This will send a pulse that lasts 750 x 2 S = 1500 S or 1.5 mS on pin 13.

Moving Your Boe-Bot Forward The left servo is connected to port 13 The right servo is connected to port 12 To move Forward: Pulsout 13, 850 Lft must turn CCW (750 -850) Pulsout 12, 650 Rt must turn CW (650 – 750) 850 = 1.7ms pulse = full speed CCW (1700 s /2) 750 = 1.5ms pulse = center & stop(1500 s /2) 650 = 1.3ms pulse = full speed CW (1300 s /2) Notice that a tiny change in pulse width has huge effects on the servo. You can slow the servo down by using 780 for left and 720 for right. I added and subtracted 30 from 750. To move forward, both values must be the same absolute distance from 1.5 (750).

Moving Your Boe-Bot Backwrds The left servo is connected to port 13 The right servo is connected to port 12 To move Backwards: Pulsout 13, 650 Lft must turn CW (650 - 750) Pulsout 12, 850 Rt must turn CCW (750 – 850) 850 = 1.7ms pulse = full speed CCW (1700 s /2) 750 = 1.5ms pulse = center & stop(1700 s /2) 650 = 1.3ms pulse = full speed CW (1300 s /2)

Turning Your Boe-Bot The left servo is connected to port 13 The right servo is connected to port 12 For Left turns: Pulsout 13, 650 Lft must turn CW (650 - 750) Pulsout 12, 650 Rt must turn CW For Right turns: Pulsout 13, 850 Lft must turn CCW (750 - 850) Pulsout 12, 850 Rt must turn CCW

Summary For Motion Control Summary of Servo PulsOut Commands Left (P13) Right (P12) Resulting Motion 850 650 Forward Full Speed 750 Forward Right Turn Forward Left Turn Backward Full Speed Backward Right Turn Backward Left Turn Counter-clockwise Pivot No Motion Clockwise Pivot

Example For One Servo