[解决] DFPlayer Mini模块测试代码老是传不上的问题解决办法

2015-12-211.6万
AI 快速预览详细 收起
本文介绍了如何解决DFPlayer Mini模块在测试过程中遇到的代码上传问题。通过正确的电路连接和断开跳线的方法,解决了avrdude错误,适用于初学者。具体步骤包括:将TX和RX正确连接到Arduino的RX和TX,并在上传代码时断开这些引脚上的跳线。这样可以避免avrdude错误,使代码上传成功。
在测试DFPlayer Mini模块时本来已经可以放出声音了
在修改代码之后,代码再也不能Upload了
纠结、搜索了一晚上之后,问题终于解决。

第一次可以成功将代码上传,是因为我把:
             TX (DFPlayer Mini)  --> TX (Arduino)
             RX (DFPlayer Mini)  --> RX (Arduino)
这时是可以成功上传的

而后来我仔细看了连线图,把连线改成 TX-->RX,RX--> TX
于是在Upload时就要等待很长时间,且不能成功,最后出现错误提示:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
……


最后,发现这样一段话:
You can check if you have any jumper wires plugged into pin 0 and 1. thoses pins are used for serial communication and plugged wires can can prevent the code from being uploaded on the board.


于是把RX,TX上的线拨下,上传代码,一下子就成功了。


对于新手的我来说,这真是让我费了好大的劲。
希望对像我一样的新手有所帮助:)

创作许可协议

本项目采用 None(不开放任何权利,保留所有权利) 进行许可。

评论(4)
dsweiliang
dsweiliang
好像是占用接口的问题,上传前把接上的东西都拆下是好习惯
qq815076543322
qq815076543322
让我们少走弯路
hnyzcj
hnyzcj
其实我也犯过,哈哈。以后记住了,凡是用到TX,RX的(蓝牙),烧录程序都先拔出,烧好以后再插
powera
powera
作者
回复hnyzcj
是的呀,这个一定要记住。:handshake
丄帝De咗臂
丄帝De咗臂
感谢经验分享,让我们少走弯路
- 没有更多了 -