How to Connect Two Arduino Projects Together Using HM-10 BLE 4.0 | Bluetooth Low Energy cc2541 bc417

  Переглядів 23,815

Delali

Delali

3 роки тому

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.aliexpress.com/e/_DmY...
Arduino Uno: s.click.aliexpress.com/e/_Dmc...
Breadboard: s.click.aliexpress.com/e/_AZEKAf
Push Button: s.click.aliexpress.com/e/_DkQ...
Light Dependent Resistor(GL5516): s.click.aliexpress.com/e/_97uUs7
LEDs: s.click.aliexpress.com/e/_9QFJA3
Resistor Pack: s.click.aliexpress.com/e/_AnV50n
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/shop/nerdbishop
AliExpress
~~~~ Multimeters ~~~~
UT61E Plus Multimeter
s.click.aliexpress.com/e/_AK3GEo
UT204 Plus Clamp Multimeter
s.click.aliexpress.com/e/_9ihxKq
~~~~ Lab Bench Power Supply ~~~~
RD6018W 60V 18A Bench Power Supply
s.click.aliexpress.com/e/_Act4hO
~~~~ Oscilloscope ~~~~
DSO FNIRSI PRO Oscilloscope
s.click.aliexpress.com/e/_ATrDZM
~~~~ Soldering and Welding Kit ~~~~
KSGER T12 STM32 V3.1S Electric OLED Soldering Station
s.click.aliexpress.com/e/_AFoQjw
DH30 Portable Battery Spot Welder Kit
s.click.aliexpress.com/e/_A0BPSl
~~~~ Testers ~~~~
USB Adjustable Discharge Load
s.click.aliexpress.com/e/_9HFFwe
RD UM34C USB Tester
s.click.aliexpress.com/e/_9H0yI0
USB Tester with Current Voltage Indicator
s.click.aliexpress.com/e/_9frmaK
Qualcomm - QC2.0 & 3.0 9V / 12V / 20V Trip Simulator
s.click.aliexpress.com/e/_ANg1iG
~~~~ Others Tools ~~~~
Xiaomi Mijia Screw Driver Kit
s.click.aliexpress.com/e/_AeEkhC
Non-slip Metal Scalpel Knife Set with 40 Blades
s.click.aliexpress.com/e/_AmSdJe
----------------------------------------
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

КОМЕНТАРІ: 60
@JohnDoe-gh3gn
@JohnDoe-gh3gn День тому
Why doesnt anything happen when I use the AT commands?
@dockchen
@dockchen 3 роки тому
I like your video, clear and load. Learn a lot. Thanks for sharing.
@Delali
@Delali 3 роки тому
Thanks fam. Much appreciated. Kindly don’t forget to subscribe
@kwakueffa
@kwakueffa 3 роки тому
This is super cool sir!! Keep sharing more vids with us 😍
@Delali
@Delali 3 роки тому
Thank you, I will
@princebanini
@princebanini 3 роки тому
Interesting video. Now I can make a door bell with a receiver that connects over Bluetooth 4.0. Thanks a lot for this.
@calebcadainoo
@calebcadainoo 3 роки тому
Interesting application
@Delali
@Delali 3 роки тому
yh yh.
@GHizmoHub
@GHizmoHub 3 роки тому
Nice one bro.🔥🙌
@Delali
@Delali 3 роки тому
Thanks 🔥
@LyndahA
@LyndahA 3 роки тому
Awesome video, thumps up.
@Delali
@Delali 3 роки тому
Thank you! Cheers!
@angry_moose94
@angry_moose94 2 роки тому
Finally someone using a voltage divider on the rx pin!
@Delali
@Delali 2 роки тому
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.
@gigahidjrika459
@gigahidjrika459 2 роки тому
Can you tell me what difference it makes? Thanks in advance
@gustavskavacs9991
@gustavskavacs9991 6 місяців тому
Thank you alot! Great video!
@Delali
@Delali Місяць тому
You're welcome. I'm glad you found it useful. Please don't forget to subscribe. Cheers!!
@MeesJonker
@MeesJonker 3 роки тому
Very clear and useful
@Delali
@Delali 3 роки тому
Glad you liked it. Happy new year fam. Please dont forget to subscribe.
@jacobstuart6144
@jacobstuart6144 Місяць тому
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!
@chihauccisoilconte4474
@chihauccisoilconte4474 3 роки тому
very nice tutorial! - I have a question, would it be possible to setup a network with one receiver and many transmitter?
@Delali
@Delali 3 роки тому
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.
@TheDemonking82
@TheDemonking82 3 роки тому
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.
@Delali
@Delali 3 роки тому
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!!
@UltraSteaKME
@UltraSteaKME Рік тому
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😊
@Delali
@Delali Рік тому
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.
@kevinpeters1780
@kevinpeters1780 Рік тому
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)
@Delali
@Delali 11 місяців тому
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?
@kevinpeters1780
@kevinpeters1780 11 місяців тому
@@Delali thanks I'll have a go!
@DarkMojoYT
@DarkMojoYT Рік тому
Nice!
@Delali
@Delali Рік тому
Thank you! Cheers!
@MJLookout
@MJLookout 3 роки тому
This is cool
@Delali
@Delali 3 роки тому
Thanks buddy
@hatim9278
@hatim9278 Рік тому
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')
@Delali
@Delali 11 місяців тому
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.
@mariuszdziaowy4163
@mariuszdziaowy4163 12 днів тому
You solved this problem ? Unfortunately I have the same problem
@michaelafernandes5299
@michaelafernandes5299 2 роки тому
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:)
@Delali
@Delali 2 роки тому
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.
@michaelafernandes5299
@michaelafernandes5299 2 роки тому
@@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! :)
@ptv670
@ptv670 3 роки тому
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.
@Delali
@Delali 3 роки тому
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
@ptv670
@ptv670 3 роки тому
@@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 :-)
@user-kt4ij4jj1e
@user-kt4ij4jj1e Рік тому
Is it possible to measure the distance between two hm-10s while communicating with each other?
@Delali
@Delali Рік тому
When you say measure the distance, do you mean by using some characteristics of the bluetooth radio waves ? or a tape measure?
@J4cker
@J4cker 2 роки тому
Nice, thank you, hope it will work together with clones :-)
@Delali
@Delali 2 роки тому
I believe it should work fine. Please don't forget to subscribe. Cheers!!
@therak4094
@therak4094 3 роки тому
Hi bro Can you make a project by MH-10🙏
@Delali
@Delali 3 роки тому
Sure fam. I would look into that.
@lvladimirov
@lvladimirov 2 роки тому
AT-09 is identical to the HM-10, right?
@Delali
@Delali 2 роки тому
Yes, the same chip set CC2540/CC2541 is used.
@imldukk
@imldukk 2 роки тому
My HM10 and HC06 are paired with my PC how ever they didn't connect, can you show me how to?
@Delali
@Delali 2 роки тому
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!!
@imldukk
@imldukk 2 роки тому
@@Delali No... I’m using them to pair with my PC not together .-.
@dmhans22
@dmhans22 6 місяців тому
Comparison of hm10 to hc05? Which is the responsive?
@Delali
@Delali Місяць тому
I will take HM10 any day. Its just much smoother and responsive.
@olaoluwaraji2335
@olaoluwaraji2335 2 роки тому
Nice video. Can one HM-10 master be connected to two HM-10 slaves
@Delali
@Delali 2 роки тому
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.
@olaoluwaraji2335
@olaoluwaraji2335 2 роки тому
@@Delali Thanks
@ren222
@ren222 2 роки тому
Can it be also connected to mobile app?
@Delali
@Delali 2 роки тому
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
HM10 BLE BLUETOOTH Module Part 1 -AT Commands on Original HM10
12:43
Saravanan AL
Переглядів 27 тис.
DIY Vertical Garden
01:00
Totally Handy Shorts
Переглядів 9 млн
Stylish cement speakers created by a master!
00:44
Kree Creates
Переглядів 8 млн
Гражданская оборона 2024 - 12 полный выпуск
1:00:39
Телеканал ICTV
Переглядів 381 тис.
BLE with ESP32 tutorial part 1: the Server
25:23
MoThunderz
Переглядів 62 тис.
#196 Two-Way Bluetooth Serial Comms for Arduino and other µControllers
28:33
HM-10 BLE Android App using HM10 & AI2 only.  NO ARDUINO
12:34
Tom Donnelly
Переглядів 27 тис.
Bluetooth 4.0 BLE Подключение и настройка
7:52
Iarduino - Arduino, ESP, raspberry
Переглядів 33 тис.
Bluetooth 2.0 VS Bluetooth 4.0 (BLE) || Is an Upgrade worth it?
7:54
GreatScott!
Переглядів 594 тис.
Arduino Uno to ATmega328 - Shrinking your Arduino Projects
37:17
DroneBot Workshop
Переглядів 763 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 309 тис.
HM-10 BLE Bluetooth Serial Communication.
4:21
Tanjot P
Переглядів 32 тис.
STM32 Communication using Bluetooth Modules || HC-05
16:21
ControllersTech
Переглядів 7 тис.
Малышка Поняла, что Её Папа Ушёл... 💔
0:31
Глеб Рандалайнен
Переглядів 5 млн
Немцы отмечают Наурыз🇰🇿
0:44
SAU BOL
Переглядів 1,9 млн
Think of stray animals 😔
0:35
Ben Meryem
Переглядів 79 млн
Process of making luxury tableware. A Japanese tinware factory with a 1300-year legacy.
1:00
Кофейные коты один-в-один как живые
0:10
Короче, новости
Переглядів 1,8 млн
Миллиардер показал свою жизнь😱
0:52
Хаска
Переглядів 2,5 млн