KS0542 Keyestudio LY51M02 Bluetooth 5.0 Module

From Keyestudio Wiki
Revision as of 10:30, 7 April 2022 by Keyestudio (talk | contribs) (→‎Test Result)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


thumb

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.

Specification

  1. Module model: LY51M02
  2. Working frequency band: 2.4G
  3. Chip model: TICC2640R2L
  4. Communication interface: UART (3.3V TTL)
  5. Working voltage: 3.3V~5V
  6. Working current: 4mA
  7. Transmit power: 5dBm (maximum)
  8. Communication rate: 5-10K/s
  9. Antenna connection method: PCB on-board antenna
  10. Working temperature: 0℃~+85℃
  11. Module size: 80*17*7mm

Connection Diagram


thumb

Test Code(Arduino-1.8.12)

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 = "";
  }
}

Test Result

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,openthumb,click to search devices and click thumbto 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


thumb

Mac System
Upload the test code, open the APP store and download the BT debug assistant thumb. Then click thumbto search devices and click thumbto connect a device you want, then the LED indicator of the module will stop blinking. Input R in the APPle 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.


thumb