sparkfun Spectacle Documento técnico

Spectacle Sound Kit Hookup Guide
Introduction
The Spectacle Sound Kit contains everything you need to make a button-
triggered sound-playback project.
Suggested Reading
Before proceeding, you should read through the Spectacle User’s Guide. It
will give you the basics you’ll need to know about how Spectacle works to
follow the rest of this tutorial.
Spectacle Audio Board
The Spectacle Audio Board allows you to add sound to your Spectacle
projects. It accepts a microSD card with sounds in .ogg format (more on
this later), and has a 1/8" (3.5mm) audio jack to connect to external
amplifiers.
Spectacle Sound Ki
t
KIT-14172
Page 1 of 2
2

tl;dr
1. Audio files for Spectacle should be formatted as .ogg files.
2. Audio files should have names 00.ogg, 01.ogg, 02.ogg, etc.
3. The audio jack on the Audio Board produces output suitable for
amplification only. It is not suited to headphones or unpowered
speakers.
Meet the Spectacle Audio Board
Designed to be a low-cost and easy to use method of adding sound to
projects, the Spectacle Audio Board integrates with the rest of the
Spectacle ecosystem to provide sound effects on demand.
It has three 1/8" (3.5mm) jacks: two for Spectacle control signals and one
for the audio output. Be certain you are plugging cables into the right
jacks! Plugging an audio device into one of the Spectacle jacks could
cause damage to the audio device. Note that the Spectacle data jacks are
directional: the one marked “In” should be plugged into the “upstream”
board (i.e., closer to the Director Board than this one) and the one marked
“Out” connects to the next downstream board. The “Out” jack is not for
audio signals.
The audio output is designed for amplified devices only. This means that
any attempt to use the Spectacle Audio Board with headphones or
unamplified speakers will fail to produce audible output. SparkFun sells a
small, amplified, rechargeable speaker which is specifically intended for use
with the Spectacle Audio Board.
Spectacle Audio Boar
d
DEV-14034
Page 2 of 2
2

The Spectacle Audio Board uses a Micro SD card to store the audio files to
be played. The files should be stored as .ogg Vorbis encoded files. This
free audio file format can be played and created on any type of computer.
Later in the tutorial we’ll show you how to convert from MP3, WAV, or other
file formats to the .ogg format.
The files must be named by number, which is how they will be referred to
from within the configuration application. Filename examples are 00.ogg,
01.ogg, 02.ogg, and so forth.
Spectacle Button Board
The Spectacle Button Board allows you to add input from buttons or
switches to your Spectacle projects. It has a total of 9 signal inputs, eight of
which can come from external buttons and one button directly on the board.
tl;dr
1. Buttons or switches can be connected to the board by pushing wires
into the “poke home” type connectors on the board.
2. Up to nine signals are available.
3. Button signals can be either momentary or continuous.
Meet the Spectacle Button Board
Spectacle Button Boar
d
DEV-14044
Page 3 of 2
2

Designed to bring simple signals from the world into your Spectacle
projects, the Spectacle Button Board provides input for any of your
Spectacle projects.
It has two 1/8" (3.5mm) jacks for connecting to other boards in a Spectacle
system. Note that the Spectacle data jacks are directional: the one marked
“In” should be plugged into the “upstream” board (i.e., closer to the Director
Board than this one) and the one marked “Out” connects to the next
downstream board.
There are 8 “poke home” connectors on the Button Board. Each one can be
connected to one (or more) buttons. To add a connection, simply push the
stripped end of a wire into the hole on the connector. The connector will
automatically grab on and hold the wire in place. If you need to remove the
wire later, an small object (bobby pin, ballpoint pen, etc.) can be used to
depress the release button, allowing the wire to be extracted without
damage.
There is an input button on the button board itself which can be used to
provide an input signal if no other buttons are available. It functions like any
other normal button that might be attached. Be certain you’re pressing
the button labeled ‘8’ and not the one labeled ‘Reset’! Pressing the
reset button will reset your button board, probably causing your entire
system to stop working properly until you reset your Director Board!
The Configuration Utility
Spectacle Sound Board
Page 4 of 2
2

The Spectacle Audio Board only supports one action: Play Sound. As you
can see above, there are a number of settings associated with this action.
•“Listen to channel number…” - This is the channel number which
triggers the audio to start playing. As long as this channel’s value is
above the threshold level (see below), the sound will repeat playing
at a rate determined by the two time intervals specified lower down.
•“wait … seconds and play…” - This is the first delay in the system.
By delaying when a sound plays, you can sequence events however
you see fit.
•“…and play file number…” - This is where you tell the board which
file to play. Remember, when copying the audio files to the Micro SD
card, they should be named as 00.ogg, 01.ogg, 02.ogg, etc. The
number in this field corresponds to the number in the name of the
audio file. If there is no audio file with the corresponding number, no
sound will play.
•“do not allow another sound to interrupt until … seconds” - The
number in this field should correspond to the length of the audio file.
If this value is less than the length of the sound file, another trigger
sent to the audio board will interrupt the sound before it finishes. If it
is longer than the sound, there will be a period of silence after
playback before another playback can be initiated.
•“activation threshold” - As it says in the app, most of the time you
don’t need to adjust this. By tweaking this, you can set the angle at
which the Spectacle Accelerometer Board triggers a sound, or the
frequency with which a Random Trigger Virtual Board causes a
sound to play.
Spectacle Button Board
Page 5 of 2
2

For the Button board, there are five options: three which produce a
momentary pulse type output and two that produce a continuous switch
type output.
Action on press
Trigger an action when a button is first pressed, regardless of how long it is
subsequently held down.
•“When button number … is pressed” - This is the number of the
button we wish to assign to this action. The button numbers are
printed on the board, and run from 0 through 8.
•“trigger channel number …” - A single, momentary pulse will be
sent out on this channel. It is suitable for starting a sound, initiating a
motion, or setting the color of a light strip, but not for continuous
sound playback or for turning on a light strip effect, for instance.
Action on release
Page 6 of 2
2

Trigger an action when a button is released, regardless of how long it has
been held down prior to being released.
•“When button number … is released” - This is the number of the
button we wish to assign to this action. The button numbers are
printed on the board, and run from 0 through 8.
•“trigger channel number …” - A single, momentary pulse will be
sent out on this channel. It is suitable for starting a sound, initiating a
motion, or setting the color of a light strip, but not for continuous
sound playback or for turning on a light strip effect, for instance.
Action on press or release
Trigger an action when a button is pressed, then trigger the same action
again when the button is released.
•“When button number … is either pressed or released” -Thisis
the number of the button we wish to assign to this action. The button
numbers are printed on the board, and run from 0 through 8.
•“trigger channel number …” - A single, momentary pulse will be
sent out on this channel both at the time the button is pressed and at
the time it is released. It is suitable for starting a sound, initiating a
motion, or setting the color of a light strip, but not for continuous
sound playback or for turning on a light strip effect, for instance.
Action while holding
Page 7 of 2
2

Trigger an event as soon as a button is pressed, then continue to trigger
that event as long as the button is held down.
•“While button number … is pressed” - This is the number of the
button we wish to assign to this action. The button numbers are
printed on the board, and run from 0 through 8.
•“activate channel number …” - A continuous will be sent out on
this channel. It is suitable for triggering and repeating a sound, or for
turning on and keeping on (at least, while the button is held) a
lighting effect.
Latch On/Latch Off
This action is like a latching power switch. One press turns the signal on,
another later press turns the signal off.
•“While button number … is pressed” - This is the number of the
button we wish to assign to this action. The button numbers are
printed on the board, and run from 0 through 8.
•“activate channel number … until button is pressed again” -A
continuous will be sent out on this channel. It is suitable for triggering
and repeating a sound, or for turning on and keeping on a lighting
effect.
Converting Sounds to OGG Vorbis
Page 8 of 2
2

Forma
t
The files used by the Spectacle Audio Board must be in OGG Vorbis
format. This free, lossy codec has a higher compression ratio than MP3,
and, more importantly, can be used without paying a licensing fee to any
third part organization.
Download and Install Audacity
We’ll be using the free, open source program “Audacity” to convert from
whatever your file’s current format is to OGG Vorbis.
Audacity is available across all three major operating systems, so you
shouldn’t have any trouble getting it installed.
When you start Audacity, you’ll see this screen, or one very like it. While at
first blush it seems extremely complex, none of this crap is important to
us, so don’t panic.
Load a file
Like most programs, “loading a file” just means selecting “Open” from the
File menu and choosing which file you wish to convert. Audacity is capable
of editing most types of audio files: WAV, AIFF, FLAC, MP3, and others.
By default, Audacity shows all files, not just compatible audio files, when
you bring up the open dialog. There’s a dropdown menu that allows you to
change that so it shows only compatible audio files along the bottom edge
of the window.
Page 9 of 2
2

Once you select which file you wish to edit, a rather alarmist message may
pop up warning you about editing files without making a copy of them. Just
click “OK”.
You’ll see, then, something like this show up. This is what your audio file
looks like, to the computer. Again, don’t panic! Unless you want to edit the
sound in some way (which we don’t), none of the settings or pieces of
information that have popped up here matter to us.
Convert to OGG
Now that you have the file loaded, you need to convert it to OGG Vorbis
format. To do so, open the “File” menu and select the “Export Audio…”
menu item about halfway down. A familiar looking save window should pop
up.
Right below the “File name:” field you’ll see a drop-down menus labeled
“Save as type:”. Select “Ogg Vorbis Files” in that drop down.
A slider will appear at the bottom of the window. The default value of ‘5’ is
probably good enough for most purposes. Click “Save” and another window
will pop up.
Page 10 of 2
2
Otros manuales para Spectacle
1
Este manual sirve para los siguientes modelos
1
Tabla de contenidos
Otros manuales de Unidad de control de sparkfun
Manuales populares de Unidad de control de otras marcas

Festo
Festo Compact Performance CP-FB6-E Manual de lista de piezas

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Manual de usuario

JS Automation
JS Automation MPC3034A Manual de usuario

JAUDT
JAUDT SW GII 6406 Series Guía rápida

Spektrum
Spektrum Air Module System Manual de usuario

BOC Edwards
BOC Edwards Q Series Manual de usuario















