为什么与蓝牙Arduino的大型作品,​​只有当它连接到电脑 [英] why arduino mega with bluetooth works only when it connect to the pc

查看:205
本文介绍了为什么与蓝牙Arduino的大型作品,​​只有当它连接到电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将使用Arduino特大2560和BT JY- MCU。
我连接到BT与我的Andr​​oid divece但Arduino的,除非它连接到PC不响应。
在code是真的简单的 -
也许它becouse我使用:
 字符输入= Serial.read();

i use arduino mega 2560 and BT JY- MCU. i connect to the BT with my android divece but the arduino not response unless it connect to the PC. the code is really simple one - maybe it becouse i use: "char input = Serial.read();"

请帮忙...

推荐答案

请发表您的Arduino草图code。该问题可能与Serial.read()。很难说没有看到一些草图code的。其中值得注意的是,一台PC的USB连接可以强制将可能不会发生电池运行复位。这是非常重要的(和有用)。

Please post your Arduino sketch code. The problem might be related to Serial.read(). Hard to tell without seeing some of the sketch code. One note is that a PC USB connection can force resets that might not happen running on batteries. This can be very important (and helpful).

这篇关于为什么与蓝牙Arduino的大型作品,​​只有当它连接到电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆