Microduino BLE IOS-202KIT

来自Microduino Wikipedia
跳转至: 导航搜索
Language English

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