Arduino UNO + Bluetooth HC-05(06)

The Bluetooth module HC-05, HC-06 or compatible one must be connected to the controller. The smartphone or tablet must support Bluetooth.

Notice. IOS devices do not support HC-05 (06) modules. Instead, you can use the Bluetooth module BLE HM-10.

Step 1. Create a graphical user interface project

Enter the RemoteXY editor. Set one button in the smartphone field. Highlight this button, then, select the property "Snap to pin" to the value 13 (LED) in the right pane of the "Element" tab.


Step 2. Configure the project

In the right pane, select the following settings under the "Configuration" tab.


In the right pane set the following settings under the "Module interface" tab.


The settings indicate that the HC-05 (06) module is connected to the Arduino via the software serial port SoftwareSerial using contacts 2 and 3 at 9600 speed. This is the standard speed for the HC-05 (06) modules.

Step 3. Get the sketch for the Arduino

Press the "Get source code" button in the editor.

In the opened page with the source code of the sketch, download it to your computer (the link "Download code") and open it in the Arduino IDE.

Also, download the library RemoteXY (the link "Download library") from this page.

The library being installed correctly, the source code for the sketch must be compiled without errors.

More information how installing the RemoteXY library for the Arduino IDE

Step 4. Connect the HC-05 (06) to the Arduino Uno

Connect the HC-05 (06) module to the Arduino Uno as follows. Note that the RX-TX contacts are connected by a crosswire.


Step 5: Load the sketch into the Arduino.

The sketch is loaded into Arduino in the normal way.

Step 6. Connect from the mobile application.

Install the RemoteXY mobile application on your smartphone/tablet.

Press the new connection "+" button in the top panel in the application. In the window that opens, select the "Bluetooth" connection. If you are using the HM-10 module, select the “Bluetooth BLE” connection.

In the application, turn on the Bluetooth and press the button for updating the list of available devices. Your device can have one of the following names: "HC-05", "HC-06", "INVOR". Select it.

A window for entering the Bluetooth pairing password will open. The default password for HC-05 (06) can be either 1234 or 0000. Enter the password and the connection will start.

Notice. It is necessary to enable previously the Bluetooth in the iOS application using the operating system settings.


If there is no connection...

If there is no connection, it is likely that you will get an error:


The connection is established, but the device
does not respond: Time out error: no response

This means that either the request commands do not reach the controller, or the controller responses are not returned to the smartphone/tablet.

If you receive this specific error, check yourself on the list, going to the next point only after checking the previous one:

  • your Arduino is not on;
  • the required sketch has not been loaded into the Arduino;
  • the RemoteXY library did not update, using old version of library;
  • power is not supplied to the Bluetooth module, the power contacts may be reversed;
  • RX and TX contacts of the Bluetooth module, or one of them are not connected to the controller, a bad contact;
  • the RX and TX contacts of the Bluetooth module are not connected correctly, they may be interchanged, check the scheme (step 4);
  • incorrect configuration settings or connection settings (step 2) had been chosen before generating the source code;
  • the data baud rate of HC-05 (06) module does not match which selected into the RemoteXY configuration (default 9600);
  • the Bluetooth module is defective.