1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy...
-
Upload
walter-ross -
Category
Documents
-
view
226 -
download
2
Transcript of 1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy...
![Page 1: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/1.jpg)
1
Lecture 1: Your Boe-Bot's Servo Lecture 1: Your Boe-Bot's Servo MotorsMotors
Presentation based on:
"Robotics with the Boe-Bot"By Andy LindsayParallax, Inc
Presentation developed by:Presentation developed by:
Martin A. HebelMartin A. HebelSouthern Illinois University CarbondaleSouthern Illinois University CarbondaleCollege of Applied Sciences and ArtsCollege of Applied Sciences and ArtsElectronic Systems TechnologiesElectronic Systems Technologies7/6/04
![Page 2: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/2.jpg)
2
Continuous Rotation ServoContinuous Rotation ServoUsed to provide drive motion for the Bot.
Standard Servo: Used for positioning, such as with RC airplanes rudder and flaps.Continuous Rotation Servo: Rotate in a certain direction and speed.
![Page 3: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/3.jpg)
3
Tracking TimeTracking Time
PAUSE is used to have the BASIC Stamp wait a short amount of time.PAUSE duration• Duration is in milliseconds (mS) or
1/1000th of a second, 1-65535
PAUSE 1000
![Page 4: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/4.jpg)
4
![Page 5: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/5.jpg)
5
Repeating ActionsRepeating Actions
A DO….LOOP is used to repeat a sequence of commands.DO
'Commands to performLOOP
![Page 6: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/6.jpg)
6
Servo SignalsServo Signals
Servos are controlled with a high pulse lasting a short time, and repeated.
The PULSOUT instruction can be used to send a short pulse.PULSOUT Pin, Duration• Pin: Pin device is connected to.• Duration: Time in 2S (microsecond)
intervals, 1-65535. Microsecond = 1 millionth of a second.
PULSOUT 12, 1PULSOUT 13, 2
![Page 7: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/7.jpg)
7
![Page 8: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/8.jpg)
8
Servo SignalsServo Signals
Typical servos require a pulse of 1mS to 2mS to define the direction/position.
A 20mS pause be between each pulse.
What values of PULSOUT are in the valid range?
![Page 9: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/9.jpg)
9
Connecting the ServosConnecting the Servos
![Page 10: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/10.jpg)
10
![Page 11: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/11.jpg)
11
Centering the ServosCentering the Servos
The pulse width defines the direction and speed of the servo motor.• 1000 – Maximum speed one direction• 750 – Stopped• 500 – Maximum speed other direction
Use the servo center programs to ensure it is stopped at 750.
![Page 12: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/12.jpg)
12
![Page 13: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/13.jpg)
13
Storing and Counting ValuesStoring and Counting Values
Variable are used to store valuesVariables much be declared prior to
being used. Declaring a variable is giving it a name, and a size to hold.VariableName var Size
![Page 14: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/14.jpg)
14
DEBUG ? is short hand to display the value of a variable or pin.
![Page 15: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/15.jpg)
15
Counting and Controlling Counting and Controlling RepetitionsRepetitionsFOR…NEXT loops can be used to
control the number of repetitions a segment of code takes.
FOR StartValue TO EndValue {STEP StepValue}…NEXT
![Page 16: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/16.jpg)
16
What will this code do?What will this code do?
Freq VAR Word
DO FOR Freq = 1000 to 5000 Step 100
DEBUG ? Freq FREQOUT 4, 100, Freq
TOGGLE 12 TOGGLE 13NEXT
LOOP
![Page 17: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/17.jpg)
17
Testing ServosTesting Servos
To control the servo, send a series of pulses with values between 500 to 1000 (1-2mS)
Changing the value will change the direction and speed to some extent.
![Page 18: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/18.jpg)
18
FOR…NEXT to Control Servo Run FOR…NEXT to Control Servo Run TimeTimeThe FOR…NEXT Loop can be used to
control how long to drive a servo.
![Page 19: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/19.jpg)
19
![Page 20: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/20.jpg)
20
ReviewReview
![Page 21: 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.](https://reader038.fdocuments.in/reader038/viewer/2022102808/56649cea5503460f949b4ed9/html5/thumbnails/21.jpg)
21