Hi, nice video and very clear to follow. I want to make keyless entry for my car,i have followed you`re vidi-torial and got it to work (almost) My problem is that when i put the module in slave mode, i need to send a command to the bt module to get it to work Pin 34(key) is not high when paired only when connected. What i wouldt like is that i dont have to touch my phone and when in range pin 34 (relay) will work and unlock my car. When i move away then the car gets locked. I tried to make the module master and connect to phone, this works (kinda) i open up spp server and module connects to phone but every time i need to input pin number, and voila relay works, but........... When i get out of range i need to restart bt scan and enter pin number again. Any Thoughts? Thanx for youre Vid-torial
Hello your project is so helpful but the issue which I am facing is Auto reconnecting. Once its connected its connected but when ever I disconnect HC-06 then power it up its not auto connecting again...any help would be appreciated. thank you
Thanks for the tutorial , well done, will be implementing underwater; from an ROV as slave and the master on Ocean floor bouy release. Bluetooth signal should max at 10cm in water.
Hi hello there, its a nice project.. and i will use it for my motorcycle. Thank u for sharing this. But can i use BLE in my xiaomi mi band 2 to connect rather than my smartphone? So when im wearing my mi band and near it i can turn on my motorcycle, and when i walk away the motorcycle is off.
On the "STATE" pin of the HC-05 board, the logic level does not change. I do not know why, but there is always "0", even when the connection is established.
Did you check it with multimeter? Normally a "working" HC-05 will give output 3.3V on the STATE pin when connection is established. If possible, try to test with another HC-05 module to check either the module is faulty or not.
@@nudgeme4844 Yes, I measured the voltage with a multimeter. This pin is always low voltage, about zero volts. Perhaps I have a faulty device, or the manufacturer did not register this function in the firmware. I use the HC-05 board in my project, and I need the pin "module status output". Therefore, I am looking for information on the Internet about the use of this pin. I have no other module to check. Thank you for the answer.
+Ace Charles Yes. Actually I used that just to supply the correct voltage (either 3.3V or 5V) from the powerbank to the Bluetooth module. So of you have any other way then that would do also.
may i know how to coding the hc05 in order to connect it with bt master (MYBT) app..? just rename the modul and pswd and set it as slave or what, thank you
Hi, just rename the module to MYBT, pair it first using your phone's Bluetooth Setting and that's all. The wire connection of HC-05 is just the same as HC-06, no need to set is to Slave or Master. Thanks!
@@nudgeme4844 thanks for the explanation, i've done it last night, but i have another problem, the power that came out from "state pin" can't activate the 5v relay solenoid.. i checked the voltage is about 3.3v,, what shoul i do..?
May I know which voltage pin do you use to power up the HC-05, is it 5V or 3.3V on the Arduino/supply? If possible, try to connect the VCC pin of the HC-05 to 5V instead of 3.3V supply.
@@nudgeme4844 i'm using 5v pin on it,, and also i tried to using it with 5v dc regulated adaptor, but still can't activate the relay,, it could only activate the diode led 😔
what if you exceed the range of the your BT device the other one is a meter away it may stop the machine? then try to back again. there is a possible that will turn again?? thanks.
Razzedhel Azuela Hi, I have tried that. When I was like 10m away from the receiver the motor stopped and when I came back within range the Bluetooths were automatically connected and the motor started to turn again.
+Nudge Me can i ask another thing? what if I'll try to reverse? when Bluetooth is on the machine will "off" then vice versa? it could be possible? thank you!
Certainly! The easiest way to do that is instead of using the NC and COM pin of the relay as shown in the video, use the NO and COM pin. This will make the circuit work oppositely to the current condition we have.
Hello dear, very nice demo. But please help me out, I want to activate the relay whenever HC05 finds any bluetooth getting paired (not just the specific HCO6 one). It will be paird through password. So that any one who knows the password can activate the relay from its android phone. Please helpme how to do that ?
Hi, the easiest way to do that is just let the HC05 switched on all day long. Everyone with their phone can scan the HC05 and connect it as usual, using predetermined password. When the HC05 gets connected, it triggers the relay to activate any component you want. Example scenario: John switches on a HC05 Bluetooth module connected to his car lock system and leaves for a meeting. His housemate Jack wants to get home early so he just goes to the John's car, scans HC05 Bluetooth device using his smartphone, pairs it using a pincode and when it is connected, the car unlocks itself. Jack gets in the car, grabs a key beneath the driver's seat, starts the engine and goes home.
Thanks for your rapid response. Yes you are right, I want the very similar scenerio, but how to do that I mean, how to work with the AT codes in HC 05 ? Pls help. On the other hand can such fuction be added that once a phone has been paired using password, it will be automatically paired when ever the phone is within range?
MUHAMMAD SARFARAZ HASAN SIDDIQUI Attari In my humble opinion, we need to pair both of the Bluetooth modules first to make them connect automatically, so we cannot make the HC05 just connect with any Bluetooth device when it is in range. So if you insist to make it connected with any Bluetooth device available, you need to follow the John/Jack scenario's steps.
MUHAMMAD SARFARAZ HASAN SIDDIQUI Attari Password of the HC05 is standard, which is normally "1234". If you want to change it, connect it in AT mode and use "AT+PSWD" command. More info please go to www.instructables.com/id/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/
Thanks for your tutorial video. I want to make a project. I use one HC-05 module and smartphone with bluetooth. I want to HC-05 connect to phone automaticaly to control somethings. I used Arduino UNO to config HC-05(Master) in AT mode by serial monitor. HC-05 and phone paired successful, but can not link ( AT+link = ) (it shows FAIL). Please show me why it is? What can I do ? Thank you very much. Code Arduino: #include SoftwareSerial BTSerial(10, 11); // RX | TX void setup() { pinMode(9, OUTPUT); // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode digitalWrite(9, HIGH); Serial.begin(9600); Serial.println("Enter AT commands:"); BTSerial.begin(38400); // HC-05 default speed in AT command more } void loop() { // Keep reading from HC-05 and send to Arduino Serial Monitor if (BTSerial.available()) Serial.write(BTSerial.read()); // Keep reading from Arduino Serial Monitor and send to HC-05 if (Serial.available()) BTSerial.write(Serial.read()); }
NGOC DAM Hi, have a look on this app (BT Master): play.google.com/store/apps/details?id=me.nudge.btkeylessBG. It is designed to automatically connect to your Bluetooth module with some little configuration. You may find the instruction at the Google Play page. Hope that helps. Thanks!
Thank for your sharing. When I use smartphone with this app to connect to my Bluetooth module, my Bluetooth module must set to Master, Slaves ??? Somebody with phone and this app can connect with my BT module by "1234" password ???? Can I change password of my BT module to other pass ??? What did you use to code this app?
You can change the default 1234 password to other pass you like. The Bluetooth module needs to be in slave mode, but usually by default, the HC-05 will run in slave, and the HC-06 will always be slave.
Hi, nice video and very clear to follow.
I want to make keyless entry for my car,i have followed you`re vidi-torial and got it to work (almost)
My problem is that when i put the module in slave mode, i need to send a command to the bt module to get it to work
Pin 34(key) is not high when paired only when connected.
What i wouldt like is that i dont have to touch my phone and when in range pin 34 (relay) will work and unlock my car.
When i move away then the car gets locked.
I tried to make the module master and connect to phone, this works (kinda) i open up spp server and module connects to phone but every time i need to input pin number, and voila relay works, but...........
When i get out of range i need to restart bt scan and enter pin number again.
Any Thoughts?
Thanx for youre Vid-torial
hello , although im only planning to set up the hc05 for the first time. can you kindly help with the circuit. my AT commands are not responsive.
Hello your project is so helpful but the issue which I am facing is Auto reconnecting. Once its connected its connected but when ever I disconnect HC-06 then power it up its not auto connecting again...any help would be appreciated. thank you
Is it so? From the video it can be seen that the modules continue to be auto connected even after the power has been disconnected.
Thanks for the tutorial , well done, will be implementing underwater; from an ROV as slave and the master on Ocean floor bouy release. Bluetooth signal should max at 10cm in water.
You are welcome. Don't forget to share your project video here okay :)
Hi hello there, its a nice project.. and i will use it for my motorcycle. Thank u for sharing this. But can i use BLE in my xiaomi mi band 2 to connect rather than my smartphone? So when im wearing my mi band and near it i can turn on my motorcycle, and when i walk away the motorcycle is off.
Hello, I think it won't be possible as the HC-05/HC-06 is not compatible with the BLE devices.
Hi..
what if it was connected between BT To Smartphone ?
please request coding installed on the MYBT android application
Hi, i have a doubt in Bluetooth module. I want to reset or ON OFF the
Bluetooth module when android device disconnected. Is it possible??????
Yes, it is possible. When you turn it back on, it will be automatically paired again.
To avoid all HPs (that app installed) auto-pairing to my bluetooth device, please add feature to give a name to BT devices
On the "STATE" pin of the HC-05 board, the logic level does not change. I do not know why, but there is always "0", even when the connection is established.
Did you check it with multimeter? Normally a "working" HC-05 will give output 3.3V on the STATE pin when connection is established. If possible, try to test with another HC-05 module to check either the module is faulty or not.
@@nudgeme4844 Yes, I measured the voltage with a multimeter. This pin is always low voltage, about zero volts. Perhaps I have a faulty device, or the manufacturer did not register this function in the firmware. I use the HC-05 board in my project, and I need the pin "module status output". Therefore, I am looking for information on the Internet about the use of this pin. I have no other module to check. Thank you for the answer.
Hi sir, thanks for your video, may i just ask if it is applicable for arduino?
Thanks sir for reply, Our intention was to use one Bluetooth module and a Smartphone bluetooth, do we need still need HC-06, the tricky part?
Hi, to connect the BT module to phone's BT, have a look here: play.google.com/store/apps/details?id=me.nudge.btkeylessBG
3:35.... Why did you not press the on board Push Button and power up the HC-05 to get into AT Command Mode ?????
Does it really work? Have you tried it yourself?
forum.arduino.cc/index.php?topic=128991.msg971873#msg971873
Yes.... It works... Yes I've used it...
Much easier.
Why do you think there is a Push Button on the PCB ???
Thanks for the info!
hi.. it is really good idea, but can you make the bt transmitter master with android phone
ruby sidik Hi, good news, I have done it already. Please have a look here: play.google.com/store/apps/details?id=me.nudge.btkeylessBG
Thank you!
HELLO,when i try AT+INIT command it shows ERROR(17) can u explaim this
please it is ASAP project to me
Hi, maybe the Bluetooth module does not support that command.
Hi
İ just find your post, my question
İs the İNQ number (2016:6:70320) always same on each BT ör unique each one
Thanks
What is the model of the USB to UART? Can i use any USB to UART?
+Ace Charles Yes. Actually I used that just to supply the correct voltage (either 3.3V or 5V) from the powerbank to the Bluetooth module. So of you have any other way then that would do also.
may i know how to coding the hc05 in order to connect it with bt master (MYBT) app..? just rename the modul and pswd and set it as slave or what, thank you
Hi, just rename the module to MYBT, pair it first using your phone's Bluetooth Setting and that's all. The wire connection of HC-05 is just the same as HC-06, no need to set is to Slave or Master. Thanks!
@@nudgeme4844 thanks for the explanation, i've done it last night, but i have another problem, the power that came out from "state pin" can't activate the 5v relay solenoid.. i checked the voltage is about 3.3v,, what shoul i do..?
May I know which voltage pin do you use to power up the HC-05, is it 5V or 3.3V on the Arduino/supply? If possible, try to connect the VCC pin of the HC-05 to 5V instead of 3.3V supply.
@@nudgeme4844 i'm using 5v pin on it,, and also i tried to using it with 5v dc regulated adaptor, but still can't activate the relay,, it could only activate the diode led 😔
@@nudgeme4844 is the version of hc05 take effect..? because i'm using hc05 version 4 (can't using AT+INIT on AT COMMAND)
very nice
Thank you!
what if you exceed the range of the your BT device the other one is a meter away it may stop the machine? then try to back again. there is a possible that will turn again?? thanks.
Razzedhel Azuela Hi, I have tried that. When I was like 10m away from the receiver the motor stopped and when I came back within range the Bluetooths were automatically connected and the motor started to turn again.
+Nudge Me okay thanks a lot, it helps me so much..
Razzedhel Azuela You are welcome ☺️
+Nudge Me can i ask another thing? what if I'll try to reverse? when Bluetooth is on the machine will "off" then vice versa? it could be possible? thank you!
Certainly! The easiest way to do that is instead of using the NC and COM pin of the relay as shown in the video, use the NO and COM pin. This will make the circuit work oppositely to the current condition we have.
вот если бы ты еще делал русские субтитры, я бы даже лайк поставил)
Извините, но я не знаю русский
Hello dear, very nice demo. But please help me out, I want to activate the relay whenever HC05 finds any bluetooth getting paired (not just the specific HCO6 one). It will be paird through password. So that any one who knows the password can activate the relay from its android phone. Please helpme how to do that ?
Hi, the easiest way to do that is just let the HC05 switched on all day long. Everyone with their phone can scan the HC05 and connect it as usual, using predetermined password. When the HC05 gets connected, it triggers the relay to activate any component you want.
Example scenario: John switches on a HC05 Bluetooth module connected to his car lock system and leaves for a meeting. His housemate Jack wants to get home early so he just goes to the John's car, scans HC05 Bluetooth device using his smartphone, pairs it using a pincode and when it is connected, the car unlocks itself. Jack gets in the car, grabs a key beneath the driver's seat, starts the engine and goes home.
Thanks for your rapid response. Yes you are right, I want the very similar scenerio, but how to do that I mean, how to work with the AT codes in HC 05 ? Pls help. On the other hand can such fuction be added that once a phone has been paired using password, it will be automatically paired when ever the phone is within range?
MUHAMMAD SARFARAZ HASAN SIDDIQUI Attari In my humble opinion, we need to pair both of the Bluetooth modules first to make them connect automatically, so we cannot make the HC05 just connect with any Bluetooth device when it is in range. So if you insist to make it connected with any Bluetooth device available, you need to follow the John/Jack scenario's steps.
yes right. What will be the steps for adding password?
MUHAMMAD SARFARAZ HASAN SIDDIQUI Attari Password of the HC05 is standard, which is normally "1234". If you want to change it, connect it in AT mode and use "AT+PSWD" command. More info please go to www.instructables.com/id/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/
Thanks for your tutorial video. I want to make a project. I use one HC-05 module and smartphone with bluetooth. I want to HC-05 connect to phone automaticaly to control somethings. I used Arduino UNO to config HC-05(Master) in AT mode by serial monitor. HC-05 and phone paired successful, but can not link ( AT+link = ) (it shows FAIL). Please show me why it is? What can I do ? Thank you very much.
Code Arduino:
#include
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
pinMode(9, OUTPUT); // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
digitalWrite(9, HIGH);
Serial.begin(9600);
Serial.println("Enter AT commands:");
BTSerial.begin(38400); // HC-05 default speed in AT command more
}
void loop()
{
// Keep reading from HC-05 and send to Arduino Serial Monitor
if (BTSerial.available())
Serial.write(BTSerial.read());
// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available())
BTSerial.write(Serial.read());
}
NGOC DAM Hi, have a look on this app (BT Master): play.google.com/store/apps/details?id=me.nudge.btkeylessBG. It is designed to automatically connect to your Bluetooth module with some little configuration. You may find the instruction at the Google Play page. Hope that helps. Thanks!
Thank for your sharing. When I use smartphone with this app to connect to my Bluetooth module, my Bluetooth module must set to Master, Slaves ??? Somebody with phone and this app can connect with my BT module by "1234" password ???? Can I change password of my BT module to other pass ??? What did you use to code this app?
You can change the default 1234 password to other pass you like. The Bluetooth module needs to be in slave mode, but usually by default, the HC-05 will run in slave, and the HC-06 will always be slave.
Hi NGOC DAM , were you able to complete this project ? I too am working on this project , it would be really kind of you if we can connect .
hi sir naice but .
pleace remove song