г. Москва, ул.Новороссийская, дом 21, к.64. м.Люблино,ПН-ПТ с 10.00 до 19.30 и СБ с 12.00 до 16.00
+7(985) 997-37-74

MP3 модуль

DFPlayer
Цена500 руб.

Старая цена 550 руб.
Цена 500 руб.

Старая цена 550 руб.
Артикул:
M0060

 

Name Description Note
VCC Input Voltage DC 3.2-5.0V; Typical: DC4.2
RX UART serial input  
TX UART serial output  
DAC_R Audio output right channel Drive earphone and amplifier
DAC_L Audio output left channel Drive earphone and amplifier
SPK2 Speaker Drive speaker less than 3W
GND Ground Power Ground
SPK1 Speaker Drive speaker less than 3W
IO1 Trigger port 1 Short pree to play previous(long press to decrease volume)
GND Ground Power Ground
IO2 Trigger port 2 Short pree to play next(long press to increase volume)
ADKEY1 AD port 1 Trigger play first segment
ADKEY2 AD port 2 Trigger play fifth segment
USB+ USB+ DP USB Port
USB- USB- DM USB Port
Busy Playing Status Low means playing\High means no

 

Этот скетч проигрывает все аудио файлы по порядку:

/*********************************
**Wire: 
*Pin10 - player TX; 
*Pin11 - player RX;
*pin3  - player BUSY
**Board : Uno
*By: LEFF
**********************************/
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
 
SoftwareSerial mySerial(10, 11); // RX, TX
 
void setup () {
  Serial.begin (9600);
  mySerial.begin (9600);
  mp3_set_serial (mySerial);    //set softwareSerial for DFPlayer-mini mp3 module 
  delay(1);                     // delay 1ms to set volume
  mp3_set_volume (15);          // value 0~30
}
void loop () {   
  boolean play_state = digitalRead(3);// connect Pin3 to BUSY pin of player
  if(play_state == HIGH){
    mp3_next ();
  }
}