Im am using an arduino nano and a hc05 to play with bloutooth. I am connecting the hc05 to the rx and tx pin of the arduino.
It was working well but suddenly everytine y connect it to the arduino the rx led from the arduino turns on regardless the code i upload.
If i use the arduino without the hc05 connected it works well.
I am able to pair a cellphone with the hc05
Update: i connected the hc05 using software serial and the tx led also is always on like the module is constantly transmiting something. I tried to print that on theserail but nothing happens
Im am using an arduino nano and a hc05 to play with bloutooth. I am connecting the hc05 to the rx and tx pin of the arduino.
It was working well but suddenly everytine y connect it to the arduino the rx led from the arduino turns on regardless the code i upload.
If i use the arduino without the hc05 connected it works well.
I am able to pair a cellphone with the hc05
Update: i connected the hc05 using software serial and the tx led also is always on like the module is constantly transmiting something. I tried to print that on theserail but nothing happens
Nick_Pyner:
It sounds complete nonsense, but may be true. It certainly isn’t relevant. What is relevant is what is receiving it. Anything that is being transmitted, can be seen on the serial monitor. That sounds a good idea. Your problem may have been inadequate power.
Yes the thing is that having done all that i can not resolve the problem. I am about to buy a new hc05.
Update: i connected the hc05 using software serial, using pins 10 and 11, and the tx led also is always on like the module is constantly transmiting something. I tried to print that on theserail but nothing happens
Any help?
Is your Arduino controller 3V or 5V? Of you are running at 5V you need to have a voltage divider for signals that go from the Arduino to the HC-05 (TX Arduino -> RX HC-05) or you will damage it.
marco_c:
Is your Arduino controller 3V or 5V? Of you are running at 5V you need to have a voltage divider for signals that go from the Arduino to the HC-05 (TX Arduino -> RX HC-05) or you will damage it.
I was using it at 5v. Do you think that it is damage?
Probably not. He should have said "may" not "will", but using the divider is a good idea.
You may have a problem with power and you need to be clear about what sort of bluetooth module you are using. If there is any writing on the back, read it twice.
Your code is apparently a secret, so no need to comment there.
If you are able to pair and connect your phone, it means just that, which is a good start, but it has nothing to do with Arduino.
You might find the following background notes useful
Nick_Pyner:
Probably not. He should have said "may" not "will", but using the divider is a good idea.
You may have a problem with power and you need to be clear about what sort of bluetooth module you are using. If there is any writing on the back, read it twice.
Your code is apparently a secret, so no need to comment there.
If you are able to pair and connect your phone, it means just that, which is a good start, but it has nothing to do with Arduino.
You might find the following background notes useful
Yes. Learn to use the one you've got. There is nothing to suggest it is faulty and quite a lot to suggest it isn't, so buying a new one is more likely to be simply moving the problem rather than solving it.
rossi86m:
For some reason myserial loops in the available loop even if the hc is desconected
Connections
Hc rx >> arduino d10
Hc tx >> arduino d11
SoftwareSerial mySerial(10, 11); // RX, TX
The loop loops waiting for something to happen. It neither knows nor cares if bluetooth is connected or not. The wiring is wrong. There is only one way to connect, the right way - Rx>Tx and Tx>Rx, as is clearly explained in the notes. Don't bother trying anything else.
You will get on a lot better if you confine your thread to one forum.,