Project 19: Ghostly Eyes - Thames & Kosmos Code Gamer Experiment Manual

Coding workshop ? game with kosmobits
Table of Contents

Advertisement

PROJECT 19
Ghostly eyes
How would you like to turn your jack-o'-lantern into
something even spookier this Halloween? With your
KosmoDuino, you will be able to give it ghostly eyes.
YOU WILL NEED
› KosmoDuino in the interaction board
› 2 Resistors
› Green LED
› Red LED
› 3 Male-male jumper wires
› 4 Male-female jumper wires
› Breadboard
IN THIS EXAMPLE, THE ASSEMBLY GOES AS FOLLOWS:
• One jumper wire connects one GND pin with the
(–) strip of the breadboard.
• One jumper wire connects pin
with hole
j 57
of the breadboard.
• One jumper wire connects pin
with hole
j 51
of the breadboard.
• The resistors connect the (–) strip and hole
with the (–) strip and hole
CodeGamer manual inside english.indd 55
11
of the KosmoDuino
6
of the KosmoDuino
a 57
along
a
51.
THE PLAN
Make your jack-o'-lantern's eyes blink colorfully. On top
of that, you can have it make a gruesome hissing noise at
irregular intervals.
PREPARATION
This time, you will need more than just the interaction
board, because you will have to build a small electronic
circuit. Assemble it out of the parts listed on the left,
following the illustration.
Be careful to get the polarity of the LEDs correct! They
only work in one direction. Pay attention to the orientation
of their long and short legs.
• The long leg of the red LED is inserted in hole
short one in
e
57. Place the short leg of the green LED
in hole
f 51
and the long leg in hole
• To guide the LEDs from the breadboard to the jack-o'-
lantern's eyes, use the 4 male-female jumper wires to
connect the correspondingly positioned LEDs with the
breadboard.
CodeGamer
f
57, the
e
57.
55
7/19/16 12:33 PM

Advertisement

Table of Contents
loading

Table of Contents