27404 Parallax Inc, 27404 Datasheet - Page 63

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Figure 2-4 Parallel LED and Piezospeaker Circuits
Building and Testing the LED and Piezospeaker Circuits
The LED and piezospeaker circuit shown in Figure 2-4 is an interesting combination of
the individual circuits. Instead of connecting the LED and piezospeaker to separate I/O
pins, both circuits are connected to the same I/O pin. This circuit can come in handy,
especially if you are running low on available I/O pins. Keep in mind that this circuit
will always light the LED when the speaker plays a tone. Likewise, if the LED is turned
on/off, the speaker will make a clicking sound. The clicking sound when the LED
changes state can actually be useful for "hearing" what's going on with the status
indicator LED during debugging sessions.
Parts List
(2) Jumper wires
(1) LED - red
(1) Resistor - 470 Ω (yellow-violet-brown)
(1) Piezospeaker
This circuit should be tested to make sure your programs can make the LED turn on/off
as well as make the piezospeaker chime a few notes. In the next example program, you
will see this
Remove all existing circuits from the SumoBot's white breadboard space.
Build the LED circuit shown in Figure 2-4 on the SumoBot's breadboard.
PIN
directive:

Related parts for 27404