Custom sounds using BS2 FREQOUT Code/Using BS2 FREQOUT from EMIC
KatyBri
Posts: 171
Does anyone have any BS2 FREQOUT code examples they are willing to share with me?
I'm looking for a door-bell sound, opening/closing sound of door on StarTrek, or R2D2.
Any sounds you may have will help me to experiment-see how to use the code.
Also, does anyone have any code/suggestions connecting a BS2 FREQOUT pin to the AN pin on an EMIC chip? Do the example interface schematics work, or are modifications required? EMIC examples using the FREQOUT pin on the BS2 would also be helpful.
Thanks,
I'm looking for a door-bell sound, opening/closing sound of door on StarTrek, or R2D2.
Any sounds you may have will help me to experiment-see how to use the code.
Also, does anyone have any code/suggestions connecting a BS2 FREQOUT pin to the AN pin on an EMIC chip? Do the example interface schematics work, or are modifications required? EMIC examples using the FREQOUT pin on the BS2 would also be helpful.
Thanks,
Comments
You can output *A* note, and you can adjust the frequency of the note on-the-fly. The examples you're calling out typically require some control of the volume 'envelope' of the sound -- Attack, Decay, Sustain, Relax (ADSR). Now, I believe you CAN output the sum of two tones, which can give you some nice modulation sound effects.
The typical experimental circuit for this has you attach a piezo-electric speaker between the pin and ground. It's not loud, but it should work. A better circuit (in Analog and Digital Interfacing) uses an op-amp to amplify the signal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Actually it's Attack, Decay, Sustain, Release. Were you, perchance, a big Frankie Goes to Hollywood fan?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Decontamination Chamber Video
and a complete description of the project, along with the source code was posted to the parallax "projects" forum here
Vern
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔