1

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 ?

5
  • 1
    There is no "female" with bluetooth, just master and slave. Maybe you need to first configure the HC-05 to work as a slave device. Did you try that? – chrisl Jan 27 at 12:18
  • @chrisl Perhaps he has the same experience like me. Master = female, slave = male (me). Sorry I couldn't resist. :-) I'm also curirous about the button that blinks. And now seriously: (Karan wagh) The HC05 has to be configured. Here is a link that might help: create.arduino.cc/projecthub/electropeak/… – Peter Paul Kiefer Jan 27 at 14:22
  • I tried that but got no success @chrisl – Karan wagh Jan 30 at 10:33
  • Then please also explain what you tried and how it didn't work. We need more information, or we are not able to help – chrisl Jan 30 at 13:15
  • we followed this instructables.com/Connecting-HC-05-Bluetooth-Module-to-Arduino @chrisl – Karan wagh Jan 31 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.