“Microduino BLE IOS-202KIT”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{| style="width: 800px;" |- | ==Outline== Project:Microduino BT communicates with IOS device Objective:Passthough the Microduino Core and Microduino BT module's run time ...")
 
Pkj讨论 | 贡献
第30行: 第30行:
 
|-
 
|-
 
|
 
|
[[File:202KIT.jpg|600px|center|thumb|202KIT图片]]
+
[[File:202KIT-module.jpg|600px|center|thumb|202KIT]]
 
|-
 
|-
 
|
 
|
第51行: 第51行:
 
|-
 
|-
 
|
 
|
[[File:Download.jpg|600px|center|thumb|Download]]
+
[[File:ble-Download.jpg|600px|center|thumb|Download]]
 
Step 2:After download the program, install the Microduino FT232R, Microduino-Core and Microduino BT, please power off firstly then install them.
 
Step 2:After download the program, install the Microduino FT232R, Microduino-Core and Microduino BT, please power off firstly then install them.
 
|-
 
|-
 
|
 
|
[[File:202KIT-OK.jpg|600px|center|thumb|202KIT-OK]]
+
[[File:202KIT-system.jpg|600px|center|thumb|202KIT-system]]
 
Step 3:Start to set the IOS device,start the bluetooth function on IOS device.
 
Step 3:Start to set the IOS device,start the bluetooth function on IOS device.
[[File:IOS-Bluetooth.jpg|600px|center|thumb|IOS-Bluetooth]]
+
 
 
Step 4:Open LightBlue
 
Step 4:Open LightBlue
 
In "Central" tab find the "HMSoft", then set "Service"-"Characteristics";
 
In "Central" tab find the "HMSoft", then set "Service"-"Characteristics";
第63行: 第63行:
 
|-
 
|-
 
|
 
|
[[File:Connection.jpg|600px|center|thumb|Connection]]
+
[[File:ble-Connection.jpg|600px|center|thumb|Connection]]
 
Connect successed, LED light.
 
Connect successed, LED light.
 
|-
 
|-
 
|
 
|
[[File:Bluetooth.jpg|600px|center|thumb|Bluetooth]]
+
[[File:BlE-LED.jpg|600px|center|thumb|LED]]
  
 
==Result==
 
==Result==

2014年2月24日 (一) 06:02的版本

Outline

Project:Microduino BT communicates with IOS device

Objective:Passthough the Microduino Core and Microduino BT module's run time to IOS devices

Difficulty:Elementary

Time-consuming:Half an hour

Maker:Microduino Studio-YLB

Bill of Materials

  • Microduino equipment
Module Number Function
Microduino-Core 1 Core board
Microduino-FT232R 1 Download program
Microduino-BT 1 Bluetooth communication
  • Software package

Arduino IDE(1.0 release and upper), download LightBlue from App Store.

LightBlue
  • Other equipment
    • IOS device supports bluetooth 4.0 (iPhone4s upper, iPod touch 5 upper, iPad 3 upper, iPad mini upper)
    • micro usb data cable

Document

Debugging

Step 1:Start Arduino IED, open the Microduino example program, board type choose "Microduino Core (Atmega328P@16M,5V)"

Step 2:After download the program, install the Microduino FT232R, Microduino-Core and Microduino BT, please power off firstly then install them.

Step 3:Start to set the IOS device,start the bluetooth function on IOS device.

Step 4:Open LightBlue In "Central" tab find the "HMSoft", then set "Service"-"Characteristics"; Then you can see the debugging window, click the "Start Notify".

Connection

Connect successed, LED light.

Result

ASCII data can be seen displayed: "BLE, Time: xxx" after connection success, where xxx is the Core and Shield BT4.0's running time in seconds.

Note

  • If keep the jumper(RX0、TX1), need unplug the Microduino BT4.0 module when download program, then install it after download.
  • If change the jumper, need to change the serial connection between Microduino BT4.0 and Core. Change the connection "TX-RX0、RX-TX1" to following:
    • TX-D2、RX-D3 (Core+'s Serial1)
    • TX-D9、RX-D10 (Call the SoftwareSeria libray to resolve)
文件:Bluetooth-Connection.jpg
Bluetooth-Connection