Microduino BT Serial port Transmits Data to IOS Device

来自Microduino Wikipedia
1304410487@qq.com讨论 | 贡献2014年11月17日 (一) 08:53的版本 (Created page with "{{Language|Microduino-BLE_IOS}} {| style="width: 800px;" |- | ==Outline== Project: Having communication between Microduino-BT and IOS device. Purpose: IOS device sends char...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
Language English

Outline

Project: Having communication between Microduino-BT and IOS device.

Purpose: IOS device sends character string through Microduino-BT to Microduino-Core and shows it on OLED.

Difficulty: Elementary

Time-consuming: 20-minute

Maker: Microduino Studio-YLB

Bill of Material

  • Microduino Equipment
Module Number Function
Microduino-Core 1 Core board
Microduino-USBTTL 1 Program download
Microduino-BT 1 Bluetooth communication
Microduino-OLED 1 Display
Microduino-Cube-S1 1 Base board


  • Software Equipment

Arduino IDE(version 1.0 and higher). You can download and install LightBlue from App Store;

  • Other Equipment and Components
    • IOS device supporting BT 4.0 (support iPhone4s, iPod touch 5, iPad 3, iPad mini and higher);
    • micro usb cable.

Document

Program Download:

Debugging

Step 1: Start Arduino IDE, open Microduino test program choose the board Microduino-Core(Atmega328P@16M,5V);

Step 2: Stack Microduino-USBTTL, Microduino-Core and Microduino-BT together and plugin microUSB cable for program download.

Step 3: Start the Bluetooth function of IOS device;

Step 4: Open LightBlue, select “Microduino” in “Peripherals Nearby” and then click connection.

Step 5: LED indicator keeps on for 100ms every 5 seconds after successful connection. Meantime, you can see connection on IOS device and then select “Characteristic 6”;

Step 6: Click “HEX” on the top right and select “UTF-8 String”;

Step 7: Select “Write new value” and enter any data you want to send and then select “Done”.

At this time, you can the character string on OLED. You can send “clean” to clear the display.