beautypg.com

Project a8 jukebox – Elenco XP&trade User Manual

Page 17

background image

Set the lever on the adjustable resistor (RV) to the middle.
Turn on the slide switch (S1), and wait a moment for the
green LED (D2) to come on. Push the press switch (S2)
and hold it down until music starts. The red & green LEDs
blink in time as a song plays. You can adjust the sound
volume using the lever on the adjustable resistor. The
green LED will stay on when the song is finished.

The microcontroller (U21) contains four songs that are
built into memory and cannot be erased. Each of these
can be programmed to play and flash lights. The machines
that play songs on command are called “jukeboxes”. A
jukebox is a partially automated music-playing device,
usually a coin-operated machine, that can play specially
selected songs from self-contained media. You just made
a simple jukebox!

Select a song to play when the green LED is on and not
flashing. S2 presses are cumulative, unless you turn the
slide switch on and off between songs.

1) Press and hold down S2 to play “Birthday Song”.

2) Press S2 once, then press it again and hold it down

for “Jingle Bells”.

3) Press S2 twice, then press it again and hold it down

for “Silent Night”.

4) Press S2 three times, then press it again and hold it

down for “Rudolph the Red Nose Reindeer”.

5) Press S2 four times, then press it again and hold it

down for all of the above songs in reverse order.

6) Press S2 five or more times, then press it again and

hold it down to play another familiar song.

Project A8

Jukebox

CAN YOU PLAY

THREE BLIND MICE?

-16-

Note: This circuit requires program Electronic Brain to be in microcontroller
U21’s memory. This is loaded into U21 at the Snap Circuits

®

factory and

should still be there, unless you already reprogrammed it. If it has been
reprogrammed, you must use project B1 to load program Electronic Brain
back into U21 before building this circuit.