Go Down

Topic: HC-05 Bluetooth Module Serial Monitor Problem (Read 4209 times) previous topic - next topic

cyrussantiagoU5c

So we had a HC-05 Bluetooth Module wired to a gizDuino v5(http://www.e-gizmo.com/KIT/gizduinov.html)(arduino clone):

gizDuino v5 ------ HC-05

Rx(pin0) ----------Rx

Tx (pin1) ----------Tx

+5v ---------------VCC

GND --------------GND

+3.3V--------------Pin 34

----------------------

Upon uploading a blank code to the HC-05, we can setup the HC-05 properly. As seen on this image


Resource Link: https://alselectro.wordpress.com/2014/10/21/bluetooth-hc05-how-to-pair-two-modules/

----------------------

Now, when we upload the code to control the HC-05 to do other things, we get this 'weird' output on 9600 baud rate (code is shown)


and even on the 38400 baud rate


Resource Link: http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/

Nick_Pyner

#1
Aug 22, 2016, 08:55 am Last Edit: Aug 23, 2016, 02:07 am by Nick_Pyner
1. Normal practice is to connect Tx to Rx and Rx to Tx. Transmitters transmit to receivers, and receivers listen to transmitters.

2. None of the pictures you post appear to have anything to do with what you are actually doing, and they are all meaningless.

3. You are using the hardware serial pins 0,1 for software serial. This is not a good idea. You won't do any actual damage, but you won't get anywhere either. If you want to use software serial, use different pins like 5,6 - pretty well anything other than 0,1

Your intentions are unclear, but you might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

Please read the instructions to see how code is properly posted in this forum - using </> tags

cyrussantiagoU5c

#2
Aug 22, 2016, 03:36 pm Last Edit: Aug 22, 2016, 03:44 pm by cyrussantiagoU5c
1. Normal practice is to connect Tx to Rx and Rx to Tx. Transmitters transmit to receivers, and receivers listen to transmitters.

2. None of the pictures you post appear to have anything to do with what you are actually doing, and they are all meaningless.

3. You are using the hardware serial pins 0,1 for software serial. This is not a good idea. You won't do any actual damage, but you won't get anywhere either.


Your intentions are unclear, but you might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

Please read the instructions to see how code is prpewrly posted in this forum - using </> tags
Thank you. I tried what you mentioned on no. 1 but unfortunately when I type AT commands, I get nothing as a result. Based on the documentations of the device(GizDuino), RX is for 0 and 1 is for TX.

On my intentions,  I'm trying to connect a HC-05 Master to a HC-06 Slave. But I cant do that since I can't find another way to pair the two without using the instructions above. This is my first time handling a Bluetooth module.

Can you recommend another way? I'm trying to digest and apply based on doc(pdf link) you gave me.

Update: I tried to run the .ino file. The only time the serial monitor it giving results is when I setted the line endings to "No line ending" but only giving the last inputted character. I tried other line endings but outputs only "\n" or newlines per se

Nick_Pyner

Based on the documentations of the device(GizDuino), RX is for 0 and 1 is for TX.
This is the same as any other Arduino, and the connections are as I said in points 1 and 3.

Quote
On my intentions,  I'm trying to connect a HC-05 Master to a HC-06 Slave. But I cant do that since I can't find another way to pair the two without using the instructions above. module.

Can you recommend another way? I'm trying to digest and apply based on doc(pdf link) you gave me.
OK, the pictures you posted look like they come from the Martyn Currey site. If you want to connect HC-05 to HC-06, that is a pretty good place to get the story but learning to walk before you run might be a good idea, hence the notes I provided, but they only have passing reference to configuration..

Quote
Update: I tried to run the .ino file. The only time the serial monitor it giving results is when I setted the line endings to "No line ending" but only giving the last inputted character.
If you are referring to the .ino I supplied, that is not for use with the serial monitor. It is for use with Arduino talking to a phone, or a PC or laptop with a proper terminal programme like RealTerm. If that PC is the one that has the serial monitor on it, disconnect the USB cable as clearly instructed.   


Robin2

I reckon life would be much easier if you use SoftwareSerial to create a separate serial connection for the HC05 and leave pins 0 and 1 free for communication with the PC.

And have a look at Serial Input Basics

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

JackD5

Did you consider making your baud rates the same? You initialize your BTSerial on 38400 and serial monitor on 9600. If i were you I would change the serial monitor one to 38400 to match the BTSerial object.

Go Up