28125 Parallax Inc, 28125 Datasheet - Page 67

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
Your Turn – Blink the Other LED
Blinking the other LED (connected to P12) is a simple matter of changing the
argument in the
You can also make both LEDs blink at the same time.
You can modify the program again to make one LEDs blink alternately on/off, and you
can also change the rates that the LEDs blink by adjusting the
Duration
Viewing a Servo Control Signal with an LED
The high and low signals you will program the BASIC Stamp to send to the servo motors
must last for very precise amounts of time. That’s because the servo motors measure the
amount of time the signal stays high, and use it as an instruction for where to turn. For
Modify the program so that the commands look like this:
DO
LOOP
Run the modified program and verify that it makes the other LED blink on/off.
Modify the program so that the commands look like this:
DO
LOOP
Run the modified program and verify that it makes both LEDs blink on and off
at roughly the same time.
Try it!
argument higher or lower.
HIGH 12
PAUSE 500
LOW 12
PAUSE 500
HIGH 12
HIGH 13
PAUSE 500
LOW 12
LOW 13
PAUSE 500
HIGH
and
LOW
commands and re-running the program.
PAUSE
command’s
Pin

Related parts for 28125