Stufin
Home Quick Cart Profile

DX-BT18 Bluetooth Dual Mode Module For SPP2.0 + BLE4.0 Transparent Serial Port

Buy Now

SPP Mode

In this mode, the module emulates a serial cable replacement, allowing devices to communicate over Bluetooth using the SPP protocol.

BLE Mode

In this mode, the module operates as a BLE peripheral, enabling communication with BLE-enabled devices.

The DX-BT18 module is designed to provide wireless connectivity for a wide range of applications, including

Industrial control systems

Medical devices

Consumer electronics

IoT devices

Key Features

  • Dual-Mode Operation: The module supports both SPP and BLE protocols, allowing devices to communicate over Bluetooth in different modes.
  • Transparent Serial Port: The module provides a transparent serial port connection, allowing devices to communicate wirelessly over Bluetooth without requiring specific drivers or software.
  • Low Power Consumption: The module operates at a low power consumption of 350mA (typical) in SPP mode and 200mA (typical) in BLE mode.
  • Small Form Factor: The module is compact in size, measuring 18.5 x 12.5mm, making it suitable for use in space-constrained applications.
  • Easy Integration: The module is easy to integrate into devices, requiring minimal external components and no additional software or drivers.
  • Security: The module supports encryption and authentication mechanisms to ensure secure data transmission over Bluetooth.
  • Range: The module has a wireless range of up to 10 meters (33 feet) in SPP mode and up to 100 meters (330 feet) in BLE mode.
  • Operating Frequency: The module operates at a frequency of 2.4GHz, ensuring compliance with global Bluetooth standards.
  • Compatibility: The module is compatible with a wide range of devices, including smartphones, tablets, PCs, and other Bluetooth-enabled devices.

Technical Specifications

Operating Voltage

3.3V to 5V

Data Transmission Rate

Up to 1Mbps in SPP mode, up to 2Mbps in BLE mode

Serial Interface

UART, up to 921600bps

Bluetooth Version

2.0, 4.0

SPP Profile

SPP 1.0, SPP 1.1

BLE Profile

GATT, GAP

Certifications

FCC, CE, RoHS, REACH

Applications

The DX-BT18 Bluetooth dual-mode module is suitable for various applications, including

Wireless industrial control systems

Medical device connectivity

IoT device connectivity

Wireless sensors and wearable devices

Smart home automation systems

Conclusion

The DX-BT18 Bluetooth dual-mode module is a versatile and reliable solution for wireless communication between devices. Its dual-mode operation, transparent serial port connection, and low power consumption make it an ideal choice for a wide range of applications.

Pin Configuration

  • DX-BT18 Bluetooth Dual Mode Module Documentation
  • Pinout Description
  • The DX-BT18 Bluetooth Dual Mode Module has a total of 16 pins, which can be configured for various functions. Here's a detailed description of each pin:
  • Pin 1: VCC
  • Function: Power Supply
  • Description: This pin is used to supply power to the module. Typical operating voltage is 3.3V to 4.2V.
  • Pin 2: GND
  • Function: Ground
  • Description: This pin is the ground connection for the module.
  • Pin 3: RXD
  • Function: Receive Data
  • Description: This pin is used to receive serial data from an external device.
  • Pin 4: TXD
  • Function: Transmit Data
  • Description: This pin is used to transmit serial data to an external device.
  • Pin 5: RTS
  • Function: Request to Send
  • Description: This pin is used to control the flow of data transmission.
  • Pin 6: CTS
  • Function: Clear to Send
  • Description: This pin is used to indicate when the module is ready to receive data.
  • Pin 7: NC
  • Function: Not Connected
  • Description: This pin is not connected and should be left unconnected.
  • Pin 8: STATE
  • Function: Status Indicator
  • Description: This pin indicates the module's status, such as pairing or connected.
  • Pin 9: EN
  • Function: Enable
  • Description: This pin is used to enable or disable the module.
  • Pin 10: KEY
  • Function: Key Press
  • Description: This pin is used to simulate a key press for pairing or other functions.
  • Pin 11: PIO0
  • Function: Programmable Input/Output 0
  • Description: This pin can be configured as an input or output for custom applications.
  • Pin 12: PIO1
  • Function: Programmable Input/Output 1
  • Description: This pin can be configured as an input or output for custom applications.
  • Pin 13: PIO2
  • Function: Programmable Input/Output 2
  • Description: This pin can be configured as an input or output for custom applications.
  • Pin 14: PIO3
  • Function: Programmable Input/Output 3
  • Description: This pin can be configured as an input or output for custom applications.
  • Pin 15: VREG
  • Function: Voltage Regulator Output
  • Description: This pin provides a regulated 3.3V output for external devices.
  • Pin 16: GND
  • Function: Ground
  • Description: This pin is the ground connection for the module.
  • Connection Structure
  • Here's a suggested connection structure for the DX-BT18 Bluetooth Dual Mode Module:
  • Connect VCC (Pin 1) to a power supply (3.3V to 4.2V) through a 1uF capacitor.
  • Connect GND (Pin 2) to the ground of the power supply and the external device.
  • Connect RXD (Pin 3) to the TX pin of the external device (e.g., microcontroller).
  • Connect TXD (Pin 4) to the RX pin of the external device (e.g., microcontroller).
  • Connect RTS (Pin 5) to the RTS pin of the external device (if necessary).
  • Connect CTS (Pin 6) to the CTS pin of the external device (if necessary).
  • Connect STATE (Pin 8) to a status LED or a microcontroller input (if necessary).
  • Connect EN (Pin 9) to a digital output of the microcontroller (if necessary).
  • Connect KEY (Pin 10) to a push-button or a digital output of the microcontroller (if necessary).
  • Configure PIO0-PIO3 (Pins 11-14) as required for custom applications.
  • Connect VREG (Pin 15) to the power input of an external device (if necessary).
  • Note: The above connection structure is a general guideline and may vary depending on the specific application and requirements. Ensure to follow proper electrical connections and debugging techniques to avoid damage to the module or external devices.

Code Examples

DX-BT18 Bluetooth Dual Mode Module Documentation
Overview
The DX-BT18 is a Bluetooth dual-mode module that supports both SPP 2.0 and BLE 4.0 protocols, enabling transparent serial port communication. This module is suitable for various IoT applications, including robotics, industrial automation, and wearable devices.
Features
Dual-mode support: SPP 2.0 and BLE 4.0
 Transparent serial port communication
 Operating frequency: 2.4 GHz
 Transmission power: up to 4 dBm
 Receiving sensitivity: up to -90 dBm
 Data transmission rate: up to 2 Mbps
 Supported protocols: UART, SPP, and GATT
 Power supply: 3.3 V to 5 V
 Dimensions: 18 mm x 13 mm x 2.5 mm
Pinout
| Pin | Function |
| --- | --- |
| VCC | Power supply (3.3 V to 5 V) |
| GND | Ground |
| TXD | UART transmission data |
| RXD | UART reception data |
| RTS | UART request to send |
| CTS | UART clear to send |
| State | Module state indicator (HIGH: connected, LOW: disconnected) |
| EN | Enable pin (active HIGH) |
Code Examples
### Example 1: Arduino Serial Communication using SPP 2.0
This example demonstrates how to use the DX-BT18 module with an Arduino board to establish a serial communication link using SPP 2.0.
```c
#include <SoftwareSerial.h>
// Define the serial pins for the DX-BT18 module
#define RX_PIN 2
#define TX_PIN 3
// Create a software serial object
SoftwareSerial btSerial(RX_PIN, TX_PIN);
void setup() {
  // Initialize the serial communication
  Serial.begin(9600);
  btSerial.begin(9600);
// Set the module to SPP 2.0 mode
  btSerial.println("AT+SPP=2");
  delay(100);
}
void loop() {
  // Send a string to the connected device
  btSerial.println("Hello, world!");
// Receive data from the connected device
  if (btSerial.available() > 0) {
    String receivedData = btSerial.readStringUntil('
');
    Serial.print("Received data: ");
    Serial.println(receivedData);
  }
delay(1000);
}
```
### Example 2: Raspberry Pi Python Script for BLE 4.0 Peripherals
This example demonstrates how to use the DX-BT18 module with a Raspberry Pi to connect to a BLE 4.0 peripheral device using Python.
```python
import bluetooth
# Set the module to BLE 4.0 mode
bt_addr = "00:11:22:33:44:55"  # Replace with the BLE peripheral address
bt_port = 1
# Create a Bluetooth socket
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
# Connect to the BLE peripheral
sock.connect((bt_addr, bt_port))
# Send a string to the BLE peripheral
sock.send("Hello, BLE!")
# Receive data from the BLE peripheral
data = sock.recv(1024)
print("Received data:", data.decode())
# Close the Bluetooth socket
sock.close()
```
### Example 3: MicroPython Script for UART Communication
This example demonstrates how to use the DX-BT18 module with a MicroPython board (e.g., ESP32 or ESP8266) to establish a UART communication link.
```python
import machine
import uart
# Define the UART pins for the DX-BT18 module
uart_tx = machine.Pin(1)
uart_rx = machine.Pin(2)
# Create a UART object
uart_obj = uart.UART(0, baudrate=9600, tx=uart_tx, rx=uart_rx)
# Send a string to the connected device
uart_obj.write("Hello, UART!")
# Receive data from the connected device
data = uart_obj.readline()
print("Received data:", data.decode())
# Close the UART object
uart_obj.deinit()
```
Note: The above examples are for demonstration purposes only and may require modifications to suit your specific use case. Make sure to check the module's datasheet and documentation for detailed instructions on its operation and configuration.