DFPlayer Mini baud rate selection
Account cancelled 2015-12-06 09:19:19 4018 Views5 Replies The DFPlayer Mini manual says "Baud rate adjustable (default baud rate is 9600)". How do you change the baud rate? I couldn't find any commands to change the baud rate.
2018-06-28 01:16:14 i do not understand the solution, how this code can change the baud rate of dfplayer ??
bondo2a31193
bondo2a31193 2016-01-13 18:40:57 Hello budiwahyunugroho92
Sorry your project isn't working! What baud rate are you using? Can you show me the connections you have?
Maht
Sorry your project isn't working! What baud rate are you using? Can you show me the connections you have?
Maht 2016-01-12 20:11:26 I do not know what happened with my project .. I've been followed the tutorial ... but the result is like this.
budiwahyunugroho92
budiwahyunugroho92 2015-12-11 19:02:08 Hi Kongsimon22,
Apologies for the delay in replying. It seems that the baud rate can be changed.
Try the following lines of code in your sketch:
You can also try editing the "Serial.begin (9600);" lines in your sketch to reflect a different baud rate, e.g. 115200.
If you're still having problems come back and let us know.
Maht
Apologies for the delay in replying. It seems that the baud rate can be changed.
Try the following lines of code in your sketch:
Code: Select all
void h_send_func () {
for (int i=0; i<10; i++) {
_hardware_serial->write (send_buf[i]);
}
}
//
void s_send_func () {
for (int i=0; i<10; i++) {
_software_serial->write (send_buf[i]);
}
}
//
/ oid mp3_set_serial (HardwareSerial *theSerial) {
void mp3_set_serial (HardwareSerial &theSerial) {
_hardware_serial = &theSerial;
send_func = h_send_func;
}
//
void mp3_set_serial (SoftwareSerial &theSerial) {
_software_serial = &theSerial;
send_func = s_send_func;
}
You can also try editing the "Serial.begin (9600);" lines in your sketch to reflect a different baud rate, e.g. 115200.
If you're still having problems come back and let us know.
Maht 
