EML 6805 Robot Design Robotics Laboratory Florida International University Department of Mechanical Engineering SV203 Servo Motor Controller Board Basics.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

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:
Rotary Encoder. Wikipedia- Definition  A rotary encoder, also called a shaft encoder, is an electro- mechanical device that converts the angular position.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Servos The material presented is taken from a variety of sources including:
L.
SERVO MOTORS Tech Topic By Ryan Bidlack. Background A servo motor is composed of a DC, AC, or an AC induction motor and a feedback control. A servo motor.
New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2006 Class 5 May
ME 224 Experimental Engineering: Professor Espinosa 2005 TEAM : Jamie Charles Carlo Niko Javier.
SENIOR DESIGN 10/16.
Servo motor angle rotation control by adjusting PWM ratio.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
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.
EML 2023 – Motor Control Lecture 3 – Feedback Sensor Optical Encoder.
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.
L.C. Technology Servo Motor Control / Genie Software
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
Team Spot A Cooperative Robotics Problem A Robotics Academy Project: Laurel Hesch Emily Mower Addie Sutphen.
Servo Motor Control Demonstration.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a.
Robot and Servo Drive Lab. Department of Electrical Engineering Southern Taiwan University of Science and Technology 05/07/2014 T A R Y U D I Interfacing.
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.
Programming the CheapBot-14. Start the Editor Set the Mode.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Problem You are to design an automated goalie for an air hockey.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Problem You are to design an automated goalie for an air hockey.
Microprocessoren lesson 6. PWM /motor control/servo.
Xtreme Robot Olympiad Programming Basics Dr. Peter Laz Associate Professor Department of Engineering University of Denver.
Servos The material presented is taken from a variety of sources including:
Pool Player Bot Final Presentation Jiaying Zhang Mechanical Engineering.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
Servo Motor Control.
EV3 Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop
1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.
Wall-Follower Xiaodong Fang University of Florida School of Electrical and Computer Engineering Automatic Wall Following & Color Detecting Robot.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Servo Motor Control Using Arduino Instructor: Dr Matthew Khin Yi Kyaw.
Lynxmotion Robotic Arm © 2013 Project Lead The Way, Inc.Computer Integrated Manufacturing
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
DC MOTOR. Magnetism Opposites Attract / Likes Repel.
Sensors and Actuators Simple Sensors Switches and Pots Other Sensors Simple Actuators LEDs and Buzzers DC Motors MAE 156A.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Motors & Motor Controllers
Introduction to Motors, servos and steppers
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Application Case Study Security Camera Controller
Group members MUHAMAAD DANISH 2015MC05 USMAN ALI JAT 2015MC14 MUREED SULTAN 2015MC18 AZAN ASHRAF 2015MC19 AYMEN.
Introduction to Servos
Servo Motor.
Servos The material presented is taken from a variety of sources including:
Arduino - Introduction
Control a motors angular position with a flex sensor
Servos The material presented is taken from a variety of sources including:
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Servos The material presented is taken from a variety of sources including:
Controlling YOUR ROBOT
Servos.
Soft Haptics Lab, School of Materials Science, JAIST 3/26/ :05 AM Mechatronic Course -Duong, Van Lac Project: Design and control.
Introduction to Motors
Coding Edbot Dream with Scratch
UNIT 11: RC-SERVOMOTOR CONTROL
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Servo Motor.
Presentation transcript:

EML 6805 Robot Design Robotics Laboratory Florida International University Department of Mechanical Engineering SV203 Servo Motor Controller Board Basics By Andre Senior 02/24/2005

Introduction This presentation is geared at demonstrating basic control principles that can be used on a Pontech SV203 board using MS Visual BASIC. Warning: Use the information presented at your own risk, the author has made every effort to make the presented information accurate as best as possible, it is however the audience responsibility to assume any damages that may incur.

Servo Principles For Rotation, a pulse current has to be applied to the servo, typically to the white lead. This pulse determines the speed and direction of the servo’s horn.

Mathematically Example Specification: Model:FP-S148 Control System: + pulse,1.52ms neutral Op Angle: neutral180degree (full rotation) Supply Volt: Current: 8mA Torque: 42.0 Op Speed: 0.22 sec/60 degrees Meaning…………. For continuous rotating servos If we apply the first equation, we can determine the rotational angle moved within one pulse. Say 30 degrees will require a time of 0.11 sec. If we apply the last equation, we can determine the angular displacement of the servo’s horn. Say the horn is 2 cm in radius, with the same 30 degrees, the angular displacement will be 1.05 cm

Absolute Position Control The range of the position is between 1 and 255. On Servos with Potentiometers, not modified for continuous rotation, the maximum mechanical movement is about 180 degrees. The 1 to 255 position ranges gives a precision of a little under one degree (approximately 0.8 degrees). The figure below shows what position the servo will be given the value of positions 128, 1 and 255. The software can call the board to drive to the user desired positions.

Software Basics We need to associate three modules from Pontech to control the board within Visual Basic, or you could do it by directly sending Com port ASCII data through the chosen computer serial port. 1.PontechComm.bas 2.SV203.bas 3.Utility_Time.bas Next we need to associate MS Windows Communication protocol MSComm. Then lastly we need to write our own code in ‘ABC’ language Note: ABC is not a computer language, I really meant keep it simple and easy.

Example Software Code ‘Associate MS Windows Communication protocol MSComm with PontechComm Private Sub MSComm1_OnComm() PontechComm.OnComm End Sub Private Sub Form_Load() 'Pontech Board opens a communication port MSComm1.CommPort = CInt(CommPort.Text) ‘Choose Comm Port MSComm1.PortOpen = True Call PontechComm.DeclarePort(MSComm1) OpenComm.Enabled = True End Sub Note: The software code above has not been tested, but the elements required to associate MSWin Com and Pontech SV203 Board are there.

Example Software Code 2 Simple Servo Control Call SV203.ServoMove(servonum, positionnum) Servonum is the pin set on the board that the servo is connected to. Positionnum is the bit value assigned to the chosen servo, meaning……… for continuous rotating servos Set to 127 or 0 the servo stops, decrements or increments with 1 bit turns the servo with increasing speed in either direction. The bit range is 0 to 255. Otherwise the absolute position will occur for servos with potentiometers.

Example Software Code 3 Simple Sensor Control Sensor_Value_for Sensor_1 = CStr(SV203.ReadADC(1)) ReadADC(Chosen Sensor) reads the value of the sensor pin (1) that is chosen.

Complete Control Read all Sensors on the SV203 Board Private Sub Read_Sensors() Dim I As Integer For I = 1 To 5 ADC_Value(I).Caption = CStr(SV203.ReadADC(I)) Next I Exit Sub

Complete Control ‘Move all servos with respect to time and position Private Sub Move_All_Servos_WRT() Dim i As Integer for i = 1 to 8 Servo_Position_Value(i).Caption = CInt(positionnum_value(i).text) next i times = 1 Do Until times = Val(time) ‘Control of continuous rotating servos times = times + 1 for i = 1 to 8 Call SV203.ServoMove(i, positionnum) next i Loop for i = 1 to 8 Call SV203.ServoMove(i, 0) Next i End Sub

The End If you have any questions, please