I have looked on google for an answer to my problems to no avail. The you tube video I am following is here: https://www.youtube.com/watch?v=f1v0IMegCvU So basically on my android, I can't see the HC-05 device show up and the module itself is flashing red unlike the video's flashing blue light. I have connected the circuit exactly like he has in the video with the 2 10K resisters. I am using the same app. What is wrong? Here is my code as I copied from the video.
void setup()
{
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println("Connection Successful!");
}
void loop()
{
if(Serial.available()>0){
int data=Serial.read();
switch(data){
case 'a': LEDON();break;
case 'b': LEDOFF();break;
default : break;
}
}
delay(50);
}
void LEDON(){
Serial.println("Led On!");
digitalWrite(13,HIGH);
}
void LEDOFF(){
Serial.println("Led Off!");
digitalWrite(13,LOW);
}
I also get the error avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 when connected through usb. I do not get any errors when just flashing the arduino without any wires connected to the arduino. I know that the port is correct. Any ideas would be helpful. Thanks.