The Adafruit Audio FX Mini Sound Board is a versatile and easy-to-use audio playback device designed for makers and hobbyists. It is capable of playing a variety of audio file formats from a microSD card, making it ideal for adding sound effects, music, or voice to projects without the need for an additional microcontroller. Common applications include interactive art installations, custom alarms, greeting cards, and electronic toys.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | Vin | Voltage input (3.3V to 5.5V DC) |
3 | Trigger 1 | Trigger input for playing track T01 |
... | ... | ... |
n | Trigger n | Trigger input for playing track Tnn |
n+1 | RX | Serial receive pin for UART control |
n+2 | TX | Serial transmit pin for UART feedback |
n+3 | Audio Out | Audio output to speaker or amplifier |
n+4 | BUSY | Output pin that goes low when audio is playing |
Note: Replace 'n' with the actual pin number and 'Tnn' with the corresponding track number.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
mySerial.begin(9600);
Serial.begin(9600);
pinMode(3, OUTPUT); // Assuming Trigger 1 is connected to pin 3
}
void loop() {
if (Serial.available()) {
char command = Serial.read();
if (command == 'p') { // 'p' command to play track T01
digitalWrite(3, LOW); // Trigger pin LOW to start playback
delay(10); // Wait for 10ms
digitalWrite(3, HIGH); // Trigger pin HIGH to reset
}
}
}
Note: The above code is a simple example of how to trigger playback using an Arduino UNO. The SoftwareSerial
library is included for potential serial communication.
Q: Can I play multiple tracks simultaneously? A: No, the Adafruit Audio FX Mini Sound Board can only play one track at a time.
Q: How many audio files can I store on the microSD card? A: The number of audio files is limited by the capacity of the microSD card and the size of the audio files.
Q: Can I use this board without an additional microcontroller? A: Yes, the board can be used standalone with trigger pins to play specific tracks.
For further assistance, refer to the Adafruit Audio FX Mini Sound Board forums and support channels.