Basic Bluetooth Operation

Thread Starter

MrAl

Joined Jun 17, 2014
11,474
I received a small bluetooth "shield" yesterday from someone and i realized i did not know how to use it yet.
It is made for an Arduino i guess an "Uno" model.

What i was wondering though is what exactly can i do with this?
I did a little reading and it sounds like it performs a "serial interface" similar to RS232 and you can communicate with your PC if your PC has bluetooth or a bluetooth adapter and driver.

But what about the cell phone? What if i wanted to send data to the phone like say a voltage measurement using the Arduino board one of the Analog to Digital inputs. Would i have to write a cell phone app (Android) to handle the bluetooth comm or is there a simpler way without having to create a custom app?
 

Wolframore

Joined Jan 21, 2019
2,610
Please post model and pictures. It really depends but you should be able to communicate via serial when you enter the AT mode.
 

Wolframore

Joined Jan 21, 2019
2,610
That looks like the HC06 Link to the specs and ideas instructions with the AT command. Search HC-06 or HC-05 + Arduino and there are a lot of tutorials. There are many free or very easy bluetooth button apps out there.

https://www.itead.cc/wiki/BT_Shield_(Master_Slave)

first get the module programmed then you can pair with a phone. I believe those are BT2 or 3. Not sure about compatibility with newer phones. Might be ok with Android.

https://www.instructables.com/id/MIT-Android-App-Using-the-Bluetooth-HC06-to-Connec/
https://www.instructables.com/id/ArduinoBluetoothlamp/
https://www.electronoobs.com/eng_arduino_tut20.php
 

Wolframore

Joined Jan 21, 2019
2,610
HC-05/06 does not do BLE. They are a good module I’ve gotten about 100 ft range but early. The believe it uses the CC2250 chip

You don’t need a library. Just serial connection.
 

Thread Starter

MrAl

Joined Jun 17, 2014
11,474
That looks like the HC06 Link to the specs and ideas instructions with the AT command. Search HC-06 or HC-05 + Arduino and there are a lot of tutorials. There are many free or very easy bluetooth button apps out there.

https://www.itead.cc/wiki/BT_Shield_(Master_Slave)

first get the module programmed then you can pair with a phone. I believe those are BT2 or 3. Not sure about compatibility with newer phones. Might be ok with Android.

https://www.instructables.com/id/MIT-Android-App-Using-the-Bluetooth-HC06-to-Connec/
https://www.instructables.com/id/ArduinoBluetoothlamp/
https://www.electronoobs.com/eng_arduino_tut20.php
Thanks for the links.
They all use MIT App Inventor though do you know of any that use the Android Studio?
 

Wolframore

Joined Jan 21, 2019
2,610
This is easier than bit banging. Just jump in it's not as hard as it looks. Newer ones are a little more challenging. I have one based on the nordic nrf52xxx that will do 1400m with +8dB transmit power. They're incredible little things. I'm sure they will keep improving.
 

Thread Starter

MrAl

Joined Jun 17, 2014
11,474
Well i wasnt too worried about the Arduino side of this i was just thinking what it would take to create an app under Android Studio for the cell phone side. I might want to go custom app. I see all the Bluetooth Andriod projects on the web use the MIT IDE. It is starting to look like i will have to try that too then.

The Bluetooth Basics link was very interesting to read. I didnt realize they mixed BT with WiFi i thought they were entirely different from each other but in BT 4.0 it seems they can use WiFi with BT.
 
Top