Simple Arduino Bluetooth Communication

4.8K442

Intro: Simple Arduino Bluetooth Communication

In this tutorial, I will show you the basics of the HC-06 serial communication. For this, you will need only the module itself, an Arduino board and an USB cable. All of them can be found at Kuman's website.

The connections are as follows:

HC-06 | Arduino

  • TX - RX
  • RX - TX
  • GND - GND
  • 5V - 5V

STEP 1: Uploading the Code and Downloading the App

The code is very simple. I'm sure that you can write it on your own, but if you still need it, it can be found here.

Upload it to the board and head on to your phone. For Android, the best app for the case is S2 Terminal. Download it and when opening, turn on Bluetooth and pair up with the module. It's name is HC-06. If asked for pin/password use 1234 or 0000.

STEP 2: The Connection Itself

In the Arduino IDE, open up the serial monitor. On your phone, send a random word and then check if it has appeared on your PC. If so, feel free to continue to more advanced projects.

This was a simple project just for testing purposes and to check if everything is working!

2 Comments

Nice project :)

One small point ... connecting 5 volts from the arduino TX output directly to the 3.3 volt HC-06 RxD input risks damaging your bluetooth module. To prevent damage I would recommend using a voltage divider..
Thanks ;)
I've made a little research and actually you are right. The RX line of the HC-06 turned out as not being 5V tolerant. I guess you learn new things every day.
Thanks for sharing! Have a nice day!