我无法使用我的Arduino Uno工作的蓝牙模块。我已按照本网站的说明操作: http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPS
所以在我的蓝牙设置上它说COM7 Incoming所以我把它放在Putty和COM8中用于传出所以我把它放在arduino IDE中。我收到这些错误
Sketch uses 3,016 bytes (9%) of program storage space. Maximum is 32,256 bytes.
Global variables use 226 bytes (11%) of dynamic memory, leaving 1,822 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "\\.\COM8": Access is denied.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x31
由于
答案 0 :(得分:0)
你得到的是“程序员没有响应”消息,因为其他一些进程正在使用COM8端口。如果某个其他程序(如串行终端)正在使用该端口,则无法通过该端口对Arduino进行编程,因此请退出程序,对Arduino进行编程,然后再次打开该程序。
答案 1 :(得分:0)
首先,您是否尝试通过蓝牙下载程序,因为如果您不是,那么它就不会起作用。如果您尝试使用USB电缆上传程序,请确保您在正确的COM端口(而不是蓝牙COM端口)。上传程序时,请保持电源和接地连接,使其仍然处于激活状态,但您需要断开rx和tx连接(两个数字端口连接)。这是蓝牙模块的常见问题,因为出于某种原因,当连接rx和tx时,它会干扰程序上传的能力。
答案 2 :(得分:0)
此问题或类似的问题“ avrdude:stk500_recv():程序员没有响应”很容易解决。
如果Arduino已通过HC-06蓝牙模块连接到面包板,则会发生这些问题。
首先,将Arduino从电源上拔下,然后断开Arduino与面包板之间的连接。接通Arduino的电源并检查串行通讯。端口是正确的。现在,将草图上传到Arduino将会没有问题。最后,拔下Arduino的电源,然后将Arduino重新连接到面包板上。
将蓝牙模块连接到Arduino时,该模块会阻止Arduino的串行端口连接到USB来上传草图。