Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use XY-BT11: Examples, Pinouts, and Specs

Image of XY-BT11
Cirkit Designer LogoDesign with XY-BT11 in Cirkit Designer

Introduction

The XY-BT11 is a Bluetooth module designed for wireless communication in embedded systems. It enables devices to connect and exchange data over short distances using Bluetooth technology. This module is widely used in applications requiring wireless data transfer, such as IoT devices, home automation systems, wireless sensors, and remote-controlled devices. Its compact size and ease of integration make it a popular choice for developers and hobbyists alike.

Explore Projects Built with XY-BT11

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing XY-BT11 in a practical application
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Bluetooth-Controlled Robotic Arm with Servo Motors and DC Motors
Image of ROBOTIC_ARM: A project utilizing XY-BT11 in a practical application
This circuit is a Bluetooth-controlled robotic system powered by an Arduino UNO, which drives two DC motors via an L298N motor driver and controls six servos. The system includes an HC-05 Bluetooth module for wireless communication, and a DC-DC buck converter to step down the voltage from a 12V battery to power the servos and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Bluetooth Audio Receiver with Battery-Powered Amplifier and Loudspeakers
Image of speaker bluetooh portable: A project utilizing XY-BT11 in a practical application
This circuit is a Bluetooth-enabled audio system powered by a rechargeable 18650 Li-ion battery. It includes a TP4056 module for battery charging and protection, a PAM8403 amplifier with volume control to drive two loudspeakers, and a Bluetooth audio receiver to wirelessly receive audio signals.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F103C8T6 Bluetooth-Controlled Arcade Joystick Interface
Image of RC카 조이스틱: A project utilizing XY-BT11 in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a Bluetooth HC-06 module for wireless communication and an Adafruit Arcade Joystick for user input. The microcontroller's pins B0 and B10 are connected to the TXD and RXD pins of the Bluetooth module, enabling serial communication, while pins B14 and B15 interface with the joystick's directional controls. The circuit is powered by a battery, with power distribution managed through the microcontroller's 3.3V pin and common ground connections.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with XY-BT11

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of padelpro transmitter: A project utilizing XY-BT11 in a practical application
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ROBOTIC_ARM: A project utilizing XY-BT11 in a practical application
Arduino UNO Bluetooth-Controlled Robotic Arm with Servo Motors and DC Motors
This circuit is a Bluetooth-controlled robotic system powered by an Arduino UNO, which drives two DC motors via an L298N motor driver and controls six servos. The system includes an HC-05 Bluetooth module for wireless communication, and a DC-DC buck converter to step down the voltage from a 12V battery to power the servos and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of speaker bluetooh portable: A project utilizing XY-BT11 in a practical application
Bluetooth Audio Receiver with Battery-Powered Amplifier and Loudspeakers
This circuit is a Bluetooth-enabled audio system powered by a rechargeable 18650 Li-ion battery. It includes a TP4056 module for battery charging and protection, a PAM8403 amplifier with volume control to drive two loudspeakers, and a Bluetooth audio receiver to wirelessly receive audio signals.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RC카 조이스틱: A project utilizing XY-BT11 in a practical application
STM32F103C8T6 Bluetooth-Controlled Arcade Joystick Interface
This circuit features an STM32F103C8T6 microcontroller interfaced with a Bluetooth HC-06 module for wireless communication and an Adafruit Arcade Joystick for user input. The microcontroller's pins B0 and B10 are connected to the TXD and RXD pins of the Bluetooth module, enabling serial communication, while pins B14 and B15 interface with the joystick's directional controls. The circuit is powered by a battery, with power distribution managed through the microcontroller's 3.3V pin and common ground connections.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Wireless data transmission in IoT projects
  • Home automation and smart devices
  • Remote control systems
  • Wireless sensors and monitoring systems
  • Serial communication between microcontrollers and smartphones

Technical Specifications

The XY-BT11 module is designed to operate efficiently in a variety of embedded systems. Below are its key technical details:

Key Specifications:

Parameter Value
Bluetooth Version 4.0 (Low Energy)
Operating Voltage 3.6V - 6V
Operating Current ≤ 50mA
Communication Protocol UART (Universal Asynchronous Receiver-Transmitter)
Baud Rate Default: 9600 bps (configurable)
Transmission Distance Up to 10 meters (line of sight)
Dimensions 37mm x 15mm x 7mm
Operating Temperature -20°C to 70°C

Pin Configuration:

The XY-BT11 module has 6 pins, as described in the table below:

Pin Number Pin Name Description
1 VCC Power supply input (3.6V - 6V)
2 GND Ground connection
3 TXD Transmit data (UART output)
4 RXD Receive data (UART input)
5 EN Enable pin (active HIGH to enable the module)
6 STATE Connection status indicator (HIGH when connected)

Usage Instructions

The XY-BT11 module is straightforward to use and can be integrated into a variety of circuits. Below are the steps and best practices for using the module:

Connecting the XY-BT11 to a Microcontroller:

  1. Power Supply: Connect the VCC pin to a 3.6V-6V power source and the GND pin to ground.
  2. UART Communication:
    • Connect the TXD pin of the module to the RX pin of the microcontroller.
    • Connect the RXD pin of the module to the TX pin of the microcontroller.
  3. Enable the Module: Ensure the EN pin is set to HIGH to activate the module.
  4. Status Monitoring: Optionally, connect the STATE pin to an input pin on the microcontroller to monitor the connection status.

Important Considerations:

  • Voltage Levels: Ensure the microcontroller's UART pins are compatible with the module's voltage levels. Use a voltage divider or level shifter if necessary.
  • Baud Rate: The default baud rate is 9600 bps. Ensure the microcontroller's UART settings match this value.
  • Antenna Placement: For optimal performance, avoid placing the module near metal objects or other sources of interference.

Example: Using XY-BT11 with Arduino UNO

Below is an example of how to use the XY-BT11 module with an Arduino UNO for basic serial communication:

// Example: Communicating with XY-BT11 Bluetooth Module
// Ensure the TXD pin of the module is connected to Arduino pin 10 (RX)
// and the RXD pin of the module is connected to Arduino pin 11 (TX).

#include <SoftwareSerial.h>

// Define software serial pins for communication with XY-BT11
SoftwareSerial BTSerial(10, 11); // RX, TX

void setup() {
  // Initialize hardware serial for debugging
  Serial.begin(9600);
  // Initialize software serial for Bluetooth communication
  BTSerial.begin(9600);

  Serial.println("XY-BT11 Bluetooth Module Test");
  Serial.println("Send data via Serial Monitor to communicate with the module.");
}

void loop() {
  // Check if data is received from the Bluetooth module
  if (BTSerial.available()) {
    char data = BTSerial.read();
    Serial.print("Received from Bluetooth: ");
    Serial.println(data);
  }

  // Check if data is sent from the Serial Monitor
  if (Serial.available()) {
    char data = Serial.read();
    BTSerial.print(data); // Send data to the Bluetooth module
    Serial.print("Sent to Bluetooth: ");
    Serial.println(data);
  }
}

Notes:

  • Use the Arduino Serial Monitor to send and receive data.
  • Ensure the baud rate in the Serial Monitor matches the module's baud rate (9600 bps by default).

Troubleshooting and FAQs

Common Issues:

  1. Module Not Responding:

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the VCC pin is receiving 3.6V-6V.
  2. No Data Transmission:

    • Cause: Baud rate mismatch between the module and the microcontroller.
    • Solution: Verify and configure the correct baud rate in the microcontroller's code.
  3. Unstable Connection:

    • Cause: Interference or poor antenna placement.
    • Solution: Relocate the module away from metal objects or sources of interference.
  4. STATE Pin Always LOW:

    • Cause: No active Bluetooth connection.
    • Solution: Ensure the module is paired with a Bluetooth device.

FAQs:

Q1: Can I change the baud rate of the XY-BT11 module?
A1: Yes, the baud rate can be configured using AT commands. Refer to the module's AT command set documentation for details.

Q2: What is the maximum range of the XY-BT11 module?
A2: The module has a maximum range of up to 10 meters in a clear line of sight.

Q3: Can the XY-BT11 module be used with 5V logic microcontrollers?
A3: Yes, but it is recommended to use a voltage divider or level shifter for the RXD pin to avoid damage.

Q4: How do I reset the module to factory settings?
A4: Use the appropriate AT command (AT+RESET) to reset the module to its default settings.

By following this documentation, you can effectively integrate and troubleshoot the XY-BT11 Bluetooth module in your projects.