Codey OnlineArduino- & ESP32-componentenbibliotheek › DF Player Mini
DF Player Mini
Sensoren

DF Player Mini

DF Player Mini MP3-speler met TF-kaartlezer

Breedte: 44.8 mm

Pinout — DF Player Mini

Pin Signaal Beschrijving
VCC power Top-left header pad, top pin
RX RX Left header pad, second pin from top
TX TX Left header pad, third pin from top
DAC_R analog Left header pad, fourth pin from top
DAC_I analog Left header pad, fifth pin from top
SPK_1 data Left header pad, sixth pin from top
GND ground Left header pad, seventh pin from top
SPK_2 data Left header pad, bottom pin
BUSY digital Top-right header pad, top pin
USB- data Right header pad, second pin from top
USB+ data Right header pad, third pin from top
ADKEY_2 analog Right header pad, fourth pin from top
ADKEY_1 analog Right header pad, fifth pin from top
IO_2 digital Right header pad, sixth pin from top
GND ground Left header pad, seventh pin from top
IO_1 digital Right header pad, bottom pin

Voorbeeld-aansluitschema — DF Player Mini

Van Naar Draad
board:5V x1:VCC red
board:GND x1:GND black
board:D10 x1:RX green
board:D11 x1:TX blue

Voorbeeld-Arduinocode — DF Player Mini

Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.

#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>

SoftwareSerial dfSerial(10, 11); // Arduino RX, TX
DFRobotDFPlayerMini dfPlayer;

void setup() {
  Serial.begin(9600);
  dfSerial.begin(9600);

  Serial.println("Initializing DFPlayer Mini...");

  if (!dfPlayer.begin(dfSerial)) {
    Serial.println("DFPlayer Mini not detected. Check wiring and SD card.");
    while (true) {
      delay(1000);
    }
  }

  Serial.println("DFPlayer Mini ready.");
  dfPlayer.volume(20); // Range: 0 to 30

  // Play the first track on the microSD card.
  dfPlayer.play(1);
  Serial.println("Playing track 1.");
}

void loop() {
  // Nothing to do here for the basic example.
}

Vergelijkbare componenten

18650 Battery Shield with USB-C Charger and 5V Boost Converter

18650 Battery Shield with USB-C Charger and 5V Boost Converter

2.4 inch OLED Display I2C 3.3V

2.4 inch OLED Display I2C 3.3V

3.5 inch TFT LCD Shield

3.5 inch TFT LCD Shield

50kg Load Cell Weight Sensor

50kg Load Cell Weight Sensor

Bouw je Arduino- of ESP32-project met AI

Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.

Gratis starten