Hi,
I'm trying to get my HC-05 to work. So far this is where I'm at:
I powered the module using 3.3V from the arduino board. RX pin went to TX pin on board, TX pin went to RX on board. GND to GND. So, when I powered it all on via the USB, the HC-05 blinked rapidly (showing that it's looking to pair). I found it on my phone and added to my pairing list. I downloaded Bluetooth Terminal and paired the HC-05 via the Bluetooth Terminal. It says connected at the top. the module changes its blink mode to 2 rapid blinks every 2-3 seconds, instead of the solid led and it won't respond. That is, I can't connect it to my phone or make the Serial Monitor do something simple like turn an LED on, which is what I'm using to troubleshoot.
What I've tried:
I've tried changing pins 5 and 6 to RX and TX as to not use pins 0 and 1, though, I've already tried using an external power source to power the board as to not have the USB cable plugged in while using pins 0 and 1. though I've always uploaded the code without the HC-05 being connected and then connecting it after the fact.
I've tried going into AT mode and that all works perfectly fine.
I've tried changing the baud rate from 9600 to 38400 and back and forth multiple times.
Any help is appreciated, thank you!
captaincawk:
I powered the module using 3.3V from the arduino board.
Are you using HC-05 on a breakout board? If so read the back of it twice.
5v.
Nick_Pyner:
Are you using HC-05 on a breakout board? If so read the back of it twice.
5v.
I'm usually okay with reading things once. I've tried 5V as well, didn't make a difference. And I've been hearing everywhere to run it off 3.3v or it could damage it. I dunno. Either way it's getting power and 5V didn't make a difference.
I downloaded Bluetooth Terminal and paired the HC-05 via the Bluetooth Terminal. It says connected at the top. the module changes its blink mode to 2 rapid blinks every 2-3 seconds
This would indicate that the HC05 is connected to the phone app.
Why do you say
That is, I can't connect it to my phone
Please post your code and your wiring. 5v power to the module is important.
Using the hardware serial on pin 0 and 1 to communicate with the HC05 after the code is loaded is not a bad idea. You can develop code using the Serial monitor for input, and then later switch to the phone and bluetooth when the code is working as intended.
Ah thank you. I switched it back to pin 0 and 1 and for some reason it worked now. My guess is my wiring was wrong originally. I thought the module had to be solid red LED for it to show it's connected but I guess different modules show connection in different ways. Anyways your response made me double check everything this time and it worked. I'm going 5v to the module, using pins 0 and 1 for RX/TX and everything is working. Thank you.