Project b9 jukebox with terminal – Elenco XP&trade User Manual
Page 43

Project B9
Jukebox with Terminal
Build the circuit as shown. Turn on the slide
switch (S1). Load program Jukebox with
Terminal into the microcontroller (U21) using
the programming instructions in project B1.
After program is downloaded, move the
orange jumper wire from the S-In snap to the
1 snap, as shown. Press the F8 key or select
Terminal under the PICAXE menu to open a
terminal window for communication with the
microcontroller, set the baud rate to 2400,
and select Refresh. Turn the slide switch (S1)
off and on to reset the microcontroller. Follow
the instructions in the terminal Input Buffer
window to use your “jukebox”.
Song numbers:
1 = Happy Birthday
2 = Jingle Bells,
3 = Silent Night
4 = Rudolph
Optional:
-42-
(for two-way communication
with terminal)
This program uses the
serin
and
serout
commands to
send information between the
computer screen and the
microcontroller. Details on
how these commands work
can be found under the Help
menu at Snap Circuits
®
XP
TM
.
(for download)