wagiminator / ATtiny85-TinyDFPlayer

MP3-Player
Other
31 stars 8 forks source link

ATTiny fails to start DFPlayer #1

Open 8BitMark opened 3 years ago

8BitMark commented 3 years ago

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

wagiminator commented 3 years ago

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 commented 3 years ago

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.

8BitMark commented 3 years ago

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.

wagiminator commented 3 years ago

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?

8BitMark commented 3 years ago

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 notifications@github.com 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

wagiminator commented 3 years ago

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?