Arduino library designed to control the DFRobot DFR1173 MP3 Voice Prompter module through serial commands.
- Full playback control: Play, Pause, Resume, Stop.
- Volume management (0-30).
- Track and folder navigation.
- Status verification support via BUSY pin.
- Low power mode.
| DFR1173 Pin | Arduino Nano R4 Pin |
|---|---|
| TX (Green) | RX (D0) |
| RX (Yellow) | TX (D1) |
| BUSY | D9 (Configurable) |
| VCC | 5V |
| GND | GND |
- Download this repository as a .zip file.
- In the Arduino IDE, go to Sketch -> Include Library -> Add .ZIP Library...
- Select the downloaded file.
#include <DFR1173.h>
// Instantiate passing the Serial object and the BUSY pin DFR1173 mp3(Serial1, 9);
void setup() { Serial.begin(115200); mp3.begin(9600); mp3.setVolume(25); }
void loop() { mp3.playTrack(1); mp3.isPlaying(); // Blocks execution until audio finishes delay(2000); }