ESP32: Playing MP3 files with the YX5300 MP3 Module using Hardware Serial

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • In this video I'll explain how to connect and setup the YX5300 MP3 player to the ESP32 and send it commands using the hardware serial pins of the ESP32. I also explain how those commands are formatted and how to decipher the format needed to add options to the commands.
    Manual for YX5300 module: github.com/rdi...
    Have a question or comment? Leave it below or send me an email:
    brandon@baldguydiy.com
    Thanks for watching!

ความคิดเห็น • 5

  • @billlemke8072
    @billlemke8072 3 ปีที่แล้ว

    With your help, I finally have a better understanding of how these commands work!

    • @BaldGuyDIY
      @BaldGuyDIY  3 ปีที่แล้ว

      Glad it was helpful! Thanks for watching.

  • @jerryhanna7869
    @jerryhanna7869 2 ปีที่แล้ว +1

    Excellent! I've used these Catalex boards with Arduinos before but couldn't find anything about using them with ESP32 boards until I found your video with it's great information, thanks!
    My one suggestion is that for most uses it's not necessary to define all of the possible commands, the three below are the bare minimum that work for me.
    I'm using this on a replica Doctor Who K-9 ( robot dog ) that I control using a PS3 controller, when I press a button on the controller the K-9 performs an action with an accompanying sound, for example when his antennas move a random sound clip plays.
    static int8_t Send_buf[8] = {0} ;
    #define CMD_SEL_DEV 0X09
    #define DEV_TF 0X02
    #define CMD_PLAY_W_VOL 0X22
    void randoSound(){
    int16_t clip;
    clip = 0X0F04 + random(10,20);
    delay(200);
    sendCommand(CMD_SEL_DEV, DEV_TF);
    delay(200);
    sendCommand(CMD_PLAY_W_VOL,clip);
    delay(2000);
    }

  • @hunakaka
    @hunakaka 2 หลายเดือนก่อน

    where can we download this program for arduino ide for esp32 to use with catalex player?

  • @chichicaney
    @chichicaney 7 หลายเดือนก่อน

    Salvador gracias por este importantisimo video para mi. Tengo una pregunta: se puede instalar dos mp3 players a un solo esp32?