Hello, I am trying to build an audio tone game that will play music when you complete gestures on an LCD display.
I don't know what I can use to generate tones or play audio tones when the gestures are successful.
I would appreciate some suggestions in things I can use to generate audio tones. As an example, suppose I wanted to play a happy birthday song.
Thanks in advanced
There are several options. It really depends on how much audio quality you want/need. Since you appear to have absolutely no idea, how you would do this in general, I suggest a look at this:
http://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduinoDepending on your main platform, you may already have a DAC peripheral on-board that is good enough for your purpose. Some microcontrollers also have specific modes in their serial modules that let them easily create serial digital audio formats (e.g.
I2S) that can then be used to control an external audio DAC.
*edit: reference to linked pages was moot as links are dead
Thanks for the input... I was looking into if and I think I will go with just generating the sound using a buzzer and a square wave generated through PWM of the uC .
Good to know the other options though.
Thanks for the input... I was looking into if and I think I will go with just generating the sound using a buzzer and a square wave generated through PWM of the uC .
Good to know the other options though.
Music like that will sound really awful, like from the 90's. Think of those tiny handheld football games or the greating cards that play a tune.. Those are square wave tones.. they sound nasty.
If your platform has enough processing power to drive an LCD screen and touch gestures then I am sure that it has more than enough power to do more than just square wave tones ..
If this is something you are building and are in the development stages, then you should put an FM synthesis chip on board, or at least consider using sampled waveforms playing those back through a DAC channel and low pass filter to an external audio amplifier.
If your platform has enough processing power to drive an LCD screen and touch gestures then I am sure that it has more than enough power to do more than just square wave tones ..
If this is something you are building and are in the development stages, then you should put an FM synthesis chip on board, or at least consider using sampled waveforms playing those back through a DAC channel and low pass filter to an external audio amplifier.
Yeah that makes sense. Think I might want to go for better audio quality on this one since this is going to be a birthday gift so it makes sense if I try to make it better quality.
Yeah I am still in early development stages just gathering information in the things I will need. So I am open to any suggestions and the ones that I have seen seem like good solutions. Since I haven't done anything with audio I had no idea where to start actually. All your suggestions have helped. I'll take a look into which option will be the best for me.