1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.

Slides:



Advertisements
Similar presentations
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Advertisements

Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Controlling Motors OBEY ME!. On-Off Control 1. Switch control.
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
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.
Digital Electronics Boe-Bot Navigation. This presentation will Detail how to program the Boe-Bot move a specific distance. Detail how to program the Boe-Bot.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
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.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Servos The material presented is taken from a variety of sources including:
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Living with the Lab Using servos with an Arduino EAS 199A Fall 2011.
Final Presentation Andres Fausto Stewart Bewley Philip Dawsey Ki Baek Eom.
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.
Basic Stamp II is kinda cool Bytes of EEPROM(non-volatile) - Clock speed of 20 MHz. - Holds 600 lines of code in EEPROM - executes an average of.
ME 224-Final Project Jim Lovsin Erica Morales Dan Sheehan Josh Widzer.
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
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Servo Motor Control Demonstration.
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
The Basic Stamp Instruction Set Architecture. The Microprocessor A microprocessor is a computer that typically has an architecture that is well suited.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
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.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
1 Introduction to the BOE-BOT BOE-BOT Lecture #1 DE - Digital Electronics.
603 A DIGITAL PROGRAMMABLE ROBOT OVERVIEW: BASED ON CONCEPT OF PLC. IS PROGRAMMABLE USING A KEYPAD. POWERED BY A 9 VOLT BATTERY. INSTRUCTIONS CAN BE PROGRAMMED.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.
DC Motor Control The material presented is taken from a variety of sources including: ponents/inductor001.html#howworks,
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Xtreme Robot Olympiad Programming Basics Dr. Peter Laz Associate Professor Department of Engineering University of Denver.
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.
IR Communication October 27, Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v
Servos The material presented is taken from a variety of sources including:
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
ENGR 101: Robotics Lecture 3 – Robot Motion Outline  Robot Motion  FOR Loops  Making Music References 
ENGR 101: Robotics Lecture 4 – Making Decisions Outline  The Stall Sensor  Making Decisions  Random Number Generation 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.
Digital Electronics Board-of-Education : Output. Board of Education - Output This presentation will explain, both from a hardware and software perspective,
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
DC motor principles Speed control Direction Stepper motor principles
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.
Controlling Servos with the Arduino
Introduction to Servos
Using servos.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Servos The material presented is taken from a variety of sources including:
Servos The material presented is taken from a variety of sources including:
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming Boe-Bots (Part 1)
Servos The material presented is taken from a variety of sources including:
PROMGRAMING YOUR ROBOT
Controlling YOUR ROBOT
Karl Jean-Francois-James Madison H.S. & Eldiquen Mangubat-IS 232
Programming the BASIC Stamp
UNIT 11: RC-SERVOMOTOR CONTROL
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Presentation transcript:

1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT

2 Servo A servo is a single device that contains: Motor Gearbox that gears down the motor to provide slower speeds (than most motors) and higher torque (power to turn). Built-in electronics such that the motor position or speed can be controlled by a series of pulses. The servo is powered using 5V (4.8 – 6.0 V) BOE-BOT Lecture #2 DE - Digital Electronics

3 Types of servos There are two types of servos: Unmodified servos – the servo can turn over a certain range, such as 180º –This type of servo is commonly used on RC (radio control) cars and airplanes for steering, moving control flaps, etc. –Most servos are of this type –Available in hobby stores, such as Hobbytown USA or Hungates –The servo position is controlled by varying the pulse width of a control signal (see below) Modified servos –This type of servo has been modified internally so that it will turn continuously. –This type of servo is useful as a drive motor for a robot, such as the BOE-BOT. –The servo speed is controlled by varying the pulse width of a control signal (see below) 0 degrees 90 degrees 180 degrees 0º0º 90º 180º Full speed CW Stop Full speed CCW CWStopCCW Pass around servos of each type in class BOE-BOT Lecture #2 DE - Digital Electronics

4 Controlling servos with the BASIC Stamp As just seen, servos are controlled by varying the pulse width of a control signal. This is easily done using the PULSOUT command. Recall that this command was also used to turn ON and OFF an LED with the BOE-BOT in an earlier lab. The form of the PULSOUT command is shown below: PULSOUT Command PULSOUT Pin Duration - this command is used to set the specified Pin HIGH for a time equal to Duration multiplied by 2 us. Example: PULSOUT set P5 HIGH for 1000 us = 1 ms If the example command above was used in the program shown below, it would produce the waveform shown. DO PULSOUT ‘Set P6 HIGH for 1 ms PAUSE 20 ‘Pause for 20 ms LOOP ‘ Loop continuously 1 ms P6 20 ms BOE-BOT Lecture #2 DE - Digital Electronics

5 Additional PBASIC Commands Variables are defined in PBASIC as follows. VAR Command Name VAR Size where size can be BIT, NIB, BYTE, or WORD where BIT uses 1 binary digit (bit) to store the value (so the max value is 1) NIB uses 4 bits to store the value (so the max value is = ) BYTE uses 8 bits to store the value (so the max value is = ) WORD uses 16 bits to store the value (so the max value is = ) Examples: X VAR BYTE X = 37 MouseVAR BIT‘Value can be 0 or 1 Cat VAR NIB‘Value can be 0 to 15 DogVAR BYTE‘Value can be 0 to 255 RhinoVAR WORD‘Value can be 0 to Mouse = 1 Cat = 8 Dog = 48 Rhino = BOE-BOT Lecture #2 DE - Digital Electronics

6 Additional PBASIC Commands Loops can be created in PBASIC in several manners. If a set of instructions are to be performed a specific number of times, the FOR … NEXT loop is convenient. FOR … NEXT Loop Command Count VAR Word ‘Use any variable name to serve as a loop counter FOR Count = InitialValue TO FinalValue STEP Increment List of instructions NEXT Example: (What does this program do?) N VAR BYTE FOR N = 0 TO 50 STEP 2 DEBUG CR,”HELL0” NEXT BOE-BOT Lecture #2 DE - Digital Electronics

7 Example: (What does this program do if an LED is connected to P12?) Number VAR Word FOR Number = 0 TO 10 ‘The increment equals 1 if STEP is omitted HIGH 12 PAUSE 1000 LOW 12 PAUSE 1000 NEXT What is the difference between the two programs shown below? DO PULSOUT PAUSE 20 LOOP M VAR Word FOR M = 1 TO 100 PULSOUT PAUSE 20 NEXT Estimate how long the second program will run (recall that the BASIC Stamp 2 executes about 4000 instructions/second so each instruction takes about 0.25 ms, not including any delays specified by the instruction). BOE-BOT Lecture #2 DE - Digital Electronics

8 Servos typically operate by receiving control signals where the pulse width varies from about 1.3us to about 1.7ms. So the signals shown below and the corresponding programs can be used to control a servo. 1.3 ms P6 20 ms DO PULSOUT ‘Set P6 HIGH for 1.3 ms PAUSE 20 ‘Pause for 20 ms LOOP ‘ Loop continuously Full speed CW 1.5 ms P6 20 ms DO PULSOUT ‘Set P6 HIGH for 1.5 ms PAUSE 20 ‘Pause for 20 ms LOOP ‘ Loop continuously Stop 1.7 ms P6 20 ms DO PULSOUT ‘Set P6 HIGH for 1.7 ms PAUSE 20 ‘Pause for 20 ms LOOP ‘ Loop continuously Full speed CCW BOE-BOT Lecture #2 DE - Digital Electronics

9 PULSOUT DurationServo speed and direction rpm CW rpm CW rpm CW rpm CW rpm CW rpm CW rpm CW 7209 rpm CW 7306 rpm CW 7403 rpm CW 7500 rpm (Stop) 7603 rpm CCW 7706 rpm CCW 7809 rpm CCW rpm CCW rpm CCW rpm CCW rpm CCW rpm CCW rpm CCW rpm CCW Example: Right-wheel servo test Each servo is a little different from the next, so in Team Assignment #3, each group will test their two servos by varying the pulse width gradually in order to determine the servos speed and direction for each value of Duration used with the PULSOUT Pin Duration command. Sample Test Program (servo connected to P13) FOR N = 1 T0 250 PULSOUT PAUSE 20 NEXT Vary the Duration from 650 to 850 and count the wheel revolutions Pick a number large enough so that you will have time to count the wheel revolutions. BOE-BOT Lecture #2 DE - Digital Electronics