Make a communication between HC-05 and HC-06 Bluetooth modules with Arduino

Ғылым және технология

Hi everyone,
In some situations, we want to control devices wirelessly like make a robot that we can control it using Bluetooth connection whether from
an Android app or a device we've made.
So in this video, I will show how to make a fully successful Bluetooth
connection using two module HC-05 as a Master and HC-06 as a Slave.
We will Configure and Pair Two Bluetooth Modules as Master and Slave
Connect the HC-05 to Arduino.
Connect the HC-06 to Arduino.
The HC-05 Will connect to the HC-06 then send and receive the data from both.
............................................................................................................................................................
Arduino code:
bit.ly/TwoBluetooth
............................................................................................................................................................
The circuit diagram:
bit.ly/HC05WiringHC06
............................................................................................................................................................
AT Command:
bit.ly/ATCommand
............................................................................................................................................................
If you want to buy the components:
Arduino UNO: www.gearbest.com/boards-shiel...
Bluetooth HC-05:
www.gearbest.com/other-access...
Bluetooth HC-06:
www.gearbest.com/transmitters...
Servo SG90:
www.gearbest.com/other-access...
............................................................................................................................................................
Music: x50 - Penguin (Vlog No Copyright Music)
............................................................................................................................................................
If you like this video don't forget to Like and Share.
Don't be a stranger, hit the Subscribe button, It will be awesome having you here.
Comment if you have any questions.
Thanks for watching.

Пікірлер: 61

  • @pcibra5401
    @pcibra54015 жыл бұрын

    Your videos are perfect, I've been trying to make the connection between HC05 and HC06 but I failed. Because of you now, my project completed. Thank you so much, my friend, please keep it up

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    You're Welcome my friend. I'm glad it was helpful.

  • @michaelszabo3071
    @michaelszabo30712 жыл бұрын

    Man this is an incredible video, thank you so much for the help!!!!

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    2 жыл бұрын

    Glad you liked it

  • @rafaelquezadac
    @rafaelquezadac2 жыл бұрын

    Did you use two HC-05? My HC-06 haven't a button. How can I get the ADDR of my HC-06 Module?

  • @anupsonawane1420

    @anupsonawane1420

    Жыл бұрын

    even my hc-o6 module does not have a button i think he might have used 2 hc-o5 modules

  • @xilioxilione1478
    @xilioxilione14783 жыл бұрын

    Ottimo video e ancor più ottima spiegazione. 😁👍

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    3 жыл бұрын

    Prego amico

  • @ilkeraykut7064
    @ilkeraykut7064 Жыл бұрын

    They are both hc05 because some at commands like AT+ROLE don' exist in HC 06.

  • @ghadeersoliman2441
    @ghadeersoliman24415 жыл бұрын

    Good video👌.Nice job dude👏❤ ,keep going👍👍

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    Thanks, my friend for the support. My pleasure.

  • @mahdizayet4011
    @mahdizayet40113 жыл бұрын

    Nice video keep going If i want to control two servo motor with two potentiometer what should be changed in the code

  • @Dr-Shlomo-Cohen
    @Dr-Shlomo-Cohen4 жыл бұрын

    Hi, I need to put a transmitter on the collar of my dog, so when he barks it would trigger a device in the house. I also need to keep track of the barks on an app on my phone that I will later make. What technology do you recommend? How? Thank you so much.

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Sorry for the late reply, Do you have good WiFi around your house?

  • @turuu
    @turuu Жыл бұрын

    it really saved me, thank you so much ❤

  • @xilioxilione1478
    @xilioxilione14783 жыл бұрын

    Iscritto

  • @sinopsys6549
    @sinopsys65494 жыл бұрын

    Благодарю за инструкцию! Привет из России!!!)))

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Thanks my friend.

  • @heyavc2987
    @heyavc29872 жыл бұрын

    Hi dear friend , arduino codes link an AT command links are being blocke by Bit site. Could you please upload link again or recomment a sloution ?

  • @neethuaunnithan4029
    @neethuaunnithan40294 жыл бұрын

    Is it possible to connect one hc-05 module to mega and the another to the uno board with different pins.

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Of course, it's possible.

  • @akeemlouigarde4689
    @akeemlouigarde46894 жыл бұрын

    What is the difference between AT+PAIR and AT+CMODE. If the AT+CMODE connects to the other device then why do we need to pair it ?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Actually, they are quite the same thing. but sometimes AT+CMODE doesn't work so we use AT+PAIR

  • @xKUMAxMU
    @xKUMAxMU5 жыл бұрын

    you connected two hc05, not hc06 to hc05

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    That's not correct my friend, I had connected HC-05 to HC-06, and as you notice in the video HC-05 needs Key pin to be connected to the Arduino 3.3v, but HC-06 doesn't need that pin. What was the problem that you faced?

  • @xKUMAxMU

    @xKUMAxMU

    5 жыл бұрын

    Electronics Tech hc06 have 4 pins, hc05 have 6 pins. and you pressed the buttons on both, only the hc05 has such buttons

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    yes you're right but not all the modules don't have a button, mine has one, also has 6 male header.

  • @xKUMAxMU

    @xKUMAxMU

    5 жыл бұрын

    Electronics Tech got it

  • @chchong68
    @chchong682 жыл бұрын

    Your videos are nice, but seems like you did a connection between HC05 to HC05, not the HC05 to HC06.

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    2 жыл бұрын

    Thank you, You think the connection was between HC05 and HC05 but no it's between HC05 and HC06, in fact when I tried to establish the connection between 05 and 06 for the first time I faced many problems but in the end, it worked. Make sure to set the same password and I recommend reading both of the module commands so you will have a solid idea about them.

  • @t41ef46
    @t41ef464 жыл бұрын

    Is there another way to make the HC-06 enter AT mode? I have the HC-06 that doesn't have a button.

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    some HC-06 modules are permanently configured to be in slave mode, so it's always in AT mode when not paired to any other devices. try to set the baud rate to 38400 then try the AT commands again.

  • @t41ef46

    @t41ef46

    4 жыл бұрын

    @@ElectronicsTechHaIs thanks a lot for your reply. I managed to use someone's code to get some sort of response from it. But it doesn't respond to some of the AT commands you write. For example it respond to PIN instead of PSWD? I'm doing something wrong but not sure what

  • @kjgdsvhj
    @kjgdsvhj3 жыл бұрын

    Hello sir , can i connect bluetooth module hc 06 with out resistor?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    2 жыл бұрын

    Hi, It's better to use a resistor.

  • @title5908
    @title59083 жыл бұрын

    Is it possible to connect two slaves and one master?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    3 жыл бұрын

    Yes, it's possible but not simultaneously, you can't connect two slaves to one master at the same time, you have to disconnect one of the salves to let the another one connect to the master, If you get what I mean.

  • @garbojames2271
    @garbojames22715 жыл бұрын

    Good Day Electronics Tech, is it possible to upload sketch code to arduinoUNO using bluetooth module HC-05?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    yes, you can, there's an Android application named Bluino Loader try it.

  • @garbojames2271

    @garbojames2271

    5 жыл бұрын

    do you have any tutorials on how to do it?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    you can find many projects about it on google.

  • 4 жыл бұрын

    The commands "AT+PAIR" and "AT+LINK" give me error, so what can I do in that case?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Check your Bluetooth model then download its datasheet in order to test the right AT command of it.

  • 4 жыл бұрын

    @@ElectronicsTechHaIs It didn't work, so I check the hc05 and hc06 firmware and hc05 is 2.0 2010 and hc06 3.0 2017 so I take a decision to buy a new hc05 but this time 3.0 2017. And it works, looks like the pair is successful if the two modules got the same firmware.

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    4 жыл бұрын

    Thanks for the information.

  • @user-du2pz6ci1b
    @user-du2pz6ci1b Жыл бұрын

    Can I connect two hc-06?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    Жыл бұрын

    Not possible

  • @user-ll1ed5ng1y
    @user-ll1ed5ng1y6 ай бұрын

    Can 2 hc - 06 modules be used to wirelessly connect 2 arduinos

  • @kingdavid4463
    @kingdavid44633 жыл бұрын

    Isn't the correct way rx to tx and tx to rx?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    3 жыл бұрын

    You're right, But when you need to configure the Bluetooth module you have to connect Rx to Rx and Tx to Tx,

  • @kingdavid4463

    @kingdavid4463

    3 жыл бұрын

    @@ElectronicsTechHaIs Thanks for answering!

  • @daninwy2681

    @daninwy2681

    3 жыл бұрын

    @@ElectronicsTechHaIs rx->rx & tx->tx ! I didn't know that. I was wondering why I couldn't get it to take the AT commands when lights were blinking slow. I'll try that!

  • @altf4thc
    @altf4thc Жыл бұрын

    This is 2 hc05. Hc06 doesn't even have 6 pins

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    10 ай бұрын

    Yes, it does, I've tested both modules.

  • @user-gk1dj4nz6x
    @user-gk1dj4nz6x5 жыл бұрын

    Hello, I do the same steps that you do here but there is no connection between hc05 and hc06, can you help me please?

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    Hi, check each one weather if it's working or not. the modules that you have are the same ones in the video? or different.

  • @user-gk1dj4nz6x

    @user-gk1dj4nz6x

    5 жыл бұрын

    @@ElectronicsTechHaIs I use the same module for hc05 but the hc06 is different. And I check each one if its work or not and I found that there are connection (with sellphone).

  • @ElectronicsTechHaIs

    @ElectronicsTechHaIs

    5 жыл бұрын

    Good, Could you send me a picture of the hc06 that you have?

  • @user-gk1dj4nz6x

    @user-gk1dj4nz6x

    5 жыл бұрын

    @@ElectronicsTechHaIs I cant send here .. can you send me your email?

  • @geethsankalpa1350
    @geethsankalpa13503 жыл бұрын

    ammata hukapan ponnaya

Келесі