Microduino BT Serial port Transmits Data to IOS Device

From Microduino Wiki
Jump to: navigation, search
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:File:BT.zip

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.

202KIT-OK

Step 3: Start the Bluetooth function of IOS device;

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

Ble-Connection- Microduino.png
Ble-Connection-new.png

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”;

Ble- Characteristic-0.png
Ble- Characteristic.png

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

Ble- HEX.png
Ble- UTF-8 String.png

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

Ble- Write.png
Ble- Write-1.png

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

Ble- OLED.jpg