Hello, I have a project where I need to give acoustic feedback when selecting functions. The different sounds should be about 0,5 seconds for each function. 6 different functions/sounds. I have seen that there are some audio boards out there. I think they are overkill. Couldn't this be done with just the Nano and little amplifier. I need to control the volume depending on how noise the sounding is. Or maybe it's easiest to buy the Adafruit board?
/André
Yes the Nano, and no need for the amplifier. Toggling any DIO or PWM pin will activate a "buzzer" for sound. Change the toggle rate for a different sound.
Hello,
Thanks for the answer.
Then I could use the Adafruit Speaker to get better sound. What do you think?
/André
An alternative could be a DF Player Mini MP3 player board. You can have a different sound clip for each action and the volume is easily adjusted.
Go to ZapSplat.com for hindreds of free sound files of every type.
Thanks,
How is the volume adjusted?
The DF Player Mini MP3 player is controlled via a serial interface. The volume is controlled through serial.
There are libraries to facilitate using the module. >>>>> GitHub - DFRobot/DFRobotDFPlayerMini: Arduino library for DFPlayer
The DFPlayerMini also has a "standalone" volume control, which is to "long press" the "next/volume+" pin to ground. A "short press" of the "next/volume" pin plays the next file.
First, I would also recommend the DFR Player plus Nano solution. You could for example record “Function 1”, etc, Spoken quickly their durations could be within your 0.5s limit.
But I don’t understand the following:
"surrounding" (nominal noise)
Hello Terry,
The device will be used indoors and outdoors so I want the volume to adjust itself depending on how noisy it is where the device is. Indoors I want it to be low volume and when coming outside where there are cars and so on I want the volume to go up.
/André
Thanks, understood, although I did get it after @xfpd ‘s correction of your typo.
So you need a microphone sensor to detect the sound level via an analog pin and automatically vary the DFR Player’s volume level.
Next step would be experiments by you, including some initial coding.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.