28825 Parallax Inc, 28825 Datasheet
![MINI SOUND PLAYER SOUNDPAL](/photos/28/96/289624/28825-l_sml.jpg)
28825
Specifications of 28825
Related parts for 28825
28825 Summary of contents
Page 1
... SoundPAL (#28825): Miniature Sound Player General Description The SoundPAL is a tiny module that plays canned and custom sound sequences completely self- contained, including a microcontroller for generating the sounds and a small speaker for producing them. The SoundPAL interfaces easily to a BASIC Stamp and can play sounds while the BASIC Stamp is busy with other chores ...
Page 2
Installation Installation of the SoundPAL is a simple. If you’re using a system that incorporates three-pin servo headers (such as the BOE), just plug the SoundPAL into one of them. It has two three-conductor sockets to choose from for this ...
Page 3
By installing a 3-pin header (included with the BOE-Bot Full Kit, p/n 28132) in one of the SoundPAL’s connectors, you can also use it with a wireless breadboard, as the following diagram illustrates: In lieu of the three-pin header, you ...
Page 4
PIN 15 baud CON $8000 + 84 reset CON $8000 + 813 '----Reset the SoundPAL--------------------- DoReset: DO:LOOP UNTIL iopin SEROUT iopin, reset, [0] RETURN Playing Individual Notes Pitch and Duration Sounds are played by the SoundPAL as musical notes, ...
Page 5
That makes the shortest sixteenth note 14ms long and the longest dotted half note 677ms long. Although the fastest tempo is too fast for most music, it comes in handy for certain ...
Page 6
It is used most frequently to extend the length of a single note beyond the longest duration, which is the dotted half. In the following example, the first three notes of Taps ...
Page 7
To play a sequence in ROM or EEPROM, include the play command (defined in the template) in the calling sequence followed by the sequence’s address. For example, to play the Reveille bugle call, you would use the following PBASIC code: ...
Page 8
DO SEROUT iopin, baud, ["=",oct3,tmp3] FOR RANDOM W2 SEROUT iopin, baud, [ $81] NEXT SEROUT iopin, baud, [0, "!"] GOSUB WaitDone LOOP Saving Sequences to EEPROM Once a sequence is loaded into ...
Page 9
... Started... 2007.05.01 ' Updated... 2007.10. {$STAMP BS2} ' {$PBASIC 2. ========================================================================= ' -----[ Program Description ]--------------------------------------------- ' This is a blank template defining constants and subroutines that ' provide an interface to the Parallax SoundPAL (p/n 28825) Miniature ' Sound Player. ' -----[ I/O Definitions ]------------------------------------------------- iopin PIN 15 ' -----[ Constants ]------------------------------------------------------- baud CON $8000 + 84 reset CON $8000 + 813 'Commands ...
Page 10
CON $08 'Quarter note = tmp1 CON $09 'Quarter note = tmp2 CON $0A 'Quarter note = tmp3 CON $0B 'Quarter note = 1064 beats/min. 'Octaves oct0 CON $0C 'A_0 = 110Hz oct1 CON $0D 'A_0 = 220Hz oct2 ...
Page 11
Ds2 CON $9C 'High D sharp. Ef2 CON $9C 'High E flat. E_2 CON $9D 'High E natural. F_2 CON $9E 'High F natural. Fs2 CON $9F 'High F sharp. Gf2 CON $9F 'High G flat. 'Duration modifiers. Add value ...
Page 12
Command Summary Command Value “=” $3D Queue following bytes (up through zero byte) in RAM. “!” $21 Play sequence in RAM buffer. “#” $23 Save sequence in RAM buffer to EEPROM. “?” $3F Enquire whether SoundPAL is ready for new ...