I am currently working on a Mars Rover project, and I am facing issues with the Bluetooth module (HC-05) while trying to establish a wireless connection with my phone. The problem is that the HC-05 module's LED is not blinking, and my phone is unable to detect it.
Despite various attempts and troubleshooting steps, I have been unable to resolve the issue. I've watched multiple YouTube videos, and a common suggestion is to connect the Arduino USB and press the reset button on the HC-05 module simultaneously for the LED to blink. However, this hasn't worked for me.
link to tutorial I'm following for making the rover: https://youtu.be/2Wq0nfoDsFs?si=7Y-rn4S5kcW7r9eq
code :
`int val;
int nb;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(9,OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,INPUT);
}
// put your main code here, to run repeatedly:
void loop()
{
if(Serial.available()>0)
{
int data= Serial.read();
Stop();
if(data=='R')
{
digitalWrite(9,HIGH);
digitalWrite(8,LOW);
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
}
else if(data=='L')
{
digitalWrite(9,LOW);
digitalWrite(8,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
}else if(data=='F'){
digitalWrite(9,LOW);
digitalWrite(8,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
}else if(data=='B'){
digitalWrite(9,HIGH);
digitalWrite(8,LOW);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
}
}
}
void Stop()
{
digitalWrite(9,LOW);
digitalWrite(8,LOW);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
}
`
Please help i have tried everything and nothing works