How to Connect Two Arduino Projects Together Using HM-10 BLE 4.0 | Bluetooth Low Energy cc2541 bc417
HTML-код
- Опубликовано: 26 сен 2020
- Today we would look at how to connect two HM-10 Bluetooth low energy modules together. This will enable wireless communication between two Arduino projects on two separate boards. 2022
HM Bluetooth modules use CSR or TI CC254x or cypress chips
cc2541 csr bc417 Arduino electronics | Texas Instruments cc2541f256
First Schematic Diagram: bit.ly/3096na0
Second Schematic Diagram: bit.ly/33XbBa6
HM_10_BT1 Code: bit.ly/3cBMqxy
HM_10_BT2 Code: bit.ly/3iaDh0e
--------------------------------------------------
Part Links (Affiliate)
AliExpress
HM10 BLE 4.0 Module: s.click.aliexp...
Arduino Uno: s.click.aliexp...
Breadboard: s.click.aliexp...
Push Button: s.click.aliexp...
Light Dependent Resistor(GL5516): s.click.aliexp...
LEDs: s.click.aliexp...
Resistor Pack: s.click.aliexp...
Amazon
HM10 BLE 4.0 module: amzn.to/39RgmWL
Arduino Uno: amzn.to/36PcYd9
Breadboard: amzn.to/3rrM2rL
--------------------------------------------------
----------------------------------------
Channel Gear and Equipment's (Affiliate)
Amazon : www.amazon.com...
AliExpress
~~~~ Multimeters ~~~~
UT61E Plus Multimeter
s.click.aliexp...
UT204 Plus Clamp Multimeter
s.click.aliexp...
~~~~ Lab Bench Power Supply ~~~~
RD6018W 60V 18A Bench Power Supply
s.click.aliexp...
~~~~ Oscilloscope ~~~~
DSO FNIRSI PRO Oscilloscope
s.click.aliexp...
~~~~ Soldering and Welding Kit ~~~~
KSGER T12 STM32 V3.1S Electric OLED Soldering Station
s.click.aliexp...
DH30 Max Portable Battery Spot Welder Kit
s.click.aliexp...
~~~~ Testers ~~~~
USB Adjustable Discharge Load
s.click.aliexp...
RD UM34C USB Tester
s.click.aliexp...
USB Tester with Current Voltage Indicator
s.click.aliexp...
Qualcomm QC2.0 & 3.0 | 5V / 9V / 12V / 15V / 20V Trigger
s.click.aliexp...
~~~~ Others Tools ~~~~
Xiaomi Mijia Screw Driver Kit
OLD Version s.click.aliexp...
NEW Version s.click.aliexp...
NEW Electric Version s.click.aliexp...
Non-slip Metal Scalpel Knife Set with 40 Blades
s.click.aliexp...
----------------------------------------
Hope you learned something new.
Don't forget to LIKE, SHARE and SUBSCRIBE Cheers!!!
Follow us @diydelali on Facebook, Twitter and Instagram
Channel Theme Song: Entire by Quincas Moreira
#ble #hm10 #arduino #cc2541 arduino bluetooth
arduino project
arduino
arduino programming
arduino tutorial
arduino projects for beginners
arduino projects
arduino uno
arduino uno projects
arduino programming for beginners Хобби
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
Nice one bro.🔥🙌
Thanks 🔥
I like your video, clear and load. Learn a lot. Thanks for sharing.
Thanks fam. Much appreciated. Kindly don’t forget to subscribe
This is super cool sir!!
Keep sharing more vids with us 😍
Thank you, I will
Awesome video, thumps up.
Thank you! Cheers!
Why doesnt anything happen when I use the AT commands?
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!
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.
Very clear and useful
Glad you liked it. Happy new year fam.
Please dont forget to subscribe.
Thank you alot! Great video!
You're welcome. I'm glad you found it useful.
Please don't forget to subscribe. Cheers!!
Bruhh pls help can't get any ok on the serial...
Nice!
Thank you! Cheers!
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!
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!!
This is cool
Thanks buddy
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.
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
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! :)
Comparison of hm10 to hc05? Which is the responsive?
I will take HM10 any day. Its just much smoother and responsive.
Nice, thank you, hope it will work together with clones :-)
I believe it should work fine.
Please don't forget to subscribe. Cheers!!
AT-09 is identical to the HM-10, right?
Yes, the same chip set CC2540/CC2541 is used.
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 .-.
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 :-)
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
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
Hi bro
Can you make a project by MH-10🙏
Sure fam. I would look into that.