Microduino BLE Android-202KIT

来自Microduino Wikipedia
跳转至: 导航搜索
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
  • 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)";

OLED interface when download success.

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

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

Step 4:Open the BLE assistant;

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

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

Connect successed, LED will light.

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

Send "clean" to clear the data on 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