How to make bulb horn or squeaky toy sound with audio library?

Status
Not open for further replies.

kobe12345

Member
Hi everyone!

I'm working on my school project which i want to make bulb horn and squeaky toy effect with pressure sensors.
So basically the volume (or the frequency) is controlled by how hard you press on the sensor, and it the sound starts when you touch the sensor like the real horn does.
Any suggestions on how i can code these with Audio System Design Tool?

Thanks in advance!

sound reference:
Bulb horn: https://www.youtube.com/watch?v=sKgbDvCukNQ

Squeaky toy: https://www.youtube.com/watch?v=9U86c2Zf5og
 
The design tool is only part of the solution. You use it to create the audio system than can play sounds.

Then you write Arduino code to read the sensor and control the audio objects.

Probably the simplest way would be to create many different files on a SD card for all the various tones. Then use the wav file player to play the tone you want, and use a mixer to change its amplitude.
 
Hi Paul!

Thanks for the quick feedback.
I've start to do it in your way as soon as I read your reply.
However I wonder if there's any way to apply frequency modulation to the SD wav file output? Or is there an example of doing it?

Thanks!
 
Status
Not open for further replies.
Back
Top