Simple Arduino Bluetooth Communication

2,642

34

2

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

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!

Share

    Recommendations

    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Optics Contest

      Optics Contest
    • Audio Contest 2018

      Audio Contest 2018

    2 Discussions

    0
    None
    lingib

    8 months 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 8 months 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!