“Microduino-BT”的版本间的差异
(→Application) |
|||
第9行: | 第9行: | ||
==Features== | ==Features== | ||
− | *Microduino | + | *Adopt Microduino UPIN27 standard interface, working by stacking with other Microduino modules; |
− | * | + | *Adopt TI CC2541 chip with low consumption; |
− | * | + | *Support iBecons mode; |
− | *Support AT instruction | + | *Multiple ways to restore factory settings; |
− | *Small, cheap, stackable; | + | **Use “AT+ RENEW\r\n” instruction to restore; |
− | *Open source hardware circuit design | + | **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; |
− | *2.54 pitch | + | *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== |
− | *Communication | + | *Way of Communication: Serial port transmission and the default serial port is D4(RX), D5(TX); |
− | *Power | + | *Power Supply: +3.3VDC 50mA; |
− | *Bluetooth | + | *Bluetooth Protocol: Bluetooth Specification V4.0 BLE; |
− | *Service | + | *Service Support: Central & Peripheral UUID FFE0,FFE1; |
− | * | + | *Frequency: 2.4GHz ISM band; |
− | *Modulation | + | *Way of Modulation: GFSK(Gaussian Frequency Shift Keying); |
− | *Power | + | *Transmit Power: ≤4dBm; |
− | * | + | *Flexibility: ≤-84dBm at 0.1% BER; |
− | *Transmission | + | *Transmission Rate: |
**Asynchronous: 6 kbps; | **Asynchronous: 6 kbps; | ||
**Synchronous: 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]]''' | Eagle PCB '''[[File:Microduino-BT Shield.zip]]''' | ||
− | + | Support AT instruction configuration/control: '''[[File:Microduino-BLE.pdf]]''' | |
− | + | ||
− | * | + | ===Main Components=== |
+ | *cc2541_datasheet:'''[[File:Cc2541.pdf]]''' | ||
==Development== | ==Development== | ||
− | ===Serial | + | ===Serial Port Communication Requirements=== |
− | *Default serial | + | *Default serial configuration is: |
**Baud rate: 9600 | **Baud rate: 9600 | ||
**No check | **No check | ||
− | **Data | + | **Data bit 8 |
− | **Stop bit | + | **Stop bit 1 |
− | * | + | *For Arduino IDE serial monitor: |
− | **Set | + | **Set to: “\r\n”、“9600baud” |
− | *For other serial | + | *For other serial debugging software: |
− | **Baud rate | + | **Baud rate 9600 |
**No check | **No check | ||
− | **Data | + | **Data bit 8 |
− | **Stop | + | **Stop bit1 |
− | * | + | ===Use PC to Debug=== |
− | **Microduino- | + | *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 | + | ===Use USBTTL and Core to Download and Debug=== |
− | |||
− | |||
− | |||
− | |||
*If it keeps using the default jumper (RX0、TX1): | *If it keeps using the default jumper (RX0、TX1): | ||
**Unplug the Microduino Shield BT4.0 during downloading the program; | **Unplug the Microduino Shield BT4.0 during downloading the program; | ||
第75行: | 第94行: | ||
***TX-D9、RX-D10 (you can adopt SoftwareSeria libray to solve the problem) | ***TX-D9、RX-D10 (you can adopt SoftwareSeria libray to solve the problem) | ||
− | ===Pin | + | ===Pin Description=== |
− | :[[file:Microduino-BT- | + | :[[file:Microduino-BT-1Big2.jpg|800px|thumb|center|Microduino-BT]] |
<br style="clear: left"/> | <br style="clear: left"/> | ||
− | :[[file:Microduino-BT- | + | :[[file:Microduino-BT-2Big1.jpg|800px|thumb|center|Microduino-BT]] |
<br style="clear: left"/> | <br style="clear: left"/> | ||
{|class="wikitable" | {|class="wikitable" | ||
− | ! rowspan="1" | HM-10 | + | ! rowspan="1" | HM-10 module pin name || Microduino pin || Function |
|- | |- | ||
− | | TX|| RX0(orD2/ | + | | TX|| RX0(orD2/D4) || Serial sending pin(TTL level), capable of connection RXD od a microcontroller. |
|- | |- | ||
− | | RX || TX1(orD3/ | + | | RX || TX1(orD3/D5) || Serial receiving pin(TTL level), capable of connecting TXD of a microcontroller. |
|} | |} | ||
− | |||
− | |||
− | |||
==Application== | ==Application== | ||
− | ===Download | + | ===Program Download=== |
− | Program | + | Program test: '''[[File:BLE debug uart1.zip]]''','''[[File:BLE LightBlue time.zip]]''' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | === | + | ===Serial Port Debug Shield BT4.0 by CoreUSB === |
− | *Hardware | + | *Hardware: Microduino CoreUSB and Microduino BT; |
− | *Software | + | *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 | + | *Start Arduino IDE, open Microduino test program and choose Microduino-CoreUSB as the board and download directly; |
− | *Check | + | *Check if the serial communication is OK or not: |
− | **Send | + | **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]]== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==[[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.=== | ===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.=== |
2014年11月17日 (一) 07:06的版本
Language | English |
---|
Microduino-Shield BT 4.0 module is a plug-in device that supports Bluetooth 4.0 low energy standard. Microduino-Shield BT 4.0 module is a bluetooth serial port transparent transmission module, using the 27 PIN standard Microduino interface, supporting the Arduino board and derivatives, such as Microduino core. The module is designed by player ogre_c. 目录Features
Specification
**After connection:
DocumentEagle PCB 文件:Microduino-BT Shield.zip Support AT instruction configuration/control: 文件:Microduino-BLE.pdf Main Components
DevelopmentSerial Port Communication Requirements
Use PC to Debug
Use USBTTL and Core to Download and Debug
Pin Description
ApplicationProgram DownloadProgram test: 文件:BLE debug uart1.zip,文件:BLE LightBlue time.zip Serial Port Debug Shield BT4.0 by CoreUSB
Have serial debugging of BT module by uart1 of Core+
How to Connect Two Microduino-BT ModulesMicroduino BT Serial port Transmits Data to IOS DeviceNote: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
FQA
BuyHistory
| |||||||||||||||||||
PicturesVideo |