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

Поділитися
Вставка
  • Опубліковано 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.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

  • @kwakueffa
    @kwakueffa 3 роки тому +2

    This is super cool sir!!
    Keep sharing more vids with us 😍

    • @Delali
      @Delali  3 роки тому

      Thank you, I will

  • @GHizmoHub
    @GHizmoHub 3 роки тому +3

    Nice one bro.🔥🙌

    • @Delali
      @Delali  3 роки тому

      Thanks 🔥

  • @dockchen
    @dockchen 3 роки тому +1

    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

  • @princebanini
    @princebanini 3 роки тому +7

    Interesting video. Now I can make a door bell with a receiver that connects over Bluetooth 4.0. Thanks a lot for this.

  • @LyndahA
    @LyndahA 3 роки тому +3

    Awesome video, thumps up.

    • @Delali
      @Delali  3 роки тому

      Thank you! Cheers!

  • @gustavskavacs9991
    @gustavskavacs9991 9 місяців тому

    Thank you alot! Great video!

    • @Delali
      @Delali  5 місяців тому

      You're welcome. I'm glad you found it useful.
      Please don't forget to subscribe. Cheers!!

  • @angry_moose94
    @angry_moose94 2 роки тому +3

    Finally someone using a voltage divider on the rx pin!

    • @Delali
      @Delali  2 роки тому +1

      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.

    • @gigahidjrikaaa
      @gigahidjrikaaa 2 роки тому +1

      Can you tell me what difference it makes? Thanks in advance

  • @MeesJonker
    @MeesJonker 3 роки тому +1

    Very clear and useful

    • @Delali
      @Delali  3 роки тому

      Glad you liked it. Happy new year fam.
      Please dont forget to subscribe.

  • @DarkMojoYT
    @DarkMojoYT Рік тому +2

    Nice!

    • @Delali
      @Delali  Рік тому

      Thank you! Cheers!

  • @MJLookout
    @MJLookout 3 роки тому +3

    This is cool

    • @Delali
      @Delali  3 роки тому +1

      Thanks buddy

  • @chihauccisoilconte4474
    @chihauccisoilconte4474 3 роки тому +1

    very nice tutorial! - I have a question, would it be possible to setup a network with one receiver and many transmitter?

    • @Delali
      @Delali  3 роки тому +1

      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.

  • @UltraSteaKME
    @UltraSteaKME Рік тому +2

    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.

  • @J4cker
    @J4cker 2 роки тому +1

    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!!

  • @jacobstuart6144
    @jacobstuart6144 5 місяців тому

    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!

  • @TheDemonking82
    @TheDemonking82 3 роки тому +1

    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!!

  • @JohnDoe-gh3gn
    @JohnDoe-gh3gn 3 місяці тому

    Why doesnt anything happen when I use the AT commands?

  • @michaelafernandes5299
    @michaelafernandes5299 2 роки тому +1

    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 роки тому +1

      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 роки тому +1

    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 :-)

  • @hatim9278
    @hatim9278 Рік тому +1

    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  Рік тому +1

      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 3 місяці тому

      You solved this problem ? Unfortunately I have the same problem

  • @kevinpeters1780
    @kevinpeters1780 Рік тому +1

    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  Рік тому +1

      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 Рік тому

      @@Delali thanks I'll have a go!

  • @user-kt4ij4jj1e
    @user-kt4ij4jj1e 2 роки тому +1

    Is it possible to measure the distance between two hm-10s while communicating with each other?

    • @Delali
      @Delali  2 роки тому

      When you say measure the distance, do you mean by using some characteristics of the bluetooth radio waves ? or a tape measure?

  • @lvladimirov
    @lvladimirov 2 роки тому +1

    AT-09 is identical to the HM-10, right?

    • @Delali
      @Delali  2 роки тому +1

      Yes, the same chip set CC2540/CC2541 is used.

  • @therak4094
    @therak4094 3 роки тому +1

    Hi bro
    Can you make a project by MH-10🙏

    • @Delali
      @Delali  3 роки тому

      Sure fam. I would look into that.

  • @dmhans22
    @dmhans22 10 місяців тому +1

    Comparison of hm10 to hc05? Which is the responsive?

    • @Delali
      @Delali  5 місяців тому

      I will take HM10 any day. Its just much smoother and responsive.

  • @olaoluwaraji2335
    @olaoluwaraji2335 2 роки тому +1

    Nice video. Can one HM-10 master be connected to two HM-10 slaves

    • @Delali
      @Delali  2 роки тому +1

      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 роки тому +1

    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

  • @imldukk
    @imldukk 3 роки тому

    My HM10 and HC06 are paired with my PC how ever they didn't connect, can you show me how to?

    • @Delali
      @Delali  3 роки тому

      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 3 роки тому

      @@Delali No... I’m using them to pair with my PC not together .-.