Arduino Forum
>
Using Arduino
>
Audio
>
R2D2 sounds via Tone command
Print
Go Down
Pages:
[1]
Topic: R2D2 sounds via Tone command
(Read 12636 times)
previous topic
-
next topic
UnaClocker
Guest
R2D2 sounds via Tone command
Feb 17, 2011, 06:08 pm
I've done a bit of googling, everyone seems to want to play the R2D2 type beeps and such with a WAV file. Seems like they're basic enough, you should be able to do it with just the tone command. Anyone ever try? Got some frequencies and durations, or a demo sketch? It just seems to me that robots are supposed to make that sound, so I'd like my robot to do so..
pluggy
Edison Member
Posts: 1,991
Karma: 18
[add]
Re: R2D2 sounds via Tone command
#1
Feb 17, 2011, 07:57 pm
I suspect R2D2 has quite a few harmonics and un-square wave like noises in his 'voice'. The tone command just produces a harsh sterile noise of a given frequency. It isn't even a sine wave which would give a much more agreeable sound. Theres probably a reason every body plays .wav files....
http://pluggy.is-a-geek.com/index.html
WilliamK Govinda
God Member
Posts: 631
Karma: 27
[add]
Beat707.com
Arduino.Wusik.com
Re: R2D2 sounds via Tone command
#2
Feb 17, 2011, 10:16 pm
Indeed, just get a wav recording and output via PWM PCM instead. You can get good audio at 32khz by using the 8-bit timer, or even 21khz by my latest tests, also using a single 16-bit timer. (check my posts) Even unfiltered it sounds good.
Wk
--
Beat707.com - The Arduino Drum Machine Shield
--
Wusik.com - Virtual Hybrid S
Print
Go Up
Pages:
[1]
Loading...