I am trying to connect the Bluetooth transmitter to a female receiver via an Arduino Uno. The button blinks, but the Bluetooth is not visible in any device. i want to connect PS4 controller using HC05 I am sharing my code below:
#include<SoftwareSerial.h>
/* Create object named bt of the class SoftwareSerial */
SoftwareSerial bt(2,3); /* (Rx,Tx) */
void setup() {
bt.begin(9600); /* Define baud rate for software serial communication */
Serial.begin(9600); /* Define baud rate for serial communication */
}
void loop() {
if (bt.available()) { /* If data is available on serial port */
Serial.write(bt.read()); /* Print character received on to the serial monitor */
}
}
Can anyone help me out with this ?