Introduction: How to Communicate Module Bluetooth HM-10 (4.0) With Android Smartphone and MCU
First of all, I want to introduce to you some things about module HM-10:
- HM-10 is a BLE with speed about 2KB/s. Bluetooth 's version is 4.0
- It can transmit and reiceive Data with distance up to 100 metter without obstacle.
- Power Source: 3.3 - 5 VDC
- Baudrate : Up to 230400, default baud is 9600, you also can change with AT command
- temparature: from -5 to 65 degree C
- Size: 26.9 x 13 x 2.2 mm
And in this instruction I will tell you how to communicate module Bluetooth HM-10 (bluetooth 4.0) with Android smartphone by BLE Terminal run with my MCU and maybe it can help you with your project.
Step 1: Set Up Hardware and Software
In this instruction I use Tiva C series Launchpad to connect to HM-10, you can set up as attached picture.
Now I will use UART to transmit and receive data. in this case I use UART0 in my launchpad.
And with your phone, you need download HMBLE Terminal, you can easyly find it on Google Play.
And with MCU , I think you should use Code Composer Studio v6.0 by Texas Instrument because it 's free :D :D
And you alsol need set up TIVAWARE library for some code
Step 2: Time for Coding
Ok, I attached my CCS project. So you just need debug and read it.
But before debug my code you need change the link to TIVAWARE (where you set up TIVAWARE) in CCS to make it work. I attached how to do it in my pictures.
And now, turn on your smart phone and open BLE terminal, connect to BLE, and send some chars such as a,b or c..... and look the leds on lauchpad
Ok that 's all, now it 's your turn, so hope you success with this stuff ^^ :D
We have a be nice policy.
Please be positive and constructive.