JDY-18 Bluetooth 4.2 module
zoom_out_map
chevron_left chevron_right

Product images are for informational purposes only and may vary slightly depending on the batch and supplier. Product specifications and prices may be subject to change without notice. We do our best to provide accurate and complete product specifications, but they may not be completely accurate. If you encounter any such situation, please let us know.

The product is intended for specialists and requires qualified and authorized personnel. The product does not include assembly/use instructions . Putting the product into operation by unqualified persons leads to the loss of the warranty according to the Terms and Conditions on the site.

The specified technical parameters (current, power, etc.) represent maximum allowable values under ideal operating conditions. For safe use and optimal lifespan, it is recommended to operate the product continuously at no more than 50% of the specified maximum values.

Bluetooth 4.2 Module JDY-18

High-speed Bluetooth module for fast integration of wireless connectivity into electronic projects, ideal for stable communication between microcontrollers and mobile devices. Supports Bluetooth 4.2 for low power consumption and extended compatibility, operates at 1.8-3V supply voltage, has compact dimensions and fast response to data transmission.

24.20 RON Tax included

20.00 RON Tax excluded

No reviews yet
1-2 zile
check In Stoc

Shipping by Monday 2 November

Buying this product earns you 1.21 RON in loyalty points.

Warranty: 24 months for individuals
INTERNATIONAL DELIVERY
International fast shipping within EU. Free Shipping for orders above 100 EUR in most EU countries.
FAST DISPATCH 24H
We ship from our stock within 24H
LOYALTY POINTS
You earn points with every order, worth 5%.

High-speed Bluetooth module with Bluetooth 4.2.

Model: JDY-18

Power supply voltage: 1.8 - 3V

33278

Produs destinat utilizarii in proiecte electronice, automatizari, prototipare, educatie si cercetare.

Produsul trebuie utilizat numai conform specificatiilor tehnice mentionate in descriere si/sau in documentatia produsului.

Avertismente generale de siguranta:

Nu utilizati produsul la tensiuni, curenti sau temperaturi peste valorile specificate.

Montajul si conectarea trebuie realizate de persoane cu cunostinte tehnice minime in domeniul electric/electronic.

Evitati scurtcircuitele, inversarea polaritatii si conectarea gresita a alimentarii.

Nu lasati produsul alimentat nesupravegheat in timpul testelor.

Produsul nu este jucarie si nu este destinat copiilor.

Pentru modulele electronice, se recomanda utilizarea in carcase, panouri sau montaje protejate, dupa caz.

Identificare produs:

Denumirea produsului, codul/SKU-ul si caracteristicile tehnice sunt mentionate in pagina produsului si/sau pe eticheta ambalajului.

Producator / Importator / Distribuitor:

Sigmanortec S.R.L.

Calea Bucuresti nr. 9, Targu Jiu, Gorj, Romania

E-mail: [email protected]

Website: www.sigmanortec.ro

Persoana responsabila in UE:

Sigmanortec S.R.L.

Calea Bucuresti nr. 9, Targu Jiu, Gorj, Romania

E-mail: [email protected]

Documentatie si siguranta:

Pentru informatii suplimentare, fise tehnice, declaratii de conformitate sau instructiuni, ne puteti contacta la [email protected].

/*
  JDY-18 BLE module test on Arduino Uno

  Board: Arduino Uno (Tools > Board > Arduino AVR Boards > Arduino Uno)
  Board package: Arduino AVR Boards (comes with the Arduino IDE)
  Libraries: SoftwareSerial (included in the Arduino IDE), nothing to install

  Wiring:
    JDY-18 VCC -> Arduino 3.3V (never 5V)
    JDY-18 GND -> Arduino GND
    JDY-18 TXD -> Arduino D2 (SoftwareSerial RX)
    JDY-18 RXD -> R2 2 kOhm to GND, and R1 1 kOhm to Arduino D3 (SoftwareSerial TX)
    The R1 / R2 divider lowers the 5 V of D3 to about 3.3 V for the module.

  Serial Monitor: 9600 baud, line ending "Both NL & CR".
*/

#include <SoftwareSerial.h>

const byte BT_RX_PIN = 2;  // Arduino receives here (connected to module TXD)
const byte BT_TX_PIN = 3;  // Arduino transmits here (to module RXD via divider)

SoftwareSerial bt(BT_RX_PIN, BT_TX_PIN);  // Software serial port for the module

// Sends one AT command and prints the answer on the Serial Monitor
void sendCommand(const char *command) {
  Serial.print("> ");
  Serial.println(command);

  // Throw away any old data in the receive buffer
  while (bt.available()) {
    bt.read();
  }

  // The module needs every AT command to end with \r\n
  bt.print(command);
  bt.print("\r\n");

  // Read the answer until the module is silent for 500 ms
  unsigned long lastByteTime = millis();
  char lastChar = '\n';
  while (millis() - lastByteTime < 500) {
    while (bt.available()) {
      lastChar = (char)bt.read();
      Serial.write(lastChar);
      lastByteTime = millis();
    }
  }

  // Make sure the next output starts on a new line
  if (lastChar != '\n') {
    Serial.println();
  }
}

void setup() {
  Serial.begin(9600);  // Serial Monitor speed
  bt.begin(9600);      // Factory baud rate of the JDY-18

  delay(500);          // Give the module time to start
  Serial.println("JDY-18 test started");

  // Basic queries, accepted while no phone is connected
  sendCommand("AT+VERSION");  // Firmware version
  sendCommand("AT+NAME");     // Advertised name
  sendCommand("AT+BAUD");     // Baud rate code
  sendCommand("AT+LADDR");    // Bluetooth MAC address

  Serial.println("Bridge ready. Type AT commands or connect from a phone.");
}

void loop() {
  // Module -> Serial Monitor (AT answers or data sent by the phone)
  if (bt.available()) {
    Serial.write(bt.read());
  }

  // Serial Monitor -> module (AT commands or data for the phone)
  if (Serial.available()) {
    bt.write(Serial.read());
  }
}