查看“Microduino-BT”的源代码
←
Microduino-BT
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language|Microduino-BT}} {| style="width: 800px;" |- | [[File:Microduino-bt-rect.jpg|400px|thumb|right|Microduino-Shield BT4.0]] Microduino-BT is a BLE serial transparent transmission module based on CC2541 chip. It is custom-made for U-shaped 27PIN standard interface of Microduino. The old version can refer to [[Microduino-【BT】]]. ==Features== *Adopt Microduino UPIN27 standard interface, working by stacking with other Microduino modules; *Adopt TI CC2541 chip with low consumption; *Support iBecons mode; *Multiple ways to restore factory settings; **Use “AT+ RENEW\r\n” instruction to restore; **Test pin DEF to GND and then power on the module. The LED light blinks after LED1 keeps on for three seconds and meantime, loose DEF and factory reset succeeds, you can see the LED light blinks every one second. *Capable of data power-off preservation function; *Support AT instruction and flexible to change serial baud rate, device name, code matching as well as other parameters according to various needs; *Small, cheap, stackable and open source; *Open source hardware circuit design and Arduino compatible programming development environment; *Uniform Microduino interface standard and rich external modules, flexible to connect with other Microduino modules and sensors; *2.54 pin pitch interface makes it easy to be integrated to pegboard. ==Specification== *Way of Communication: Serial port transmission and the default serial port is D4(RX), D5(TX); *Power Supply: +3.3VDC 50mA; *Bluetooth Protocol: Bluetooth Specification V4.0 BLE; *Service Support: Central & Peripheral UUID FFE0,FFE1; *Frequency: 2.4GHz ISM band; *Way of Modulation: GFSK(Gaussian Frequency Shift Keying); *Transmit Power: ≤4dBm; *Flexibility: ≤-84dBm at 0.1% BER; *Transmission Rate: **Asynchronous: 6 kbps; **Synchronous: 6 kbps; *Status Indicator: **Before connection: ***Host machine indicator keeps on for 100ms every second when not recording slave machine address; ***Host machine indicator keeps on for 900ms every second when recording slave machine address; ***Slave machine indicator keeps on for one second every two seconds. **After connection: **The indicator of both the host and the slave machine keeps on for 100ms every five seconds. *During the transmission, each data package should include less than 120 bytes. The higher the baud rate is, the longer transmission interval is. There exists loss rate during Bluetooth data transmission. So users should be ready for re-transmission or data check. *iBeacon has been integrated. Set by AT instruction “AT+MODE2\r\n” can be achieved only under slave machine. **Work mode: 0(transmission), 1(Direct drive) and 2(iBeacon); **iBeacon can be tested by Locate iBeacons offered on App Store. Here is the reference: http://blog.csdn.net/mzy202/article/details/20365691 ==Document== Eagle PCB '''[[File:Microduino-BT Shield.zip]]''' Support AT instruction configuration/control: '''[[File:Microduino-BLE.pdf]]''' ===Main Components=== *cc2541_datasheet:'''[[File:Cc2541.pdf]]''' ===Android APP=== *APP Installation package:'''[[File:BT APP.zip]]''' *APP Source:https://github.com/iascchen/android-microduino ==Development== ===Serial Port Communication Requirements=== *Default serial configuration is: **Baud rate: 9600 **No check **Data bit 8 **Stop bit 1 *For Arduino IDE serial monitor: **Set to: “\r\n”、“9600baud” *For other serial debugging software: **Baud rate 9600 **No check **Data bit 8 **Stop bit ===Use PC to Debug=== *Debug by serial port: **Do not stack [[Microduino-USBTTL]] directly and cross connect RX(D4) and TX(D5) of [[Microduino-USBTTL]] and [[Microduino-BT]]. {|class="wikitable" |- |Microduino-BT||Microduino-USBTTL |- |D4||TX1 |- |D5||RX0 |- |3V3 ||3V3 |- |GND ||GND |- |} ===Use USBTTL and Core to Download and Debug=== *If it keeps using the default jumper (RX0、TX1): **Unplug the Microduino Shield BT4.0 during downloading the program; *If you want to change the jumper cables to meet your requirement, you need to cut the connection between two intermediate of the pad and RX0/TX1, and then connect them to D2, D3 (or D9, D10). **If it needs to change the jumper, you can change the serial connection of Microduino Shield BT4.0 and Microduino Core from "TX-RX0、RX-TX1" to: ***TX-D2, RX-D3 (For Core+'s Serial1) ***TX-D9, RX-D10 (you can adopt SoftwareSerial libray to solve the problem) ===Pin Description=== :[[file:Microduino-BT-1Big2.jpg|800px|thumb|center|Microduino-BT]] <br style="clear: left"/> :[[file:Microduino-BT-2Big1.jpg|800px|thumb|center|Microduino-BT]] <br style="clear: left"/> {|class="wikitable" ! rowspan="1" | HM-10 module pin name || Microduino pin || Function |- | TX|| RX0(orD2/D4) || Serial sending pin(TTL level), capable of connection RXD od a microcontroller. |- | RX || TX1(orD3/D5) || Serial receiving pin(TTL level), capable of connecting TXD of a microcontroller. |} ==Application== ===Program Download=== Program test: '''[[File:BLE debug uart1.zip]]''','''[[File:BLE LightBlue time.zip]]''' ===Serial Port Debug Shield BT4.0 by CoreUSB === *Hardware: Microduino CoreUSB and Microduino BT; *Software: Arduino IDE (version 1.0 or higher) and Microduino test program (Arduino end); **Other conditions: Users can change the jumpers back of the module and change the serial port to RX0(D0) and TX1(D1);(Because CoreUSB can use USB to simulate 0(Serial), and RX0 and TX1 is the (Serial 1) of CoreUSB); *Start Arduino IDE, open Microduino test program and choose Microduino-CoreUSB as the board and download directly; *Check if the serial communication is OK or not: **Send “AT”(with \r\n behind) after opening the serial monitor and if the return is “OK”, it means the configuration is successful. ===Have serial debugging of BT module by uart1 of Core+ === *Hardware: Microduino USBTTL, Microduino Core+ and Microduino BT; *Software: Arduino IDE (version 1.0 and higher) as well as Microduino test program (Arduino end); *Other conditions: Users can change the jumpers back of the module and change the serial port to D2 and D3; *Start Arduino IDE, open Microduino test program and choose board Microduino Core+( Atmega644P@16M,5V) and download; *Check the status of the serial communication: ** Send “AT”(with \r\n behind) after opening the serial monitor and if the return is “OK”, it means the configuration is successful. ==[[ How to Connect Two Microduino-BT Modules]]== ==[[Intercommunication between Two Microduino-BT Modules]]== ==[[Microduino BT Serial port Transmits Data to IOS Device]]== ===Note:If you use Android device to debug, you need to make sure the system should be version 4.3 or higher so that Microduino-BT can be detected.=== ===A simple test of Microduino-Shield BT4.0=== *[http://viewc.com/p/296 A simple test of Microduino-Shield BT4.0] from @颜火山 ==FQA== *This module can’t make pair with win7? **Check the BT version in win7, this module only support BLE 4.0 version and default password is 000000. *Does this module can reset by button? **No, it can be reset by power down. *This module can’t make pair with iphone and Android phone? **This issue mostly is caused by the BT version. This module only supports BT4.0 protocol. **For Andriod OS: 4.3 release **For IOS: iPhone4s upper, iPod touch 5 upper, iPad 3 upper and iPad mini upper ==Buy== ==History== *On July, 28, 2014, the module scheme was cancelled. The new BT version adopts CC25541 chip, supporting iBeacons mode. For the old version, you can refer to [[Microduino-【BT】]]. *On June 5, 2014, the second proofing was finished, changing its name to <nowiki>Microduino-[BT]</nowiki> and addomg the third optional serial port—UART1. It is divided into two versions—version 2.1, a module used for HM09 and 4.0 version, a module used for HM10. *On 10, May, 2013, the board design was finished. |- | ==Pictures== [[file:Microduino-【BT】-t.jpg|thumb|600px|center|Microduino BT 4.0 Front]] [[file:Microduino-【BT】-b.jpg|thumb|600px|center|Microduino BT 4.0 Back]] ==Video== |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Microduino-BT
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
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
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息