28125 Parallax Inc, 28125 Datasheet - Page 102

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Solutions
Q1. Instead of holding a certain position like a standard servo, the Parallax
Q2. A millisecond lasts one thousandth of a second. Millisecond is abbreviated
Q3. The
Q4.
Q5. The variable sizes are bit, nib, byte, and word.
Q6. Pulse width controls servo speed and direction. As seen on a timing diagram, the
E1.
E2. The key to writing the variable declaration is to choose a variable size large
P1. The key to solving this problem is to send a pulse train to the LED as well as the
Continuous Rotation servos turn a certain direction at a certain speed.
"ms".
and over.
HIGH
Bit – Stores 0 to 1
Nib – Stores 0 to 15
Byte – Stores 0 to 255
Word – Stores 0 to 65535 or -32768 to +32767
pulse width is the high time. In PBASIC, the pulse can be generated with the
PULSOUT
speed and direction.
PAUSE 10000
enough to hold the value 24. A Nib (nibble) will not work, since the maximum
value a Nib can store is 15. Therefore, choose a Byte variable.
servo.
' Robotics with the Boe-Bot - Ch02Prj01_DimlyLitLED.bs2
' Run servo and send same signal to the LED on P14,
' to make it light dimly.
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program Running!"
DO
DO…LOOP
connects I/O pin to Vdd,
counter VAR Byte
FOR counter = 6 TO 24 STEP 3
NEXT
command. The
DEBUG ? counter
PAUSE 500
command is used to make other PBASIC commands execute over
PULSOUT
LOW
connects I/O pin to Vss.
command's
Duration
argument adjusts the

Related parts for 28125