28125 Parallax Inc, 28125 Datasheet - Page 71

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
DO
LOOP
Your Turn – Viewing the Full Speed Servo Signal
Remember the servo signal is 100 times as fast as the program you just ran. First, let’s
try running the program ten times as fast. That means divide all the
(
Now, let’s try 100 times as fast (one hundredth of the duration). Instead of appearing to
flicker, the LED will just appear to be not as bright as it would when you send it a simple
high signal. That’s because the LED is flashing on and off so quickly and for such brief
periods of time that the human eye cannot detect the actual on/off flicker, just a change in
brightness.
PULSOUT
PULSOUT 13, 65000
PULSOUT 12, 65000
PAUSE 2000
Modify the program so that the commands look like this:
DO
LOOP
Run the modified program and verify that it makes the LEDs blink ten times as
fast.
Modify the program so that the commands look like this:
DO
LOOP
Run the modified program and verify that it makes both LEDs about the same
brightness.
Try substituting 850 in the
goes to P13.
DO
and
PULSOUT 13, 6500
PULSOUT 12, 6500
PAUSE 200
PULSOUT 13, 650
PULSOUT 12, 650
PAUSE 20
PAUSE
) by 10.
Duration
argument for the
PULSOUT
Duration
command that
arguments

Related parts for 28125