Simplest Bluetooth 4.0 BLE & Arduino for $7

21,434

35

11

Introduction: 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:

2 People Made This Project!

Recommendations

  • Electronics Contest

    Electronics Contest
  • Woodworking Contest

    Woodworking Contest
  • Home and Garden Contest

    Home and Garden Contest

11 Comments

0
tszebeni
tszebeni

6 months ago

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

0
spidermonkey1187
spidermonkey1187

Question 2 years ago

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?

0
fmarengo
fmarengo

4 years ago

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!

0
spidermonkey1187
spidermonkey1187

Reply 2 years ago

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?

0
spidermonkey1187
spidermonkey1187

Answer 2 years ago

No password was required for my device and my Google Pixel 2

0
SairamB
SairamB

Question 4 years ago on Introduction

How to work with UUID's.

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

0
Malang77
Malang77

6 years ago

Will this work for iPad 2nd generation?

0
seamster
seamster

6 years ago

Good info, thank you for sharing.