Difference between revisions of "Microduino BLE IOS-202KIT"

From Microduino Wiki
Jump to: navigation, search
(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 ...")
 
Line 30: Line 30:
 
|-
 
|-
 
|
 
|
[[File:202KIT.jpg|600px|center|thumb|202KIT图片]]
+
[[File:202KIT-module.jpg|600px|center|thumb|202KIT]]
 
|-
 
|-
 
|
 
|
Line 51: Line 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";
Line 63: Line 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==

Revision as of 06:02, 24 February 2014

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
202KIT
  • 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)"

Download

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

202KIT-system

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.

LED

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.

Bluetooth-Data

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)
File:Bluetooth-Connection.jpg
Bluetooth-Connection