Simplest Bluetooth 4.0 BLE & Arduino for $7

22K3523

Intro: Simplest Bluetooth 4.0 BLE & Arduino for $7

This tutorial is intended to show the minimum steps to get a Bluetooth 4.0 CC2540 Module to connect to an Android Smartphone or tablet.

STEP 1: Buy Arudino Nano on Ebay for $3

STEP 2: Buy a Bluetooth BLE "SMART" Serial Uart on Ebay for $3.46

STEP 3: Connect the Nano and the Bluetooth Serial Module

STEP 4: Select Board Type to Be a Nano and Then Upload ASCII Example Code to Your Arduino

STEP 5: Download HM BLE Terminal APP From Google Play Store

STEP 6: Launch the BLE Terminal App

STEP 7: Open the Menu Button Then Hit Connect So You Can Scan for New Devices

STEP 8: Connect to the Serial Module

The android device will then search for available devices.

It should find a BT05. Select this device to connect to.

STEP 9: Hit the Reset Button on the Arduino and You Should See the Communication Happen

From here you can write your own code. A Serial.print(" your text or data here "); is all that is needed.

Note you need to hit the clear screen button on the android app to see new data from your device.

I hope it works for you.

STEP 10:

11 Comments

Hi,
I have such device in a similar setup. I can receive data as reading from serial but for some reason I cannot write to it. The same code works with a HC-05/06 device and I'm able to send and receive data, but with BLE device I can only read from it. Any write simply is not shown on the phone inside serial app. Does any of you know why it could be?
Thanks
Hello, thank you for the very easy to follow instructions. For connecting the the TXD->RX0 ports, say so the student could send a text string from the bluetooth app over the phone, is a resistor divider network also necessary?

Hi ClintK2!

Thank you for this instructable! I want to transfer 100 samples/s from an Arduino Nano to the smartphone, via BLE. Is this instructable useful for my needs? Thanks, God bless you!

Your question is a little hard to understand. If you change the code at the bottom to do the following you can send an infinite amount of data:

if (thisByte == 126) { // you could also use if (thisByte == '~') {
thisByte = 33;
}

The word sample tends to be an overloaded term so in what context do you intend?
No password was required for my device and my Google Pixel 2

How to work with UUID's.

I have a temperature and humidity sensor , how can deal with UUID's.

Will this work for iPad 2nd generation?

Good info, thank you for sharing.