Hi very informative thank you very much ❤ Why is there such a delay between the button press and the LED actually lighting up ? I need a real time application with max 50ms... Also, is the connection secure enough so no one disturbs the connection with a simple phone (I need to use this in a crowded environment to control a few relays at the distance for a live show so it would be a disaster if the communication breaks down in a middle of the show 😅) Cheers😊
Thanks so much for the feedback. The delay is partly due to the size and characteristics of the commands/data transmitted and received, also the functions and methods i used to process the commands/data isn't optimized for speed. I wanted to keep things simple to enable more people to try what i was showing in the video. For real-time use, you might have to look at perhaps a board like raspberry pico 2040.
I'm curious to know if you can set up multiple slaves to one master and then the master to a main device and communicate data through or from all back to main. going to be testing this for sure. thank you for the code.
I have been wondering same fam. Not sure if its possible to connect multiple slave HM10's to one Master HM10 but i'd do well to let you know if i succeed. Let me know if you try it out and the results. Cheers!!
Thanks for the kind words. I have been looking into implementing a network like the one you mentioned but i haven't had any luck so far. I will make a video when am successful and let you know. Please dont forget to subscribe.
Really nice video ! Thanks. I connected 2 HC-10 to a usb-2-serial ports ports. They accept the AT commands (like AT_HELP) and respond with text etc to my port reading program. Now i want to send data.... Do i just go ahead and send data to the same ports and it will be received from one HC-10 to the other ? (so thats AT commands and data all go through the same Rx and Tx. I can't see how else)
Just so i understand your question. You want to send data from one module to the other! To send data from one of the modules to the other, they must first connect to each other as i've demonstrated in the video. Second, you must now send data through the same channel you were sending the AT commands, for it to be delivered wirelessly to the other module. I hope i've answered your question?
Hi! I love your video and i have been able to connect my HM-10 Bluetooth modules together thanks to you! However… when adding the code you provided, everything seems to stop working. So when I for example press the button, nothing in the serial monitor is written :( do you have a solution for this maybe? Happy for an answer:)
Thanks for the kind words and for reaching out. Kindly make sure your serial monitor baud rate match what you used in the code...If you used my code without changes, that should be 19200 and also set view to "Both NL & CR". Have you tried using the LEDs to visualize the effects of pressing the button as I did in the video? Kindly let me know if it doesn't work.
@@Delali Hi, thanks for the answer! Both the baud rate abd the set view is set to 19200 and "Both NL & CR". I even doubble checked so it should be connected correctly too... I followed every step in your video, but I still have the trouble with sending signals between the two BT-modules :( thanks in advance! :)
Hello, I'm trying to get two HM10 bluetooth modules to connect to each other for my senior year university project. I have followed the video although my circuit is slightly different. The bluetooth module can connect to the DSDTECHBluetooth app on my iPhone. However, when I turn off all nearby bluetooth devices, and disconnect the HM10 from the DSDTECHBluetooth app, I cannot run any AT commands in the Arduino serial monitor. I have tried several different configurations of the voltage divider, and still nothing. Is it possible that my wires are faulty? I'm not sure how the HM10 can connect to the DSDTECHBluetooth app, but AT commands do not work. Any help is appreciated, thank you!
Sorry i am just now seeing your message. I hope its not too late. 1. Yes, it is possible for jumper wires might be faulty. I have had such issues in the past. I sometimes verify the wires using a "continuity" check with a multimeter. If you dont have a multimeter, wire up a simple LED and then keep swaping out wires till you're sure they all work. 2. Your voltage divider ultimately needs to output 3.3v peak so it doesnt matter the resister combination you use, as long as the resister values are not super high and the voltage out to the HM10 RX is 3.3v you're good. 3. Make sure your arduino drivers are installed 4. Once everthing is connected, set your IDE to the correct Arduino Port and upload the Software Serial Sketch. Also make sure the Baud Rates in the Code is as i recommended. 5. Check the schematic i have provided to be sure your wiring is correct. 6. Restart your serial monitor. Make sure your Serial Monitor Baud rates are as recommended. 7. Type AT and press ENTER, It should work. I hope this helps. Sorry for the late reply.
Hi, this video was very helpful. I am working on a final year University project and have an issue with the HM-10 module. I can see that it has been powered correctly, with the correct potential divider used to join the TX pin on the arduino (determined by the SoftwareSerial library) to thee RX pin on the HM-10. However, when I send an AT command, I receive nothing back. A research assistant at the University suggested using a pull-up resistor, and checking what might be happening between the pins using an oscilloscope. What might be the reasons why I am not receiving the "OK" shown in your video when sending the AT command? (I have also changed the serial monitor setting to 'Both NL & CR')
Kindly check the "about" page of this channel and send me a mail with your current wiring. In the mean time if you have another set of HM-10, can you try those. could be that you have defective modules or they are communicating at a Baud thats not the default.
Yes. To the best of my knowledge the HM10 can only connect to one device at a time. So if you connect it to your phone's Bluetooth, it cant connect to the master and vice versa
Hello, Very informative and helpful video by the way, I am looking for your advice on connecting that same cc2541 HM-10 and Arduino Nano. I got Breadboard board power supply board , breadboard, 12v DC adapter and Nano. What would be the best way to connect the Nano and Bluetooth as I'm little bit aware of voltage shock between them. Please be kind to provide a best recommendation as I'm on a project doing a Robotic arm that powered with four servos which intended to feed food to disabled. Thank you and If you're not clear what I'm asking for, please reply down here and I'll be back immediately.
Hello Friend, thanks for getting in touch. Your Arduino Nano wiring to the HM-10 remains the same as with the Uno but this time the 12v dc adaptors positive goes to Vin of the Nano(it supports 7-12v), ground goes to any of the ground pins of the Nano and then you can connect the Nano's 5v pin to the HM-10
@@Delali Hello thanks for replying, I'm using DC adapter to power all those servos as they require high amps and voltage. So this what I'm planning for, I use my breadboard power supply board that connected with DC adapter (12V/1.5A) and since it got two variations called 5v and 3.3v, I will power my Bluetooth to the 5v via positives power rails on breadboard and GND to negatives..next RXT,TXT pins on Bluetooth will connected to vice versa on Nano. So with Nano, I will power with USB as usual coz I'm still in test mode, I should try your recommendation later when all coding and testing stuff done. Is it okay, my friend? Sorry for long message btw. Again Thank you for replying :-)
HM10 and HC06 are two different Bluetooth types. HM10 is Bluetooth Low Energy 4.0 and HC06 is Bluetooth classic. So its understandable why they wont pair together. Kindly get another Bluetooth HM10 and it will most likely pair with the one you already have. Please dont forget to subscribe. Cheers!!
can you cross check your wiring? Did you use the voltage divider? also restart your serial monity once everything is setup. Kindly let me know if this works
Interesting video. Now I can make a door bell with a receiver that connects over Bluetooth 4.0. Thanks a lot for this.
Interesting application
yh yh.
Finally someone using a voltage divider on the rx pin!
I can tell you use a voltage divider on the rx pin too.
Welcome to the club brother. Cheers!!
Please don't forget to subscribe.
Can you tell me what difference it makes? Thanks in advance
Awesome video, thumps up.
Thank you! Cheers!
Nice one bro.🔥🙌
Thanks 🔥
This is super cool sir!!
Keep sharing more vids with us 😍
Thank you, I will
I like your video, clear and load. Learn a lot. Thanks for sharing.
Thanks fam. Much appreciated. Kindly don’t forget to subscribe
Hi very informative thank you very much ❤
Why is there such a delay between the button press and the LED actually lighting up ? I need a real time application with max 50ms...
Also, is the connection secure enough so no one disturbs the connection with a simple phone (I need to use this in a crowded environment to control a few relays at the distance for a live show so it would be a disaster if the communication breaks down in a middle of the show 😅)
Cheers😊
Thanks so much for the feedback.
The delay is partly due to the size and characteristics of the commands/data transmitted and received, also the functions and methods i used to process the commands/data isn't optimized for speed.
I wanted to keep things simple to enable more people to try what i was showing in the video.
For real-time use, you might have to look at perhaps a board like raspberry pico 2040.
awesome thanks for the helpful video :)
Glad you found it useful!
Please dont forget to subscribe! Cheers!!
Thank you alot! Great video!
You're welcome. I'm glad you found it useful.
Please don't forget to subscribe. Cheers!!
Comparison of hm10 to hc05? Which is the responsive?
I will take HM10 any day. Its just much smoother and responsive.
Very clear and useful
Glad you liked it. Happy new year fam.
Please dont forget to subscribe.
I'm curious to know if you can set up multiple slaves to one master and then the master to a main device and communicate data through or from all back to main. going to be testing this for sure. thank you for the code.
I have been wondering same fam. Not sure if its possible to connect multiple slave HM10's to one Master HM10 but i'd do well to let you know if i succeed.
Let me know if you try it out and the results. Cheers!!
Is it possible to measure the distance between two hm-10s while communicating with each other?
When you say measure the distance, do you mean by using some characteristics of the bluetooth radio waves ? or a tape measure?
very nice tutorial! - I have a question, would it be possible to setup a network with one receiver and many transmitter?
Thanks for the kind words.
I have been looking into implementing a network like the one you mentioned but i haven't had any luck so far. I will make a video when am successful and let you know.
Please dont forget to subscribe.
Really nice video ! Thanks. I connected 2 HC-10 to a usb-2-serial ports ports. They accept the AT commands (like AT_HELP) and respond with text etc to my port reading program. Now i want to send data.... Do i just go ahead and send data to the same ports and it will be received from one HC-10 to the other ? (so thats AT commands and data all go through the same Rx and Tx. I can't see how else)
Just so i understand your question. You want to send data from one module to the other!
To send data from one of the modules to the other, they must first connect to each other as i've demonstrated in the video. Second, you must now send data through the same channel you were sending the AT commands, for it to be delivered wirelessly to the other module.
I hope i've answered your question?
@@Delali thanks I'll have a go!
Hi! I love your video and i have been able to connect my HM-10 Bluetooth modules together thanks to you! However… when adding the code you provided, everything seems to stop working. So when I for example press the button, nothing in the serial monitor is written :( do you have a solution for this maybe?
Happy for an answer:)
Thanks for the kind words and for reaching out.
Kindly make sure your serial monitor baud rate match what you used in the code...If you used my code without changes, that should be 19200 and also set view to "Both NL & CR".
Have you tried using the LEDs to visualize the effects of pressing the button as I did in the video?
Kindly let me know if it doesn't work.
@@Delali Hi, thanks for the answer! Both the baud rate abd the set view is set to 19200 and "Both NL & CR". I even doubble checked so it should be connected correctly too... I followed every step in your video, but I still have the trouble with sending signals between the two BT-modules :(
thanks in advance! :)
AT-09 is identical to the HM-10, right?
Yes, the same chip set CC2540/CC2541 is used.
Nice!
Thank you! Cheers!
Hello, I'm trying to get two HM10 bluetooth modules to connect to each other for my senior year university project. I have followed the video although my circuit is slightly different. The bluetooth module can connect to the DSDTECHBluetooth app on my iPhone. However, when I turn off all nearby bluetooth devices, and disconnect the HM10 from the DSDTECHBluetooth app, I cannot run any AT commands in the Arduino serial monitor. I have tried several different configurations of the voltage divider, and still nothing. Is it possible that my wires are faulty? I'm not sure how the HM10 can connect to the DSDTECHBluetooth app, but AT commands do not work. Any help is appreciated, thank you!
Sorry i am just now seeing your message. I hope its not too late.
1. Yes, it is possible for jumper wires might be faulty. I have had such issues in the past. I sometimes verify the wires using a "continuity" check with a multimeter. If you dont have a multimeter, wire up a simple LED and then keep swaping out wires till you're sure they all work.
2. Your voltage divider ultimately needs to output 3.3v peak so it doesnt matter the resister combination you use, as long as the resister values are not super high and the voltage out to the HM10 RX is 3.3v you're good.
3. Make sure your arduino drivers are installed
4. Once everthing is connected, set your IDE to the correct Arduino Port and upload the Software Serial Sketch. Also make sure the Baud Rates in the Code is as i recommended.
5. Check the schematic i have provided to be sure your wiring is correct.
6. Restart your serial monitor. Make sure your Serial Monitor Baud rates are as recommended.
7. Type AT and press ENTER, It should work.
I hope this helps. Sorry for the late reply.
Why doesnt anything happen when I use the AT commands?
Its possible there might be a wiring issue, or you need to restart your serial monitor to re-establish the serial connection.
Hi, this video was very helpful. I am working on a final year University project and have an issue with the HM-10 module. I can see that it has been powered correctly, with the correct potential divider used to join the TX pin on the arduino (determined by the SoftwareSerial library) to thee RX pin on the HM-10. However, when I send an AT command, I receive nothing back. A research assistant at the University suggested using a pull-up resistor, and checking what might be happening between the pins using an oscilloscope. What might be the reasons why I am not receiving the "OK" shown in your video when sending the AT command? (I have also changed the serial monitor setting to 'Both NL & CR')
Kindly check the "about" page of this channel and send me a mail with your current wiring.
In the mean time if you have another set of HM-10, can you try those. could be that you have defective modules or they are communicating at a Baud thats not the default.
You solved this problem ? Unfortunately I have the same problem
Can it be also connected to mobile app?
Yes. To the best of my knowledge the HM10 can only connect to one device at a time. So if you connect it to your phone's Bluetooth, it cant connect to the master and vice versa
This is cool
Thanks buddy
Hello, Very informative and helpful video by the way, I am looking for your advice on connecting that same cc2541 HM-10 and Arduino Nano. I got Breadboard board power supply board , breadboard, 12v DC adapter and Nano. What would be the best way to connect the Nano and Bluetooth as I'm little bit aware of voltage shock between them. Please be kind to provide a best recommendation as I'm on a project doing a Robotic arm that powered with four servos which intended to feed food to disabled. Thank you and If you're not clear what I'm asking for, please reply down here and I'll be back immediately.
Hello Friend, thanks for getting in touch.
Your Arduino Nano wiring to the HM-10 remains the same as with the Uno but this time the 12v dc adaptors positive goes to Vin of the Nano(it supports 7-12v), ground goes to any of the ground pins of the Nano and then you can connect the Nano's 5v pin to the HM-10
@@Delali Hello thanks for replying, I'm using DC adapter to power all those servos as they require high amps and voltage. So this what I'm planning for, I use my breadboard power supply board that connected with DC adapter (12V/1.5A) and since it got two variations called 5v and 3.3v, I will power my Bluetooth to the 5v via positives power rails on breadboard and GND to negatives..next RXT,TXT pins on Bluetooth will connected to vice versa on Nano. So with Nano, I will power with USB as usual coz I'm still in test mode, I should try your recommendation later when all coding and testing stuff done. Is it okay, my friend? Sorry for long message btw. Again Thank you for replying :-)
Nice, thank you, hope it will work together with clones :-)
I believe it should work fine.
Please don't forget to subscribe. Cheers!!
My HM10 and HC06 are paired with my PC how ever they didn't connect, can you show me how to?
HM10 and HC06 are two different Bluetooth types.
HM10 is Bluetooth Low Energy 4.0 and HC06 is Bluetooth classic. So its understandable why they wont pair together.
Kindly get another Bluetooth HM10 and it will most likely pair with the one you already have.
Please dont forget to subscribe. Cheers!!
@@Delali No... I’m using them to pair with my PC not together .-.
Bruhh pls help can't get any ok on the serial...
can you cross check your wiring? Did you use the voltage divider? also restart your serial monity once everything is setup.
Kindly let me know if this works
Hi bro
Can you make a project by MH-10🙏
Sure fam. I would look into that.
Nice video. Can one HM-10 master be connected to two HM-10 slaves
I haven't tried two hm-10 slaves but as you've mentioned it now, I'd get an extra module and try it.
I will make a video if I'm successful.
@@Delali Thanks