美文网首页
HC-05蓝牙模块与Arduino通信测试

HC-05蓝牙模块与Arduino通信测试

作者: 张建飞 | 来源:发表于2016-01-04 14:06 被阅读0次
  • 硬件

    • Arduino UNO
    • HC-05 Bluetooth module master/slave
    • ZS-040
    • 杜邦线若干
    • 有蓝牙适配器的PC一台
  • 软件

    • Arduino IDE
    • application serial communicator
  • 步骤

    • 接线

VCC --> 5V
GND --> GND
TX --> RX
RX --> TX

- 测试代码
  ```
#include <SoftwareSerial.h>
SoftwareSerial Conn(10, 11); //RX, TX
void setup() {
// put your setup code here, to run once:
Conn.begin(38400);
}
void loop() {
// put your main code here, to run repeatedly:
Conn.println("Test Transmission String.");
delay(600);
}
  • 结果
串口调试输出

相关文章

网友评论

      本文标题:HC-05蓝牙模块与Arduino通信测试

      本文链接:https://www.haomeiwen.com/subject/jdcahttx.html