Simple Arduino Bluetooth Communication

4,671

44

2

Introduction: Simple Arduino Bluetooth Communication

About: Student, currently studying programming. Interested in Arduino, Raspberry Pi and Electronics in general.

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!

Arduino Contest 2017

Participated in the
Arduino Contest 2017

Be the First to Share

    Recommendations

    • For the Home Contest

      For the Home Contest
    • Make It Bridge

      Make It Bridge
    • Big and Small Contest

      Big and Small Contest

    2 Comments

    0
    lingib
    lingib

    5 years ago

    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..

    0
    Aleksandar Tsvetkov
    Aleksandar Tsvetkov

    Reply 5 years ago

    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!