Jukebox With Terminal - Elenco Electronics SNAP CIRCUITS XP SCXP-50 Instruction Manual

Table of Contents

Advertisement

Project B9
(for two-way
communication
with terminal)
As it is, this program will not work
properly.
subtract 49 from variable b2 in line
instead of subtracting 1. The serin command
in line 6 gives a coded value for variable b2
(called its ASCII code), because you could
have typed a letter instead of a number.
Alternatively, you could place case numbers
0-3 in lines 13, 15, 17, and 19 in quotation
marks ("0", "1", "2", and "3").
Optional:
To fix it,
modify the program to
7,
This program uses the
and
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

Jukebox with Terminal

Build the circuit as shown. Turn on the slide
switch (S1). Load program Jukebox with
Terminal and
Load the modified program into the
(for download)
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
serin
serout
commands to
XP
.
®
TM
modify it as described
below.
-42-

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Snap circuits xp

Table of Contents