Simple Arduino Bluetooth Communication

3,662

39

2

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    2 Discussions

    0
    None
    lingib

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

    1 reply
    0
    None
    Aleksandar Tsvetkovlingib

    Reply 1 year 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!