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

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 66

  • @princebanini
    @princebanini 4 роки тому +8

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

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

    Finally someone using a voltage divider on the rx pin!

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

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

    Awesome video, thumps up.

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

      Thank you! Cheers!

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

    Nice one bro.🔥🙌

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

      Thanks 🔥

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

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

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

      Thank you, I will

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

    I like your video, clear and load. Learn a lot. Thanks for sharing.

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

      Thanks fam. Much appreciated. Kindly don’t forget to subscribe

  • @UltraSteaKME
    @UltraSteaKME 2 роки тому +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  2 роки тому

      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.

  • @noneofthatmate
    @noneofthatmate Місяць тому +1

    awesome thanks for the helpful video :)

    • @Delali
      @Delali  Місяць тому

      Glad you found it useful!
      Please dont forget to subscribe! Cheers!!

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

    Thank you alot! Great video!

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

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

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

    Comparison of hm10 to hc05? Which is the responsive?

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

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

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

    Very clear and useful

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

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

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

  • @윤-z2s
    @윤-z2s 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?

  • @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.

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

  • @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! :)

  • @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.

  • @DarkMojoYT
    @DarkMojoYT 2 роки тому +2

    Nice!

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

      Thank you! Cheers!

  • @jacobstuart6144
    @jacobstuart6144 9 місяців тому +1

    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!

    • @Delali
      @Delali  Місяць тому

      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.

  • @JohnDoe-gh3gn
    @JohnDoe-gh3gn 8 місяців тому +1

    Why doesnt anything happen when I use the AT commands?

    • @Delali
      @Delali  Місяць тому

      Its possible there might be a wiring issue, or you need to restart your serial monitor to re-establish the serial connection.

  • @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 8 місяців тому

      You solved this problem ? Unfortunately I have the same problem

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

    Can it be also connected to mobile app?

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

      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

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

    This is cool

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

      Thanks buddy

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

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

  • @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 .-.

  • @chessify_official
    @chessify_official 4 місяці тому +1

    Bruhh pls help can't get any ok on the serial...

    • @Delali
      @Delali  Місяць тому

      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

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

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

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

      Sure fam. I would look into that.

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

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

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

      @@Delali Thanks