Connecting two Bluetooth HC05 to each other using one arduino

I want to connect the two bluetooth HC-05 to each other using one arduino.

The Master Bluetooth properties:

VERSION:5.0-20220104

+ROLE:1

+UART:38400,0,0

+ADDR:5856:00:0029E9

+CMODE:1

+BIND: 1B00:3:412360

The Slave Bluetooth properties:

+VERSION:hc05V2.3_le

+ROLE:0

+UART=38400,0,0

+ADDR=1B:00:03:41:23:60

+CMODE:FAIL (For some reason when i type AT+CMODE=0 it outputs "FAIL")

+BIND=00:00:00:00:00:00

How I set them up separately using the same arduino:

VCC to 5V, GND to ground, EN to 3.3V, TXD to TX, RXD to RX

After that I wanted to test them out if they would connect:

I only connected the VCC and the GND of the two bluetooth HC05 to 5V Batteries, but they don't sync they just keep on blinking rapidly. Do I need two arduinos to to also connect the TX and RX of both of them?

There are good examples, some written by Robin2, how to communicate wirelessly. I know there's RF and likely BT too.

1 Like

There is a for hire section if you do not want to do the design.

1 Like

I'm new to the community so I'm not familiar with anyone named Robin2. Could you please send me some source links for the good examples you're talking about which I can look into ?

They should "find each other" with only power connected.

1 Like

For searches in forum there's a function up in this window, dark green, with the text "Search Forum"!

1 Like

I recommend Martyn Currey's site. Example page:
https://www.martyncurrey.com/arduino-with-hc-05-bluetooth-module-in-slave-mode/

You MUST use logic level shifters when connecting 5V outputs (TX) to Bluetooth inputs (RX).

1 Like

So this is what I meant by only connecting the VCC and the GND of the bluetooth HC05. (The one connected with the blue and orange wires is the Master)

I can easily connect them to a phone or my laptop, but I can't get them to connect to each other

The unit that got the BIND treatment should be bound to its 'partner' and mot otherwise pairable

1 Like

So what you are saying is that the Master should be bound to the Slave ? What do you mean by "bound"? Do you mean that I should connect the TX and RX of the Master to the RX and TX of the Slave?

One you do the BIND operation on, the other gets no special prep - as I recall.

The one that gets the BIND operation, I wouldn't figure as pairable with anything but its assigned address ("partner"). I believe you posted that you could still pair connect with both your units

I followed the martyn currey article/s on this.

1 Like

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

1 Like

Don't think that is possible.

1 Like

It's silly and pointless, but can be done in order to just prove it can be done. One way is to have one on hardware serial and the other (presumably) on 9600 baud software serial, and text to be transmitted included in the programme. I suppose it can be used to confirm Blueteeth are properly configured.
See post#5. I understand master finds slave as soon as the latter is powered.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.