ATtiny85-TinyDFPlayer icon indicating copy to clipboard operation
ATtiny85-TinyDFPlayer copied to clipboard

ATTiny fails to start DFPlayer

Open 8BitMark opened this issue 4 years ago • 6 comments

Which library are you using for DFPlayer? Every time I try to use the ATTiny85 to control the DFPlayer I just get a clicking sound, DFPlayer fails to wake and ATTiny seems to get stuck at this point

if (!tinyPlayer.begin(tinySerial)) {

everything works fine if I control the DFPlayer using same code (but different RX TX pins) on an Arduino Uno

8BitMark avatar Dec 16 '20 07:12 8BitMark

I'm using this library: https://github.com/DFRobot/DFRobotDFPlayerMini. First make sure, your ATtiny is running at 8 MHz internal (set the correct fuses by "Burning bootloader" in the Arduino IDE). If it's still not working, please try a different library: https://github.com/PowerBroker2/DFPlayerMini_Fast (you may have to make a few adjustments to the code). A user had the same problem before and solved it with the new library. It seems that different chips are built into the DFplayer module and not all of them work with the old library. I haven't had any problems with my modules yet.

wagiminator avatar Dec 16 '20 08:12 wagiminator

I attached 2 hex-files to the binary folder which worked for the user. Unfortunately I don't have the source code. However, you can test whether the player works with it.

wagiminator avatar Dec 16 '20 08:12 wagiminator

Thanks for your help, seems i was running a different version of the library. So that plus a delay(500) before the begin statement solved it.

The version on the prototype board then worked fine but the bread board version didn't. Bread board version only worked reliably if volume was set to 15 or less. Otherwise it played first second or two then turned itself off. Higher the volume, the less it played before shutting down.

8BitMark avatar Dec 18 '20 19:12 8BitMark

Interesting, the delay will be built into the next software version as standard. Did you use a capacitor with at least 470uF near the DFPlayer on your breadboard version?

wagiminator avatar Dec 19 '20 19:12 wagiminator

I started with 100uf and then tried 470uf after your email as I'd missed that on your circuit diagram. With the 470uf the DFPLAYER won't start. Have to short the play next track pin to get it to play then same behaviour, louder the volume the shorter it plays before the dfplayer light goes out and the clicking sound starts.

On prototype board it's fine. Could the breadboad quality be an issue?

BTW, thanks for responding to my email earlier emails and the help and guidance you provided, very much appreciated.

Thank you

On Sat, 19 Dec 2020 at 19:28, Stefan Wagner [email protected] wrote:

Interesting, the delay will be built into the next software version as standard. Did you use a capacitor with at least 470uF near the DFPlayer on your breadboard version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wagiminator/ATtiny85-TinyDFPlayer/issues/1#issuecomment-748515008, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNP7CQHA5XNSNTNX26IPBDSVT5ETANCNFSM4U5QW7QA .

--

Regards Mark

Mark Warner http://goog_1458174335 www.mark-warner.co.uk www.skatermark.co.uk

8BitMark avatar Dec 21 '20 17:12 8BitMark

I tested the circuit on a breadboard and it worked. Since the problem only occurs at higher volume levels, I would tap power issues. Do you use a different power supply than with the prototype board?

wagiminator avatar Dec 22 '20 08:12 wagiminator