【问题标题】:Arduino + Ethernet shield + Bluetooth HC-05Arduino + 以太网屏蔽 + 蓝牙 HC-05
【发布时间】:2017-03-26 10:18:33
【问题描述】:

我想通过蓝牙将 Arduino Uno 连接到其他设备。它可以工作,直到我添加了以太网屏蔽。

这一行打破了蓝牙模式:EthernetServer server(80);

void setup() {
  pinMode(9, OUTPUT); 
  Serial.begin(9600); 
  BTSerial.begin(38400); // HC-05 default speed in AT command more
  Ethernet.begin(mac, ip);
  server.begin();
}

【问题讨论】:

  • BTSerial 使用什么引脚?

标签: bluetooth arduino ethernet


【解决方案1】:

在使用以太网屏蔽时,您不能使用引脚 4、10、11、12 和 13。因此,如果您将其中之一用于 SoftwareSerial,这就是原因。

【讨论】:

  • 我找到了相同的答案。谢谢!
猜你喜欢
  • 1970-01-01
  • 2014-06-06
  • 1970-01-01
  • 1970-01-01
  • 2022-01-22
  • 2018-02-19
  • 2018-03-10
  • 1970-01-01
  • 2020-04-15
相关资源
最近更新 更多