ArduinoGeneral

DFPlayer Problems

userHead n2244h 2014-05-25 23:54:49 24916 Views39 Replies
Hello all,
I recently bought a DFPlayer for building a sound module for RC models. I wanted to try it out before connecting it to an arduino. So I wired a small 8Ohms speaker and put an mp3 file on the card.
For serial communication I used a Sparkfun FTDI adapter like this: [url=https://www.sparkfun.com/products/9873]https://www.sparkfun.com/products/9873[/url]
I set the Adapter to 3,3V and tried out some commands.
The serial communication works fine, when I query the number of files the module returns the correct number of files. The module also tells me, when I plug in the card.
But the problem is, as soon, ervery time I send the play command there is only a very short "pop" sound on the speaker, it doesn't play any mp3 file.
Does anyone have an idea what I could do to solve the problem?
2014-05-28 00:19:33 Lisper's new library is looking good!

n2244h, I've had a quick talk earlier and he mentioned the checksum should be byte 7 and 8 both but not sure i got it right, since i have not used the library yet !!
Maybe I should sneak around and get his player, but everyone is keeping it at hand and playing music often, so I'm a bit out of luck.

Klaus, give me sometime and i'll check on this. I believe its in the updating process.
userHeadPic Jose
2014-05-28 00:19:33 Lisper's new library is looking good!

n2244h, I've had a quick talk earlier and he mentioned the checksum should be byte 7 and 8 both but not sure i got it right, since i have not used the library yet !!
Maybe I should sneak around and get his player, but everyone is keeping it at hand and playing music often, so I'm a bit out of luck.

Klaus, give me sometime and i'll check on this. I believe its in the updating process.
userHeadPic Jose
2014-05-28 00:19:33 Lisper's new library is looking good!

n2244h, I've had a quick talk earlier and he mentioned the checksum should be byte 7 and 8 both but not sure i got it right, since i have not used the library yet !!
Maybe I should sneak around and get his player, but everyone is keeping it at hand and playing music often, so I'm a bit out of luck.

Klaus, give me sometime and i'll check on this. I believe its in the updating process.
userHeadPic Jose
2014-05-28 00:19:33 Lisper's new library is looking good!

n2244h, I've had a quick talk earlier and he mentioned the checksum should be byte 7 and 8 both but not sure i got it right, since i have not used the library yet !!
Maybe I should sneak around and get his player, but everyone is keeping it at hand and playing music often, so I'm a bit out of luck.

Klaus, give me sometime and i'll check on this. I believe its in the updating process.
userHeadPic Jose
2014-05-27 23:53:18 Hello Jose,
When trying to compile new sample file, there were some errors.
So i did try to find: "DFRobot_utility.h", but this was without any success.

Klaus


userHeadPic klaus344
2014-05-27 23:53:18 Hello Jose,
When trying to compile new sample file, there were some errors.
So i did try to find: "DFRobot_utility.h", but this was without any success.

Klaus


userHeadPic klaus344
2014-05-27 23:53:18 Hello Jose,
When trying to compile new sample file, there were some errors.
So i did try to find: "DFRobot_utility.h", but this was without any success.

Klaus


userHeadPic klaus344
2014-05-27 23:53:18 Hello Jose,
When trying to compile new sample file, there were some errors.
So i did try to find: "DFRobot_utility.h", but this was without any success.

Klaus


userHeadPic klaus344
2014-05-27 23:18:07 Hello Jose
and thank you for providing such a quick solution.
In the moment  i am still waiting for delivery of my ordered player boards, but after receiving it, of course i wlll test new commands immediately.

Klaus


 
userHeadPic klaus344
2014-05-27 23:18:07 Hello Jose
and thank you for providing such a quick solution.
In the moment  i am still waiting for delivery of my ordered player boards, but after receiving it, of course i wlll test new commands immediately.

Klaus


 
userHeadPic klaus344
2014-05-27 23:18:07 Hello Jose
and thank you for providing such a quick solution.
In the moment  i am still waiting for delivery of my ordered player boards, but after receiving it, of course i wlll test new commands immediately.

Klaus


 
userHeadPic klaus344
2014-05-27 23:18:07 Hello Jose
and thank you for providing such a quick solution.
In the moment  i am still waiting for delivery of my ordered player boards, but after receiving it, of course i wlll test new commands immediately.

Klaus


 
userHeadPic klaus344
2014-05-27 23:00:24 The new library looks great! Lots of new useful commands, I will try them later on.
I also wanted to report that I got my DFPlayer working. The problem was, that the power supply via the FTDI adapter was too weak. Every time I sent the play command the voltage dropped and that caused the module to reset.
I used a more powerful supply and now everything works fine.

I did the checksum calculation by hand. In the old library it was like that:
Add bytes 2-7 ( it starts with number 0).
In case of the play command it would be:
0        1      2        3        4        6    7      8    9
0X7E, 0xFF, 0x06, 0X0D, 00, 00, 00, 0xFE, X, 0XEF
0x06+0X0D+0xFE= 100010001 (binary)  ---> negate 011101110 =0xEE
So your checksum for byte 8 is 0xEE
userHeadPic n2244h
2014-05-27 23:00:24 The new library looks great! Lots of new useful commands, I will try them later on.
I also wanted to report that I got my DFPlayer working. The problem was, that the power supply via the FTDI adapter was too weak. Every time I sent the play command the voltage dropped and that caused the module to reset.
I used a more powerful supply and now everything works fine.

I did the checksum calculation by hand. In the old library it was like that:
Add bytes 2-7 ( it starts with number 0).
In case of the play command it would be:
0        1      2        3        4        6    7      8    9
0X7E, 0xFF, 0x06, 0X0D, 00, 00, 00, 0xFE, X, 0XEF
0x06+0X0D+0xFE= 100010001 (binary)  ---> negate 011101110 =0xEE
So your checksum for byte 8 is 0xEE
userHeadPic n2244h
2014-05-27 23:00:24 The new library looks great! Lots of new useful commands, I will try them later on.
I also wanted to report that I got my DFPlayer working. The problem was, that the power supply via the FTDI adapter was too weak. Every time I sent the play command the voltage dropped and that caused the module to reset.
I used a more powerful supply and now everything works fine.

I did the checksum calculation by hand. In the old library it was like that:
Add bytes 2-7 ( it starts with number 0).
In case of the play command it would be:
0        1      2        3        4        6    7      8    9
0X7E, 0xFF, 0x06, 0X0D, 00, 00, 00, 0xFE, X, 0XEF
0x06+0X0D+0xFE= 100010001 (binary)  ---> negate 011101110 =0xEE
So your checksum for byte 8 is 0xEE
userHeadPic n2244h
2014-05-27 23:00:24 The new library looks great! Lots of new useful commands, I will try them later on.
I also wanted to report that I got my DFPlayer working. The problem was, that the power supply via the FTDI adapter was too weak. Every time I sent the play command the voltage dropped and that caused the module to reset.
I used a more powerful supply and now everything works fine.

I did the checksum calculation by hand. In the old library it was like that:
Add bytes 2-7 ( it starts with number 0).
In case of the play command it would be:
0        1      2        3        4        6    7      8    9
0X7E, 0xFF, 0x06, 0X0D, 00, 00, 00, 0xFE, X, 0XEF
0x06+0X0D+0xFE= 100010001 (binary)  ---> negate 011101110 =0xEE
So your checksum for byte 8 is 0xEE
userHeadPic n2244h
2014-05-27 20:08:36 Hello Klaus,

We've just released a new library update, and you can find it in Github:
https://github.com/DFRobot/DFPlayer-Mini-mp3

File name play is supported. syntax should be something like this zzzzz.play(001)  without adding '.mp3' and only integers as far as I understand it. the library should have more information regarding the complete features. But if you want to collaborate, you can contribute directly on Git and lisper will be notified as well.

Let us know if this file name play method works for you, or if you need some other features on the library.
userHeadPic Jose
2014-05-27 20:08:36 Hello Klaus,

We've just released a new library update, and you can find it in Github:
https://github.com/DFRobot/DFPlayer-Mini-mp3

File name play is supported. syntax should be something like this zzzzz.play(001)  without adding '.mp3' and only integers as far as I understand it. the library should have more information regarding the complete features. But if you want to collaborate, you can contribute directly on Git and lisper will be notified as well.

Let us know if this file name play method works for you, or if you need some other features on the library.
userHeadPic Jose
2014-05-27 20:08:36 Hello Klaus,

We've just released a new library update, and you can find it in Github:
https://github.com/DFRobot/DFPlayer-Mini-mp3

File name play is supported. syntax should be something like this zzzzz.play(001)  without adding '.mp3' and only integers as far as I understand it. the library should have more information regarding the complete features. But if you want to collaborate, you can contribute directly on Git and lisper will be notified as well.

Let us know if this file name play method works for you, or if you need some other features on the library.
userHeadPic Jose
2014-05-27 20:08:36 Hello Klaus,

We've just released a new library update, and you can find it in Github:
https://github.com/DFRobot/DFPlayer-Mini-mp3

File name play is supported. syntax should be something like this zzzzz.play(001)  without adding '.mp3' and only integers as far as I understand it. the library should have more information regarding the complete features. But if you want to collaborate, you can contribute directly on Git and lisper will be notified as well.

Let us know if this file name play method works for you, or if you need some other features on the library.
userHeadPic Jose