I want to simulate the sound of sea surf, gently breaking on a pebbly shore, including the ’rumble’ as it recedes. This will of course require circuitry to create the noise, the breaker crash, and the rumble. (Or I might take the simpler approach of creating a single MP3 and playing it with a DFR Mini MP3 Player module.) And also circuitry for the final amplifier stage.
But I want to use a UNO to fade the audio to silence after a user-settable duration, say between 10 and 60 minutes. One way would be to use a 3340 attenuator IC, which can achieve that by changing the voltage at one of its eight pins. Can the UNO be programmed to deliver a gradually increasing or decreasing voltage smoothly?
P.S. The 3340 is now very expensive, so any ideas on alternatives please? Maybe that needs a post in the General Electronics category?
Most arduinos are not fit for sound processing. There is no 16 bit DAC and the clock is not fast enough to keep up. Also memory is very restricted and can hold only seconds of sounds in bad quality.
You can do 8 bit sound like in SuperMario from the eighties... but that will not sound like the sea.
An mp3 sample will be far easier. Arduinos can control soundplayers.
I tried to do this in the 80's with multiple noise generators and filters - basically a modular synthesizer. Getting the sound anywhere near right is ... "interesting".
Yes, thanks, I’ve used that facility in previous DFR projects. It’s fine for their Vol Up and Vol Down buttons. But I have not yet tested whether its 0-30 increments will be ‘audibly seamless’. If so, that will indeed be my preferred approach, as I still have several modules in hand.
Interesting, me too, probably late 90’s. Original handwritten notes apparently destroyed after some documentation on PC in 2000. Greatly regret that as I’ve now just about given up trying to get it working again! Overall block diagram attached for background but I’ll post specific queries in the Electronics section.