28122 Parallax Inc, 28122 Datasheet - Page 65

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
This command is included just to show what the program does after ten times through the
FOR…NEXT
Your Turn – Other Ways to Count
ACTIVITY #4: BUILDING AND TESTING A SECOND LED CIRCUIT
Indicator LEDs can be used to tell the machine’s user many things. Many devices need
two, three, or more LEDs to tell the user if the machine is ready or not, if there is a
malfunction, if it’s done with a task, and so on.
In this activity, you will repeat the LED circuit test in Activity #1 for a second LED
circuit. Then you will adjust the example program from Activity #2 to make sure the
LED circuit is properly connected to the BASIC Stamp. After that, you will modify the
example program from Activity #2 to make the LEDs operate in tandem.
Extra Parts
In addition to the parts you used in Activities 1 and 2, you will need these parts:
(1) LED - yellow
(1) Resistor – 470 Ω (yellow-violet-brown)
DEBUG "All done!"
in LedOnOffTenTimes.bs2 and re-run the program. What did the program do
differently, and was this expected?
How many times did the LED flash? What values displayed in the Debug
Terminal?
Try a second modification to the
loop. It moves on to the command that comes after the
Replace the statement
FOR counter = 20 to 120 STEP 10
FOR counter = 1 to 10
FOR
with this:
statement. This time, change it to
FOR counter = 1 to 20
NEXT
statement.

Related parts for 28122