Use and Copyright Microcontroller Motion Activity #1: Connecting and Testing the Servo Servo on Board of Education Rev. C Servo on Board of Education

Similar documents
Use and Copyright "What's a Microcontroller" Distribution:

Intro to Engineering II for ECE: Lab 3 Controlling Servo Motors Erin Webster and Dr. Jay Weitzen, c 2012 All rights reserved

Feed-back loop. open-loop. closed-loop

In this activity, you will program the BASIC Stamp to control the rotation of each of the Parallax pre-modified servos on the Boe-Bot.

Chapter #4: Controlling Motion

Experiment #3: Micro-controlled Movement

Chapter #5: Measuring Rotation

Chapter 3: Assemble and Test Your Boe-Bot

3DOF Leg Kit Assembly Guide VERSION 1.0

the Board of Education

HB-25 Motor Controller (#29144)

Parallax Servo Controller (#28023) Rev B 16-Channel Servo Control with Ramping

Directions for Wiring and Using The GEARS II (2) Channel Combination Controllers

Parallax MHz RF Transmitter (#27980) Parallax MHz RF Receiver (#27981)

RoBoard Servo Motor RS-0263 Manual V1.01 The Heart of Robotics. Dec 2010 DMP Electronics Inc.

Infrared Remote AppKit (#29122)

Web Site: Forums: forums.parallax.com Sales: Technical:

Robotics with the Boe-Bot Student Guide

Controlling Your Robot

InnobotTM User s Manual

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Understanding Signals Student Guide

Servo Commander 32 User s Guide

Programming PIC Microchips

WMX2 Parameter Manual

SMART Funded by The National Science Foundation

High Speed Continuous Rotation Servo (# )

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

Process Control Student Guide

Basic Analog and Digital Student Guide

BAS32L. 1. Product profile. High-speed switching diode. 1.1 General description. 1.2 Features and benefits. 1.3 Applications. Quick reference data

Advanced Mechatronics 1 st Mini Project. Remote Control Car. Jose Antonio De Gracia Gómez, Amartya Barua March, 25 th 2014

Mini Hexapodinno. 18-DOF Robot

Servo Runner A User s Guide

Please note that Robots can move without warning, wear eye protection at all times and never touch a powered robot!

BT D. 1. General description. 2. Features and benefits. 3. Applications. 4. Quick reference data. 4Q Triac

EDE1204 Bi-Polar Stepper Motor IC

PROGRAMMABLE CFE PULLER

BAV102; BAV103. Single general-purpose switching diodes

The Torxis Linear Servo meets the following environmental conditions:

Hyperfast power diode in a SOD59 (2-lead TO-220AC) plastic package.

Robotics! Student Guide. Version 1.4

Basic Analog and Digital Student Guide

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

Chapter 2: Your Boe-Bot's Servo Motors

Symbol Parameter Conditions Min Typ Max Unit V F forward voltage I F =10mA V P ZSM. non-repetitive peak reverse power dissipation

Thinking Robotics: Teaching Robots to Make Decisions. Jeffrey R. Peters and Rushabh Patel

Table 1. Quick reference data Symbol Parameter Conditions Min Typ Max Unit V RRM. half sine wave; T sp 112 C; Fig A

PESD5V0F1BSF. 1. Product profile. 2. Pinning information. Extremely low capacitance bidirectional ESD protection diode. 1.1 General description

Bipedinno. 12-DOF Waist-high Robot

15 Amp Digital High Frequency PWM Motor Speed Controller SPD-315-D and SPD-315-DS

Table 1. Quick reference data Symbol Parameter Conditions Values Unit Absolute maximum rating V DRM repetitive peak off-state

Ultra compact transient voltage supressor

SRVODRV REV7 INSTALLATION NOTES

Chapter 2: DC Measurements

BT G0T. 1. General description. 2. Features and benefits. 3. Applications. 4. Quick reference data. 4Q Triac

PSMN018-80YS. N-channel LFPAK 80 V 18 mω standard level MOSFET

PESD5V0S2BT. 1. General description. 2. Features and benefits. 3. Applications. 4. Quick reference data

AN NTAG21xF, Field detection and sleep mode feature. Rev July Application note COMPANY PUBLIC. Document information

ACT108W-600E. Table 1. Quick reference data Symbol Parameter Conditions Min Typ Max Unit V DRM. full sine wave; T j(init) = 25 C; t p = 16.

UM Slim proximity touch sensor demo board OM Document information

PTVS20VU1UPA. 1. General description. 2. Features and benefits. 3. Applications. 4. Quick reference data. 300 W Transient Voltage Suppressor

PESD2IVN-U. 1. General description. 2. Features and benefits. 3. Applications. Quick reference data

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Ultra low capacitance ESD protection array

RC Interface Controller Board Assembly and Operation

Independent Technology Service Inc Independence Ave. Chatsworth, California Toll Free:

RB521CS30L. 1. Product profile. 100 ma low V F MEGA Schottky barrier rectifier. 1.1 General description. 1.2 Features and benefits. 1.

Dual ultrafast power diode in a SOT78 (TO-220AB) plastic package.

BUK9Y19-75B. N-channel TrenchMOS logic level FET

PTVS22VU1UPA. 1. General description. 2. Features and benefits. 3. Applications. 4. Quick reference data. 300 W Transient Voltage Suppressor

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

PESD3V3S1UB. 1. General description. 2. Features and benefits. 3. Application information. 4. Quick reference data

High-speed switching diode in dual series configuration, encapsulated in a small SOT23 (TO-236AB) Surface-Mounted Device (SMD) plastic package.

Assembly Guide Robokits India

ESD protection for In-vehicle networks

DISCRETE SEMICONDUCTORS DATA SHEET. BT150 series Thyristors logic level

PESD5V0L1ULD. Low capacitance unidirectional ESD protection diode

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

ME 2110 Controller Box Manual. Version 2.3

THE NAVIGATION CONTROL OF A ROBOTIC STRUCTURE

What s a Microcontroller? Student Guide

RB520CS30L. 1. Product profile. 100 ma low V F MEGA Schottky barrier rectifier. 1.1 General description. 1.2 Features and benefits. 1.

PN7120 NFC Controller SBC Kit User Manual

ESD protection for In-vehicle network lines in automotive enviroments CAN LIN FlexRay SENT

OLH7000: Hermetic Linear Optocoupler

What s a Microcontroller? Student Guide

PSMN2R0-30YL. N-channel 30 V 2 mω logic level MOSFET in LFPAK. High efficiency due to low switching and conduction losses

High-speed switching in e.g. surface-mounted circuits

PSMN5R0-100PS. N-channel 100 V 5 mω standard level MOSFET in TO-220. High efficiency due to low switching and conduction losses

DI 24 VDC. Stepper Axis. Dual Stepper Motion Module Applications Guide. 8 Digital Input +24 VDC Sourcing. Stepper. Contents. Programming a Stepper...

Table 1. Quick reference data Symbol Parameter Conditions Min Typ Max Unit I F forward current [1] ma V R reverse voltage V V RRM

Job Sheet 2 Servo Control

Standard Recovery Diodes, 400 A

PESD24VS1ULD. 1. General description. 2. Features and benefits. 3. Application information. 4. Quick reference data

PSMN3R3-80ES. N-channel 80 V, 3.3 mω standard level MOSFET in I2PAK. High efficiency due to low switching and conduction losses

PSMN4R5-40BS. N-channel 40 V 4.5 mω standard level MOSFET in D2PAK. High efficiency due to low switching and conduction losses

VS-85HF(R), VS-86HF(R), VS-87HF(R), VS-88HF(R) Series Standard Recovery Diodes, (Stud Version), 85 A

OM29110 NFC's SBC Interface Boards User Manual. Rev May

Table 1. Quick reference data Symbol Parameter Conditions Min Typ Max Unit V RRM. half sine wave; T lead 83 C; Fig A

Transcription:

Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern Illinois University Carbondale C ll College off Applied A li d S Sciences i and da Arts Electronic Systems Technologies 9/02/03 1

Presentation Index Use and Copyright Microcontroller Motion Activity #1: Connecting and Testing the Servo Servo on Board of Education Rev. C Servo on Board of Education Rev. B Servo on Board of Ed. Rev A or HomeWork Board Programming Servo Control Activity #2: Controlling position with your Computer Activity #3: Converting Position to Motion Activity #4: Servo Control with Pushbuttons Standard d and Continuous Rotation ti Servos Chapter #4 Review Links 2

Use and Copyright This presentation supplements "What's a Microcontroller" by Andy Lindsay. (Link to text at Parallax) This presentation ti is not a replacement for the text. t Important concepts of the text are highlighted. In some cases, additional material has been added to augment the text. Denoted by titles colored gold. Full program listings are generally not provided in the presentation. Distribution: This presentation may be freely distributed without modifications. Modifications are permitted by schools and organizations for internal use only. Credits, use and copyright slides must remain. 3

COPYRIGHTS AND TRADEMARKS This documentation is Copyright 2003 by Parallax, Inc. By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication of this documentation for commercial uses is expressly prohibited by Parallax, Inc. Check with Parallax for approval prior to duplicating any of our documentation in part or whole for any use. BASIC Stamp is a registered trademark of Parallax, Inc. If you decide to use the name BASIC Stamp on your web page or in printed material, you must state that "BASIC Stamp is a registered trademark of Parallax, Inc." Other brand and product names are trademarks or registered trademarks of their respective holders. DISCLAIMER OF LIABILITY Parallax, Inc. and Southern Illinois University are not responsible for special, incidental, or consequential damages resulting from any breach of warranty, or under any legal theory, including lost profits, downtime, goodwill, damage to or replacement of equipment or property, or any costs of recovering, reprogramming, or reproducing any data stored in or used with Parallax products. Parallax is also not responsible for any personal damage, including that to life and health, resulting from use of any of our products. You take full responsibility for your BASIC Stamp application, no matter how life threatening it may be. 4

Microcontroller Motion Microcontrollers control the motion of many things in our daily lives: Printer head movement. DVD and VCR mechanisms. Grocery store automatic ti doors. Robotic movement. Instead of being simply ON-OFF, many of these motion devices require very fast pulses of signals for position control or movement. 5

Examples of motors and motion devices: DC Motors AC Motors Stepper Motors Servos All of these can be controlled from the BASIC Stamp, though many need additional electronic circuitry or additional mechanical components. The BASIC Stamp cannot directly drive a 25 amp DC motor, but it could with some additional components! 6

The hobby servo is the simplest and most directly-useful of all DC motors to control from the BASIC Stamp and will be the topic of this chapter. The hobby servo is easy to connect and control, and has a useful mechanical output. 7

Activity #1: Connecting and Testing the Servo Servo Parts: Servo Connector: Black Vss Red Vdd or Vin White Signal 8

Circuit to be built: The servo can be damaged with voltages above 9V. A walltransformer may be stated to be 9V, but output 12V. If using anything but batteries, verify the supply is no more than 9V. See your text. Connecting to the servo to the board depends on which board you have. 9

Servo on Board of Ed. Rev A or HomeWork Board A capacitor is needed to act as a 'surge volume' for electrons. It will supplement the voltage regulator when the servo draws power. Electrolytic capacitors can explode if connected reverse polarity. Take care connecting and applying power. Wear Safety Glasses! 12

Servo on Board of Ed. Rev A or HWB (cont) Remove power Connect circuit Use a connector like this 13

Servo on Board of Ed. Rev A or HWB (cont) Connect t Servo 14

Programming Servo Control The servos 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. 15

The PULSOUT duration is in 2 microsecond (us) increments. 1 µs =.000001 seconds. 1 ms = 1000µS For a command of: PULSOUT 14,750 This would be sending a pulse that lasts 750 x 2 µs = 1500 µs or 1.5mS on pin 14. 16

The ServoTest program sends out groups of pulses with durations of: 500 = 1 ms 750 = 1.5 ms 1000= 2mS Example Code: When ran, the pulse of 1000 is sent 150 times with 20mS pauses. 17

18

As the program is ran, the servo's horn turns from the 10 o'clock to 2 o'clock to 12 o'clock positions. The pulse width defines the absolute position the servo should move to over its 90 degree range. There a variety of servos, and the range of travel may vary. 19

20

Activity #2: Controlling position with your Computer The Servo Control With Debug program uses the DEBUG debug window to allow the user to enter the number of pulses and the duration. Once prompted, the user enters the data: 21

The DEBUGIN command dis used dto accept data FROM the computer sent TO the BASIC Stamp when it is entered in the text box. DEBUGIN DEC Pulses Experiment with the values. Be sure to use durations between 500 and 1000 to prevent damage to the servo. 22

23

Of course, users make mistakes, so it would be a good idea to ensure the user enters durations only within the legal l range! If you make a mistake entering a number, press the reset button on the board. The backspace key sends data which the BASIC Stamp uses the same as the Enter key. 24

Activity #3: Converting Position to Motion By changing the horn's position each pass through a loop, you can get motion. The STEP part of the FOR NEXT defines how much to add each repetition. By modifying the STEP value the velocity of the servo can be controlled. 25

Activity #4: Servo Control with Pushbuttons Add two pushbuttons to the circuit it to control the Servo's position. 26

27

Standard and Continuous Rotation Servos The standard d servo has a feedback mechanism connected to the horn shaft. As the pulse is read, the actual position is compared to the setting, and the horn will turn until the two match. The servo has a very high torque when being gpositioned. 28

The continuous rotation servo, or 'modified servo' has the feedback and mechanical stops removed. The feedback mechanism is adjusted so the a center pulse (750 or 1.5mS) stops the servo. Pulses above and below center allow it to rotate freely at varying speeds in both directions. This makes a popular p wheel drive system for table-top robots such as the Boe-Bot. 29

Chapter #4 Review Motors, stepper motors and perform mechanical motion that can be controlled by the BASIC Stamp. The is easiest to control with no additional hardware or electronics. The Servo's position is controlled by high pulses lasting from. Pulses are required to have a low time between them. The command is used to send pulses. The duration is in increments. How can you control a servo's velocity? 30

Links BASIC Stamp Home Stamps In Class Home BASIC Stamp Software BASIC Stamp Robots BASIC Stamp Yahoo Group Stamps In Class Yahoo Group SIUC EST Degree 31