Simplest Bluetooth 4.0 BLE & Arduino for $7
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.
11 Comments
tszebeni 2 years ago
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
spidermonkey1187 4 years ago
spidermonkey1187 4 years ago
fmarengo 6 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!
spidermonkey1187 4 years ago
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?
สืบพงษ์ป 6 years ago
spidermonkey1187 4 years ago
SairamB 6 years ago
How to work with UUID's.
I have a temperature and humidity sensor , how can deal with UUID's.
Malang77 8 years ago
Will this work for iPad 2nd generation?
ClintK2 8 years ago
Unfortunately no. Ipad 2 has bluetooth 2.1 support and no support for the SPP (Serial Port Profile) that these devices utilize. See links below
https://en.wikipedia.org/wiki/List_of_iOS_devices
https://support.apple.com/en-us/HT204387
https://learn.sparkfun.com/tutorials/bluetooth-basics
seamster 8 years ago
Good info, thank you for sharing.