Usage Example for Arduino-PC Communication

Last revision 2026/01/12

This article guides you through the process of setting up communication between Arduino and PC using the DF-Bluetooth module. It covers hardware preparation, software installation, and step-by-step instructions for pairing and connecting devices, along with sample code for testing data transmission.

The DF-Bluetooth module is based on the specification of Bluetooth V2.0, compatible with V1.1. A Bluetooth adaptor is required to communicate with the DF-Bluetooth module. When it is paired with other Bluetooth devices, the DF-Bluetooth is always set to slave mode.

The IVT BlueSoleil is recommended to manager all your Bluetooth devices.

Hardware Preparation

Software Preparation

Note: you can also use Arduino IDE serial monitor.

Operation Steps

  1. Connect a Bluetooth adapter to the PC.

  2. Mount the Bluetooth module on the Arduino board.

  3. Open BlueSoleil → right-click the central yellow ball → "Search Devices" → find the "EPBMX-COM" icon (DF-Bluetooth module).

    DF-Bluetooth3

  4. Right-click "EPBMX-COM" → "Pair" → enter passkey "1234" (LINK-LED blinks then stays on if successful).

    Pair success

  5. Right-click "EPBMX-COM" → "Search Service" → right-click again → "Connect Bluetooth Serial Port (COMXX)" (LINK-LED stays on).

    Connection

  6. Unplug the Bluetooth module from Arduino → upload test code → replug the module.

void setup()
{
  Serial.begin(9600);             //Set serial baud rate to 9600
}

void loop()
{
  Serial.print("Hello!");           //print out hello string
  delay(1000);                  //1 second delay
}

Result

Open the Arduino serial monitor or CoolTerm to view data sent by Arduino.

Sending_Information1

Note

  • Ensure the baud rate is 9600 for both master and slave.
  • Disconnect the module before uploading code to avoid TX/RX pin occupation.

Was this article helpful?

TOP