查看“Connection Method for New Version”的源代码
←
Connection Method for New Version
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| style="width: 800px;" | colspan="2" | *You need to use AT instruction to set up some parameters via the serial port. So you can refer to the following module handbook: [[File:Bluetooth40 en.pdf]] *Module Needed {|class="wikitable" |- |Related Hardware||Number||Function |- |Microduino-BT||2||For communication connection |- |Microduino-USBTTL||1||For serial port communication debugging |- |Dupont line ||4||For circuit connection |- |USB cable ||2||For power supply |- |} *We must set one module as the master machine and another as the slave machine. The master machine will search the requirement of the slave machine and then match them. When we start to build the hardware and connect Microduino-BT and Microduino-USBTTL, we need to connect four wires: {|class="wikitable" |- |Microduino-BT||Microduino-USBTTL |- |RX0||TX1 |- |TX1||RX0 |- |3V3 ||3V3 |- |GND ||GND |- |} [[File:BT-USBTTL-new-1.jpg|600px|center|thumb]] [[File:BT-USBTTL-new-2.jpg|600px|center|thumb]] You need to open Arduino IDE serial monitor or downloaded CommAssistant and set up as follows: Baud rate: 9600; Data bit: 8; Stop bit: 1; Check bit: None. Besides, please make sure AT instruction ended with new line, 0x0D 0x0A and “\r\n”. The default baud rate of the BT module is 9600, however, the baud rate of our quadcopter is 115200. So we need to change the baud rate. *Slave machine setup Select a module as the slave machine and connect the wire according to pin. Open the serial monitor, select 9600 baud rate and “Both NL & CR” and input “AT” in the serial data sending box and enter. If the return is “OK”, it means the serial communication of the module has no problem. [[File:Microduino-BLE-connect-1.png|center]] Change the baud rate as “115200” and enter “AT+BAUD4” in the serial data sending box and enter. If the return is “ok+set:4”, it means the setup is successful. You can change the baud rate of the serial monitor as “115200” and send “AT” to have a test. 更 [[File:Microduino-BLE-connect-2.png|center]] In that way, the slave machine is set. You need to other power supply device to supply the electricity, waiting for being connected by the host machine. *Host machine setup Open the serial monitor, select baud rate 9600 and “Both NL & CR” and input “AT” in the serial port data sending box. If the return is “ok”, it means the serial communication of the module is fine. Change the baud rate as “115200” and enter “AT+BAUD4” in the serial data sending box and enter. If the return is “ok+set:4”, it means the setup is successful. You can change the baud rate of the serial monitor as “115200” and send “AT” to have a test. Change the mode of the host machine, input “AT+ROLE1” in the serial port data sending box. If the return shows “OK+Set:1 Hello World Central”, then the host machine setup is successful. [[File:Microduino-BLE-connect-3.png|center]] Set power-on connection mode, input “AT+IMME1” in the serial port data sending box. If the return show “OK+Set:1 Hello World Central”, it means the setup is successful. [[File:Microduino-BLE-connect-4.png|center]] Search slave machine device, input “AT+DISC?” in the serial data sending box and go back to your slave machine BT MAC address. [[File:Microduino-BLE-connect-5.png|center]] Connect the slave machine, input “AT+COND05FB800D68D” in the serial data sending box and have the connection with the slave machine. If the connection goes well, the slave machine will output “Connected” and the host machine will show “Connected” after about 23 seconds after updating parameters, meaning the BT connection is successful and the system enters passthrough mode. [[File:Microduino-BLE-connect-6.png|center]] |}
返回至
Connection Method for New Version
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息