2016-01-23 298 views
1

我无法为我的Arduino Uno工作获取蓝牙模块。我遵循从这个网站的指示: http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPSArduino蓝牙模块HC-06错误

所以在我的蓝牙设置它说COM7传入所以我把它放在腻子和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

你得到,因为其它进程正在使用COM8端口“程序员没有响应”的消息。如果其他程序(如串行终端)正在使用该端口,则无法通过该端口对Arduino进行编程,因此请退出程序,编程Arduino,然后再次打开程序。

0

首先,你是否试图通过蓝牙下载你的程序,因为如果你是,不要,它不会工作。如果您尝试使用USB电缆上传程序,请确保您使用的是正确的COM端口(而非BLUETOOTH COM PORT)。上传程序时,请保持电源和地线连接,使其仍处于激活状态,但需要断开rx和tx连接(两个数字端口连接)。这是蓝牙模块常见的问题,因为由于某些原因,当rx和tx连接时,它会干扰上传程序的能力。

+0

它看起来就像是教程做了什么。但好的,谢谢!所以当程序上传时,我可以断开它并将其插入电池中?我也遇到了终端问题。我的蓝牙设置说COM7-incoming-hc06和COM8-outgoing-hc06'dev b'。我的终端应该使用什么设备和哪个端口? – John

+0

因此,一旦程序正确上传,您可以再次连接rx和tx。如果你这样做了,那么连接到你的电脑就不会有问题。确保程序运行后,将串行端口更改为com8(如果您从arduino接收信息)或com7(如果您正在向arduino发送指令),则在配对计算机时可能会混淆它们。我在使用hc-06时也遇到了这些问题,这是很多试验和错误。 – jc92me