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

Поділитися
Вставка
  • Опубліковано 9 сер 2018
  • 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
    @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

  • @michaelszabo3071
    @michaelszabo3071 2 роки тому

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

  • @ilkeraykut7064
    @ilkeraykut7064 2 роки тому +3

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

  • @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

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

  • @ghadeersoliman2441
    @ghadeersoliman2441 6 років тому

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

  • @xilioxilione1478
    @xilioxilione1478 3 роки тому

    Ottimo video e ancor più ottima spiegazione. 😁👍

  • @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

  • @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.

  • @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 ?

  • @sinopsys6549
    @sinopsys6549 4 роки тому

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

  • @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

  • @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

  • @kjgdsvhj
    @kjgdsvhj 3 роки тому

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

  • @turuu
    @turuu Рік тому

    it really saved me, thank you so much ❤

  • @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

  • @garbojames2271
    @garbojames2271 5 років тому

    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.

  • @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.

  • @xilioxilione1478
    @xilioxilione1478 3 роки тому

    Iscritto

  • @user-du2pz6ci1b
    @user-du2pz6ci1b Рік тому

    Can I connect two hc-06?

  •  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 роки тому +1

      Thanks for the information.

  • @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-ll1ed5ng1y
    @user-ll1ed5ng1y 7 місяців тому

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

  • @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!

  • @altf4thc
    @altf4thc Рік тому

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

  • @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