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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • 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/TwoBluet...
    ............................................................................................................................................................
    The circuit diagram:
    bit.ly/HC05Wiri...
    ............................................................................................................................................................
    AT Command:
    bit.ly/ATCommand
    ............................................................................................................................................................
    If you want to buy the components:
    Arduino UNO: www.gearbest.c...
    Bluetooth HC-05:
    www.gearbest.c...
    Bluetooth HC-06:
    www.gearbest.c...
    Servo SG90:
    www.gearbest.c...
    ............................................................................................................................................................
    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
    @pcibra5401 6 лет назад +2

    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

  • @rafaelquezadac
    @rafaelquezadac 2 года назад +3

    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 2 года назад +2

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

  • @ilkeraykut7064
    @ilkeraykut7064 2 года назад +3

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

  • @heyavc2987
    @heyavc2987 2 года назад +1

    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 ?

  • @xKUMAxMU
    @xKUMAxMU 5 лет назад +5

    you connected two hc05, not hc06 to hc05

    • @ElectronicsTechHaIs
      @ElectronicsTechHaIs  5 лет назад +1

      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 лет назад +2

      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

  • @michaelszabo3071
    @michaelszabo3071 2 года назад

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

  • @xilioxilione1478
    @xilioxilione1478 3 года назад

    Ottimo video e ancor più ottima spiegazione. 😁👍

  • @Dr-Shlomo-Cohen
    @Dr-Shlomo-Cohen 4 года назад

    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?

  • @neethuaunnithan4029
    @neethuaunnithan4029 4 года назад

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

  • @akeemlouigarde4689
    @akeemlouigarde4689 4 года назад

    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

  • @mahdizayet4011
    @mahdizayet4011 3 года назад

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

  • @ghadeersoliman2441
    @ghadeersoliman2441 6 лет назад

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

  • @t41ef46
    @t41ef46 4 года назад

    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 года назад +1

      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

  •  5 лет назад

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

    • @ElectronicsTechHaIs
      @ElectronicsTechHaIs  5 лет назад

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

    •  5 лет назад

      @@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  5 лет назад +1

      Thanks for the information.

  • @sinopsys6549
    @sinopsys6549 4 года назад

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

  • @kjgdsvhj
    @kjgdsvhj 3 года назад

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

  • @chchong68
    @chchong68 2 года назад

    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.

  • @user-du2pz6ci1b
    @user-du2pz6ci1b Год назад

    Can I connect two hc-06?

  • @title5908
    @title5908 3 года назад

    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.

  • @user-ll1ed5ng1y
    @user-ll1ed5ng1y 9 месяцев назад

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

  • @altf4thc
    @altf4thc Год назад

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

  • @garbojames2271
    @garbojames2271 6 лет назад

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

  • @turuu
    @turuu Год назад

    it really saved me, thank you so much ❤

  • @kingdavid4463
    @kingdavid4463 3 года назад

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

    • @ElectronicsTechHaIs
      @ElectronicsTechHaIs  3 года назад +1

      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!

  • @xilioxilione1478
    @xilioxilione1478 3 года назад

    Iscritto

  • @user-gk1dj4nz6x
    @user-gk1dj4nz6x 5 лет назад

    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 лет назад +1

      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 лет назад +2

      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
    @geethsankalpa1350 3 года назад

    ammata hukapan ponnaya