Microduino BLE Android-202KIT

From Microduino Wiki
Revision as of 05:32, 11 April 2014 by Jasonsheng (talk) (Created page with "{{Language|Microduino_BLE_Android-202KIT}} {| style="width: 800px;" |- | ==Outline== Project:Microduino BT communicates with Android device Objective:Android mobile send ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文

Outline

Project:Microduino BT communicates with Android device

Objective:Android mobile send the character to Microduino-Core and Microduino BT and display on OLED.

Difficulty:Elementary

Time-consuming:30mins

Maker:Microduino Studio-YLB

Bill of Materials

  • Microduino device
Module Number Function
Microduino-Core 1 core module
Microduino-FT232R 1 Download program
Microduino-BT 1 BT communication
Microduino-S1 1 Connect the OLED
Microduino-OLED 1 Display
202KIT图片
  • Software

Arduino IDE (1.0 release and upper), Downlaod 4.0 BT Android assistant:http://www.jnhuamao.cn/download.asp?page=2&ID=0;

  • Other equipment
    • Android device support BT 4.0, the OS should be 4.3 upper.
    • micro usb cable.

Document

Download test program: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_KIT/kit_android_BT

Debug

Step 1:Start Arduino IED, open the test program, select the board "Microduino Core (Atmega328P@16M,5V)";

Download

OLED interface when download success.

OLED

Step 2:After finished download program, power off, then plug in all module.

202KIT-OK

Step 3:Set Android device, start Android device's BT function;

Step 4:Open the BLE assistant;

202KIT-OK

Step 5:Click the "search device", you can find the Microduino BT device;

202KIT-OK

Step 6:Click the searched equipment to match connection, mobile phone will prompte the connection process

Connection

Connect successed, LED will light.

LED

Step 7: Enter any text in the text input box, and then click send, you can see the sent text on the OLED (English characters).

OLED

Send "clean" to clear the data on OLED.

OLED

Result

Microduino Core module and Android mobile can set up connection easily by Microduino BT module.

Note

  • Set the serial baud rate to 9600.
  • If use the default jumper (RX0,TX1),when download the program, need plug out the Microduino BT4.0 module. After finished download, then power off to plug in again.
  • If changed the jumper, need to change serial connection of Microduino BT4.0 and Core module, the origianl connection is TX-RX0, RX-TX1, need change to following connection:
    • TX-D2, RX-D3 (Corresponding to Core+'s Serial1)
    • TX-D9, RX-D10 (invoke the SoftwareSeria library to resolve this issue)

Video

http://v.youku.com/v_show/id_XNjk0MTMyMzc2.html