arduino
tutorial

interfacing low energy bluetooth module JDY-23 with arduino uno.

ABOUT

APP

SUPPLIES

ABOUT

The JDY-23 is a Bluetooth module that can be used with microcontrollers to allow wireless communication using the Serial Port Protocol (SSP). It operates in the 2.4 GHz frequency band and uses Bluetooth Low Energy (BLE) technology to transmit and receive data. It can be used for a wide range of applications, including wireless communication between devices, data transfer, and control of devices over a wireless connection.

To use the JDY-23 module with a microcontroller, you will need to connect it to the microcontroller’s serial port and write code to communicate with the module using the SSP protocol. The module has a number of pins that can be used to interface with the microcontroller, including RXD, TXD, and GND for serial communication, as well as VCC for power and EN for enabling and disabling the module.

There are a variety of ways you can use the JDY-23 module, depending on your specific needs. Some common applications include wirelessly transmitting data from sensors or other devices to a central controller, or controlling devices remotely using a smartphone or other Bluetooth-enabled device.

Sketch

Make sure the Rx and Tx pin removed from Arduino Uno while uploading.
Otherwise you can not upload the code.

//sketch created by gdo.com
char inputByte;
void setup() {
Serial.begin(9600);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
}
void loop() {
while(Serial.available()>0){
inputByte= Serial.read();
Serial.println(inputByte);
if (inputByte==‘1’){
for (int i = 0; i < 50; i++) {
digitalWrite(8,HIGH);
delay(500);// waits for a half second
digitalWrite(8,LOW);
delay(500);// waits for a half second
digitalWrite(9,HIGH);
delay(500);// waits for a half second
digitalWrite(9,LOW);
delay(500);// waits for a half second
digitalWrite(10,HIGH);
delay(500);// waits for a half second
digitalWrite(10,LOW);
delay(500);// waits for a half second
digitalWrite(11,HIGH);
delay(500);// waits for a half second
digitalWrite(11,LOW);
delay(500);// waits for a half second
}
}
else if (inputByte==‘2’){
for (int i = 0; i < 5; i++) {
digitalWrite(8,HIGH);
delay(500);// waits for a half second
digitalWrite(8,LOW);
delay(500);// waits for a half second
digitalWrite(10,HIGH);
delay(500);// waits for a half second
digitalWrite(10,LOW);
delay(500);// waits for a half second
digitalWrite(9,HIGH);
delay(500);// waits for a half second
digitalWrite(9,LOW);
delay(500);// waits for a half second
digitalWrite(11,HIGH);
delay(500);// waits for a half second
digitalWrite(11,LOW);
}
}
else if (inputByte==‘3’){
for (int i = 0; i < 5; i++) {
digitalWrite(11,HIGH);
delay(500);// waits for a half second
digitalWrite(11,LOW);
delay(500);// waits for a half second
digitalWrite(10,HIGH);
delay(500);// waits for a half second
digitalWrite(10,LOW);
delay(500);// waits for a half second
digitalWrite(9,HIGH);
delay(500);// waits for a half second
digitalWrite(9,LOW);
delay(500);// waits for a half second
digitalWrite(8,HIGH);
delay(500);// waits for a half second
digitalWrite(8,LOW);
}
}
else if (inputByte==‘4’){
for (int i = 0; i < 5; i++) {
digitalWrite(11,HIGH);
delay(500);// waits for a half second
digitalWrite(11,LOW);
delay(500);// waits for a half second
digitalWrite(9,HIGH);
delay(500);// waits for a half second
digitalWrite(9,LOW);
delay(500);// waits for a half second
digitalWrite(8,HIGH);
delay(500);// waits for a half second
digitalWrite(8,LOW);
delay(500);// waits for a half second
digitalWrite(10,HIGH);
delay(500);// waits for a half second
digitalWrite(10,LOW);
delay(500);// waits for a half second
}
}
}
}

APP

Now we need install the App.
After installation click the buttons
and view the led streams. 

supplies

1. Arduino.
2. Four leds.
3. JDY-23 Bluetooth module.
4. Cables.
5. Breadboard.

video

ABOUT

APP

SUPPLIES

arduino
tutorial

interfacing low energy bluetooth module with arduino uno

Subscribe

Follow