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

  Переглядів 22,426

Electronics Tech

Electronics Tech

5 років тому

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 5 років тому
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.
@ilkeraykut7064
@ilkeraykut7064 Рік тому
They are both hc05 because some at commands like AT+ROLE don' exist in HC 06.
@rafaelquezadac
@rafaelquezadac Рік тому
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
@user-ll1ed5ng1y
@user-ll1ed5ng1y 5 місяців тому
Can 2 hc - 06 modules be used to wirelessly connect 2 arduinos
@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?
@michaelszabo3071
@michaelszabo3071 2 роки тому
Man this is an incredible video, thank you so much for the help!!!!
@ElectronicsTechHaIs
@ElectronicsTechHaIs 2 роки тому
Glad you liked it
@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
@heyavc2987
@heyavc2987 2 роки тому
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
@neethuaunnithan4029 3 роки тому
Is it possible to connect one hc-05 module to mega and the another to the uno board with different pins.
@ElectronicsTechHaIs
@ElectronicsTechHaIs 3 роки тому
Of course, it's possible.
@ghadeersoliman2441
@ghadeersoliman2441 5 років тому
Good video👌.Nice job dude👏❤ ,keep going👍👍
@ElectronicsTechHaIs
@ElectronicsTechHaIs 5 років тому
Thanks, my friend for the support. My pleasure.
@xilioxilione1478
@xilioxilione1478 2 роки тому
Ottimo video e ancor più ottima spiegazione. 😁👍
@ElectronicsTechHaIs
@ElectronicsTechHaIs 2 роки тому
Prego amico
@akeemlouigarde4689
@akeemlouigarde4689 3 роки тому
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 3 роки тому
Actually, they are quite the same thing. but sometimes AT+CMODE doesn't work so we use AT+PAIR
@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 роки тому
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
@pachaivazhiammanwoodcurvin3780
@pachaivazhiammanwoodcurvin3780 2 роки тому
Hello sir , can i connect bluetooth module hc 06 with out resistor?
@ElectronicsTechHaIs
@ElectronicsTechHaIs 2 роки тому
Hi, It's better to use a resistor.
@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.
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.
@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-du2pz6ci1b
@user-du2pz6ci1b Рік тому
Can I connect two hc-06?
@ElectronicsTechHaIs
@ElectronicsTechHaIs Рік тому
Not possible
@xKUMAxMU
@xKUMAxMU 5 років тому
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
@turuu
@turuu Рік тому
it really saved me, thank you so much ❤
@sinopsys6549
@sinopsys6549 3 роки тому
Благодарю за инструкцию! Привет из России!!!)))
@ElectronicsTechHaIs
@ElectronicsTechHaIs 3 роки тому
Thanks my friend.
@xilioxilione1478
@xilioxilione1478 2 роки тому
Iscritto
@kingdavid4463
@kingdavid4463 3 роки тому
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!
@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-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 років тому
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 4 роки тому
@@ElectronicsTechHaIs I cant send here .. can you send me your email?
@altf4thc
@altf4thc 11 місяців тому
This is 2 hc05. Hc06 doesn't even have 6 pins
@ElectronicsTechHaIs
@ElectronicsTechHaIs 9 місяців тому
Yes, it does, I've tested both modules.
@geethsankalpa1350
@geethsankalpa1350 3 роки тому
ammata hukapan ponnaya
#196 Two-Way Bluetooth Serial Comms for Arduino and other µControllers
28:33
Arduino Bluetooth AT commands HC 05 HC 06
7:20
DIY GUY Chris
Переглядів 57 тис.
Мы играли всей семьей
00:27
Даша Боровик
Переглядів 3,3 млн
3D Prints Outside for 7 years: What happened? RMRRF2024
29:36
CNC Kitchen
Переглядів 98 тис.
Bluetooth HC-05 Modules - How to PAIR & Transmit/Receive  DATA
18:32
Saravanan AL
Переглядів 114 тис.
блютуз bluetooth модуль hc-05, hc-06 Подключение к ардуино,
11:13
Ардуино для начинающих
Переглядів 20 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 367 тис.
360° Camera Inside a Spherical Mirror (Interactive Version)
6:41
Action Lab Shorts
Переглядів 215 тис.
Using Inexpensive 433 MHz RF Modules with Arduino
29:50
DroneBot Workshop
Переглядів 551 тис.
How to PAIR Bluetooth HC-05 Modules
8:52
Saravanan AL
Переглядів 183 тис.
HC-05 Bluetooth Module with Arduino-MIT App Inventor
27:57
BINARYUPDATES
Переглядів 944 тис.
HOW TO CONTROL A LED USING HC-06 BLUETOOTH MODULE WITH ARDUINO
3:10
Распаковал Xiaomi SU7
0:59
Wylsacom
Переглядів 2,7 млн
Fiber kablo
0:15
Elektrik-Elektronik
Переглядів 1,7 млн
Что еще за обходная зарядка?
0:30
Не шарю!
Переглядів 2 млн
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Переглядів 615 тис.
Phone charger explosion
0:43
_vector_
Переглядів 48 млн