9600 bit/s UART
Cross RX and TX and share ground. Use 3.3 V logic levels at the module even when VCC is 5 V. Check the host input thresholds and shift the levels where needed.
DFRobot DFR0299 reads audio from a microSD card and supports both serial commands and simple button control.
Use a regulated 3.2–5 V supply. The speaker stage can draw more current while playing.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| 1 | VCC Supply input | Supply input | Use a regulated 3.2–5 V supply. The speaker stage can draw more current while playing. |
| 2 | RX Input | Input | 3.3 V logic UART input for commands from host TX. |
| 3 | TX Output | Output | 3.3 V logic UART output for replies to host RX. |
| 4 | DAC_R Analog output | Analog output | Right audio DAC output for an external audio input. |
| 5 | DAC_L Analog output | Analog output | Left audio DAC output for an external audio input. |
| 6 | SPK Bridge output | Bridge output | One side of the amplified speaker output. Connect the speaker between contacts 6 and 8. |
| 7 | GND Return | Return | Module ground. Share this reference with the UART controller. |
| 8 | SPK Bridge output | Bridge output | Other side of the amplified speaker output. Keep both speaker leads isolated from ground. |
| 9 | IO1 Input | Input | Ground momentarily for the previous track. A long press reduces volume in I/O mode. |
| 10 | GND Return | Return | Module ground. |
| 11 | IO2 Input | Input | Ground momentarily for the next track. A long press increases volume in I/O mode. |
| 12 | ADKEY1 Analog input | Analog input | First resistor-coded key input. Use the key resistance table for this module. |
| 13 | ADKEY2 Analog input | Analog input | Second resistor-coded key input. Use the key resistance table for this module. |
| 14 | USB+ USB data | USB data | Positive USB data contact for the supported storage interface. |
| 15 | USB− USB data | USB data | Negative USB data contact for the supported storage interface. |
| 16 | BUSY Output | Output | Playback status output. Low indicates playback in progress. |
Cross RX and TX and share ground. Use 3.3 V logic levels at the module even when VCC is 5 V. Check the host input thresholds and shift the levels where needed.
Connect the speaker across contacts 6 and 8. DFRobot’s pin map and manual label these outputs differently. Use the DAC pins for ground-referenced line-level audio.
| Parameter | Limit | Conditions and source |
|---|---|---|
| Supply voltage3.2–5 V | 3.2–5 V | The example uses 5 V. Allow headroom for playback current. DFRobot DFR0299 documentation, Pinout and Work Mode |
| StorageFAT16 or FAT32 · up to 32 GB | FAT16 or FAT32 · up to 32 GB | Insert or remove the card with power off. DFRobot DFR0299 documentation, Pinout and Work Mode |
| Serial mode9600 bit/s · 8N1 | 9600 bit/s · 8N1 | Use a 3.3 V logic UART and shared ground in the example. DFRobot Arduino example |
| UART RX inputVIH 2.31–3.6 V, VIL −0.3–0.99 V | VIH 2.31–3.6 V, VIL −0.3–0.99 V | VDD = 3.3 V in the I/O table. Module VCC is specified separately. DFRobot DFR0299 manual, § 6, p. 12 |
| UART TX outputVOH ≥ 2.7 V, VOL ≤ 0.33 V | VOH ≥ 2.7 V, VOL ≤ 0.33 V | VDD = 3.3 V in the I/O table. Module VCC is specified separately. DFRobot DFR0299 manual, § 6, p. 12 |
This guide follows the DFRobot DFR0299 module’s 16-contact pinout. Check the seller’s documentation for lookalike modules and different audio chips.