Working with Adafruit Sound board

Hi All ,

Quick Question ,

I'm Currently working on a project that uses an adafruit mini sound fx board

what i'm looking for is the sound to be triggered via a motion control sensor (PIR) ,
this i have achieved very easy but when it triggers its so quiet, I tried two diff amp boards many diff rated speakers but still nothing ,
After looking at the example code i saw you can trigger volume up with a sfx.volUp();
command tho this increases it in 0.5db intervals which means it will take loads of said commands to reach max volume i was hoping i could just add a value of 204(max volume number of the board ) but it throws up an error so i then tried sfx.volUP(max) still error

any ideas guys

i'm very new to Arduino so it may be obvious

TIA

Quality audio using Arduino is almost never a quick question. There are so many things that can go wrong, from the audio files you're using (what do they look/sound like in Audacity?) to the amp (which one?) and more. You can always measure the soundboard output at the stereo out pins (consumer line level), it should be about 1 volt, as much as about 1.5 volts in "loud" sections. If that seems ok, your problem is elsewhere. Remember: garbage in, garbage out.

What is the default volume setting when you run the example sketch?

1 Like

If those setups work with the line/headphone output from your computer (or with your phone), they are not the problem.

Are you hearing the sounds you expect to hear? If you are just hearing clicks & pops, etc., that's probably a clue.

The Adafruit website says it can work without a microcontroller and it would be good to know if the problem is the sound board or the Arduino & programming.

As a rule, Adafruit has very good documentation and they have forums (but I've never been on their forums).

Do you know how to make a for-loop?

It's EASY to do stuff over-and-over with loops. :wink:

Loops (doing something over-and-over, usually until some condition is reached) is one of the most important concepts in programming. In C++ we also have while() loops and do-while loops.

The other important concept is conditional execution (if-statements, etc.).

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.