# Bluetooth proximity switch module, with relay, XY-MB02YF, 5V

- Page: https://sigmanortec.ro/en/bluetooth-proximity-switch-module-with-relay-xy-mb02yf-5v
- Price: 74.51 RON
- Availability: In stock; 1-2 zile
- Reference: 88253 · EAN: 5944778073154
- Category: Mechatronics and IoT > Sensors and Modules > Bluetooth Modules
- Specifications: Model: XY-MB02YF; Communication interface: Bluetooth; Supply voltage: 5 V; Output type: Releu
- Updated: 2026-09-14
- Shop: [Sigmanortec.ro](https://sigmanortec.ro/en/llms.txt)
- Prices: RON, VAT included; prices and stock as of 2026-10-22 06:34 (Europe/Bucharest)

## Description

Smart proximity switch with Bluetooth BLE, automatically activates a bistable relay when the phone connects and turns off the load after leaving range or disabling Bluetooth. Works without an app, compatible with iOS and Android, has very low power consumption thanks to the latching relay, supports control of up to 10A, and allows advanced settings via AT commands over UART.
The XY-MB02YF module is an intelligent proximity switch that automatically detects the user’s presence via a Bluetooth connection and operates a bistable (latching) relay to control a load circuit. Unlike classic relays, the bistable type consumes current only during switching, not while idle, which ensures lower power consumption and a longer lifespan for the internal components.
Compatible with any iOS or Android phone with Bluetooth 4.2 BLE enabled, the module does not require a dedicated app, and the connection to the device is made directly from the phone’s Bluetooth settings.
Operation is simple and fully automatic: when the phone connects to the module (device with prefix "NBH"), the relay activates and controls the connected load. When Bluetooth is turned off or the phone leaves the detection range (3–5 m), the relay returns to the disconnected state after the configured delay interval expires.
The module is ideal for smart lighting systems, access door control, home automation, or any application that requires activating a circuit based on the user’s physical presence.
Advanced configuration is performed through AT commands sent via the serial port at 9600 baud, allowing customization of the BLE device name, pairing password, signal threshold, switching mode, and delay duration. The module is powered at 5 VDC, and the relay terminals support loads of up to 10A at 250 VAC or 30 VDC.
Specifications:
Operating voltage: 5 VDC
Output circuit: 1 bistable (latching) relay channel
Relay switching capacity: 10A / 250 VAC, 10A / 30 VDC
Trigger type: Automatic Bluetooth detection (no app)
Bluetooth technology: 4.2 BLE (iOS and Android compatible)
Detection distance: 3–5 m
BLE device prefix: NBH*
Initial pairing password: 123456
Serial port speed: 9600 baud
Board dimensions: 20 x 62 mm
Layout:
Usage:
Power the module with 5 VDC through the corresponding pins.
Connect the relay terminals in series with the electrical load (up to 10A / 250 VAC or 10A / 30 VDC). If the load is 220 VAC, make the connections with the module disconnected from power.
Enable Bluetooth on your phone and open the list of available devices.
Connect to the device whose name starts with "NBH". The initial pairing password is 123456.
After connection, the relay activates and the load is powered. The serial port sends a connection confirmation.
Keep the phone within 3–5 m with Bluetooth enabled to keep the relay activated.
When Bluetooth is turned off or the phone leaves the range, the relay deactivates after the configured delay interval.
For advanced configuration, connect a USB-UART adapter to the module’s TX/RX pins and send AT commands at 9600 baud through a serial terminal (e.g., PuTTY, Arduino Serial Monitor).
AT Commands:
Command
Function
AT+NAME=String
Set device name
AT+NAME?
Query device name
AT+MAC=MAC
Set Bluetooth module MAC address
AT+MAC?
Query MAC address
AT+ADV=NUM
Set advertising state
AT+ADV?
Query advertising state
AT+AINTVL=NUM
Change advertising interval
AT+AINTVL?
Query advertising interval
AT+UART=NUM
Set UART speed
AT+UART?
Query UART speed
AT+TXPOWER=NUM
Change transmission power
AT+TXPOWER?
Query transmission power
AT+DEV?
Query currently connected device
AT+DISCONN=NUM
Disconnect Bluetooth
AT+VER?
Read firmware version
AT+RESET=1
Restore factory settings
AT+REBOOT=1
Restart module software
AT+UUIDS=UUID
Set primary BLE channel (Service UUID)
AT+UUIDS?
Query primary BLE channel
AT+UUIDN=UUID
Set BLE Notify channel
AT+UUIDN?
Query BLE Notify channel
AT+UUIDW=UUID
Set BLE Write channel
AT+UUIDW?
Query BLE Write channel
AT+AMDATA=HEX
Set custom advertising data
AT+AMDATA?
Query custom advertising data
Dimensions diagram:
