• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

DF player for mp3 do not work with ESP32

Q&A Forum › Category: ESP32 › DF player for mp3 do not work with ESP32
0 Vote Up Vote Down
Tomas Pocarovsky asked 6 years ago

Hi I have trouble with DF Player. I cannot connect it with ESP32. It looks like some serial line issue. (DF Player works properly with Arduino nano).
I tried some example from internet but without success. Does anybody working example?
 
Thank you

Question Tags: mp3
4 Answers
0 Vote Up Vote Down
DK answered 6 years ago

hi
I am working on audio server
look at these examples
https://www.dfrobot.com/blog-1188.html
https://www.circuito.io/app?components=9442,336411,360217
https://www.youtube.com/watch?v=kq2RLz65_w0
Hope it helps

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Tomas.
I’m not familiar with that module. So, I don’t know what can be the issue.
Were you able to make it work now?
Regards,
Sara

0 Vote Up Vote Down
Tomas Pocarovsky answered 6 years ago

Hi all
I found what is issue with ESP32 and DF Player.
 When working with ESP32 WiFi/Bluetooth MCU under Arduino SDK for ESP32, you will notice that 
  Serial work just fine. But Serial1 and Serial2 do not. ESP32 has 3 hardware UARTs that can be 
  mapped to almost any pin. But, Serial1 and Serial2 will not work. In case of ESP32 this just 
  has to be done in a slightly different way:
Source:  https://quadmeup.com/arduino-esp32-and-3-hardware-serial-ports/
 
When DFPlayer use HW serial you have to replace
  Serial1.begin(9600); 
by

  MySerial.begin(9600, SERIAL_8N1, 16, 17); (with definition “HardwareSerial MySerial(1);” )

 
Regards,
Tomas

 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Thanks for posting the solution Tomas! I’m glad you were able to make it work for you!
Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.