# KS0542 Keyestudio LY51M02 Bluetooth 5.0 Module ![](media/image-20251229173604109.png) ## 1. Description The LY51M02 Bluetooth module is a data transmission module based on Bluetooth Specification V5.1 BLE Bluetooth protocol. The wireless working frequency band is 2.4GHz ISM, and the modulation method is GFSK (Gaussian Frequency Shift Keying). The module transmit power is adjustable, -21dbm ~ +5dbm, a total of 13 power levels. It adopts a TI's CC2640R2L chip and supports Bluetooth 5.1BLE, applied to industrial remote control, gamepad, data acquisition equipment, intelligent lighting equipment, Bluetooth remote control toys, wireless LED displays, Bluetooth printer, smart home, industrial control and other fields. ## 2. Specification - Module model: LY51M02 - Working frequency band: 2.4G - Chip model: TICC2640R2L - Communication interface: UART (3.3V TTL) - Working voltage: 3.3V~5V - Working current: 4mA - Transmit power: 5dBm (maximum) - Communication rate: 5-10K/s - Antenna connection method: PCB on-board antenna - Working temperature: 0℃~+85℃ - Module size: 80 * 17 * 7mm ## 3. Connection Diagram ![](media/image-20251229173731786.png) ## 4. Test Code ```c String comdata = ""; int LED_Pin = 13; void setup() { //Serial.begin(115200); Serial.begin(9600); pinMode(LED_Pin, OUTPUT); } void loop() { while (Serial.available() > 0) { comdata += char(Serial.read()); delay(10); } if (comdata.length() > 0) { Serial.println(comdata); if (comdata == "R" | comdata == "r") { Serial.println("Keyestudio"); digitalWrite(LED_BUILTIN, HIGH); } else digitalWrite(LED_BUILTIN, LOW); comdata = ""; } } ``` ## 5. Test Result Download the APP: [APP](https://xiazai.keyesrobot.cn/APP/%E8%93%9D%E7%89%99%E8%B0%83%E8%AF%95%E5%99%A8%20V1.9.apk) Note: Before uploading the code, the Bluetooth module cannot be inserted into the UNO board, otherwise the code cannot be uploaded to the UNO board. **Android System** Upload the test code,open![](media/image-20251229174219595.png),click to search devices and click ![](media/image-20251229174236080.png)to connect a device you want, then the LED indicator of the module will stop blinking. Input R in the HC-COM, click Send. Then the indicator will light up and monitor will show Keyestudio; when sending other characters, the LED will go off and the monitor will show corresponding characters. ![](media/image-20251229174306004.png) **Mac System** Upload the test code, open the APP store and download the BT debug assistant![](media/image-20251229174329857.png). Then click ![](media/image-20251229174354909.png)to search devices and click thumb to connect a device you want, then the LED indicator of the module will stop blinking. Input R in the APP and click Write. Then the indicator will light up and monitor will show Keyestudio; when sending other characters, the LED will go off and the monitor will show corresponding characters. ![](media/image-20251229174459807.png)