[解决] DFPlayer Mini模块测试代码老是传不上的问题解决办法
在测试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上的线拨下,上传代码,一下子就成功了。
对于新手的我来说,这真是让我费了好大的劲。
希望对像我一样的新手有所帮助:)
感谢经验分享,让我们少走弯路 其实我也犯过,哈哈。以后记住了,凡是用到TX,RX的(蓝牙),烧录程序都先拔出,烧好以后再插 hnyzcj 发表于 2015-12-21 21:10
其实我也犯过,哈哈。以后记住了,凡是用到TX,RX的(蓝牙),烧录程序都先拔出,烧好以后再插 ...
是的呀,这个一定要记住。:handshake 让我们少走弯路{:5_147:} 好像是占用接口的问题,上传前把接上的东西都拆下是好习惯
页:
[1]