Join us in Chat. Click link in menu bar to join. Unofficial chat day is every Friday night (US time).
0 Members and 1 Guest are viewing this topic.
On a couple of my robots that don't have sound on them, I have simply used a cheap speaker from radioshack part number 273-092. Make sure to not get a buzzer as they just buzz all the time when power is connected... I have one of these on an Arc32 based processor and another one on an Arduino Mega based board. On the Arduino I wrote some quick and dirty functions to output some sound which worked well enough for me. I simply wanted some beeps to know when I choose a command and the like.I can post the code if you would like...
Theres a big difference between playing a single/short/sampled sound effect such as a 'bang', 'crash', 'beep' vs playing complete MP3 music files.
First, read up on general sound theory. Frequency vs pitch, amplitude vs volume.
Thanks. Do you know of any good tutorials or reading?
Webbot just added the Tone to the WebbotLib. You can use a piezo speaker on any pin and select a Timer to play beeps or RTTL tunes. He even has a sample Star Wars tune in his docs. All you need is a compatible atmega chip and a piezo speaker. Make sure the speaker has a resistance greater than 150 ohms (usually they have). If not, add a series resistor to protect your atmega pin, as in WebbotLib docs specifications.
To make a REAL simple sound (one pitch, one volume, on/off), you can use a 555 timer with a filter (capacitor + resistor) and an audio amp.You can probably make it for something like $1?Or just use a piezo-electric buzzer.If you want something more complicated, what EXACTLY do you want?
have vocal sound that sounds cheap but can be understood, and is not being synthesized(because the song segment is from a real song
ok, mass production does make items cheap, but not to the point where an entire circuit, plastic body, buttons, packaging, shipping to the store, store maintenance costs, employee pay, AND ~10% markup after all of this are cheaper than one SINGLE component of all of this.
I'm sure that the ic's described on this post can do much more than the ic's in the toy, but I only want VERY simple sounds, and I'm honestly just curious more than anything else. If there is no way to produce the sounds I want for less than the price of the toy, I guess I'll just attempt to hack one of the toys to produce the sounds I want by replacing the chip on it's board with an atmega or something.