Skip to content

ronibandini/DFR1173-Voice-Prompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFR1173 Voice Prompter Library

Arduino library designed to control the DFRobot DFR1173 MP3 Voice Prompter module through serial commands.

Device

https://www.dfrobot.com/product-2862.html?tracking=hOuIhw4fDaJRTdy4abz04npbQC78dqxBkqVt7XMFYxEXj2s0ukWgm71wbut0ewUP

Features

  • Full playback control: Play, Pause, Resume, Stop.
  • Volume management (0-30).
  • Track and folder navigation.
  • Status verification support via BUSY pin.
  • Low power mode.
VoicePrompter

Wiring (Arduino Nano R4)

DFR1173 Pin Arduino Nano R4 Pin
TX (Green) RX (D0)
RX (Yellow) TX (D1)
BUSY D9 (Configurable)
VCC 5V
GND GND

Installation

  1. Download this repository as a .zip file.
  2. In the Arduino IDE, go to Sketch -> Include Library -> Add .ZIP Library...
  3. Select the downloaded file.

Basic Usage

#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); }