Microduino BLE IOS-202KIT

From Microduino Wiki
Revision as of 08:21, 22 February 2014 by Jasonsheng (talk) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
File:202KIT.jpg
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.

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".

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.

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