How to Connect to Arduino Using Bluetooth || iPhone, Android, Windows and Mac Connectivity

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

КОМЕНТАРІ • 79

  • @harryvoorhis9260
    @harryvoorhis9260 9 місяців тому +17

    Young man, i paused the video to like, sub and tell you I have not come across such a clear and deliberate explanation of ANYTHING really. I wish you taught taxes, law and investing.

    • @lemastertech
      @lemastertech  9 місяців тому +2

      Hey wow thank you for the super nice comment Mr. Harry Voorhis!!
      My advice for taxes is pay em, but no more than you have to. My advice for law is don’t break em, unless you’re sure you can get away with it. My advice for investing is the S&P 500 consistently beats even the top hedge fund managers so don’t over complicate it 😁😁 welcome to the channel, super glad you’re here!!

  • @michaelbreslin9116
    @michaelbreslin9116 8 місяців тому +3

    I am exploring connection to an ac180 power station and came across this. Not quite what I was looking for, but informative. A bit pacey. kerep going it's worth the effort.

    • @lemastertech
      @lemastertech  8 місяців тому

      Hi thanks for watching and what do you mean by a bit pacey??

    • @michaelbreslin9116
      @michaelbreslin9116 8 місяців тому

      @@lemastertech I should have said, a "bit pacey for me", I had to pause it a few times to assimilate the very good explainations. And I like that! I cut short on a lot of videos where people waffle on and on, and take ages to get to the point. Another positive here, is you are monitoring comments, and replying. It's odd how some youtubers at the end ask for comments and questions, and then ignore them. So all in all a good job. Thanks for the effort you put in.

  • @A_Random_Goose
    @A_Random_Goose 9 місяців тому +3

    I found that the DSD app didn't work but I did find one that does, Arduino Bluetooth Controller (HM-10), I'm using an HM-10 but your code works perfectly. I'm on android. Thank you so much for this information you have made my day, I've spent too long trying to do it myself and you have helped me learn what I'm doing.

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

      Hey you are super welcome Dylan! Thanks for watching and super glad it was useful for you :)

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

      @@lemastertech It's always nice to see a creator actually reply to a comment!!, thanks again, I've learned your code to branch off and make my own and learn how it works, thank toy so much!!

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

      That’s awesome and exactly why I started the channel :) great job!!

  • @whokilledjr3719
    @whokilledjr3719 2 місяці тому +1

    Straight to the point without all the unnecessary information, great

    • @lemastertech
      @lemastertech  2 місяці тому

      Thank you I’m glad you liked it!

  • @Nadie_Existe
    @Nadie_Existe 6 місяців тому +2

    just to say that this is the only video taking about this that has ever work for me, a million thanks!!!!!

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

      I’m super glad you found it useful and thanks so much for watching!!

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

    Hello there, thanks for posting this. It was very helpful in the end.... I tried following your example exactly but couldn't get BT connection over Windows 11.... just like HM-06 problems I've had previously... momentarily connects then spontaneously disconnects. So gave up on Windows...
    ... then tried DSD iPhone App. Again, no cigar initially.... until in desperation I swapped pins 3 and 4 from Arduino to HM-10 ... i.e. D4 to RX and D3 to TX on the HM-10 module and BINGO! Works just as you described.
    Strange. No-one else in the comments seems to have done the same as me... I even copied your code verbatim too. And I used your link to the DSD HM-10 to purchase some and an old vanilla Arduino Nano (i.e. NOT 3.3V logic) I had lying around. Anyways, comms and me never get along first time. Cheers!

  • @MilotMorina-t7u
    @MilotMorina-t7u Рік тому +2

    Great Insight! I want to ask how do we "communicate" with a more complex arduino system. I have developed a Smart Garden System with a Light Dependant Resistor, Moisture ,Temperature and Humidity Sensors. The water pump and LED light turn on based on the threshold of these sensors. Now i want to be able to connect these sensors to my iphone via BT or WiFi. How would you attack this problem? Do I need to develop a custom app for this? Or can i just send "values" like you did in the video for each and every sensor like you did in this video? Again, Thank you for the amazing video!

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

      Hi! This is probably a good time to get the IoT model of the arduino, it comes with wifi and Bluetooth connectivity intrinsically built it! Honestly even a raspberry pi which isn't super expensive is much more of an actual computer capable of hosting more advanced communication back and forth! Its not that you can't do it with the simpler boards its just a lot harder!

  • @maclarkson
    @maclarkson 29 днів тому +1

    This is a really awesome video, great work. would you be able to demonstrate how to create the simplest iPhone app to control the LEDs on an off. I am trying to create a cocktail maker where anyone can download the app and use my cocktail make through my app and blue tooth.

    • @lemastertech
      @lemastertech  28 днів тому

      Thank you for watching and the nice comment!! I would like to do more app development and link it to hardware in the future so I’ll take that idea down :)

  • @ЕдгарІвашко
    @ЕдгарІвашко Рік тому +2

    Hi.
    Thanks you for this video.
    If you could give me some answer : can i use hc-10 to connect rc car with iphone and then control this rs car using dualshock that was connected to the iphone?

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

      Hi, you could use this module but there are probably faster and more responsive modules for that! I know there’s lots of instructional content around Bluetooth arduino RC cars online!

    • @ЕдгарІвашко
      @ЕдгарІвашко Рік тому

      @@lemastertech thanks!!!

  • @DavidChauca-e4x
    @DavidChauca-e4x Місяць тому +1

    Hey very insightful video. I build the components and the sketch seems to work properly. I am trying to connect with an Iphone device. But the app doesn't seem to ever find the Arduino to connect. Any suggestions or advice on what to do?

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

      These Bluetooth devices are pretty cheap so it’s possible you just need to try another module but if it’s working from a pc but not an iPhone that’s usually a sign something is up with the iPhone settings like Bluetooth not on or the app not granted access to Bluetooth devices

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

    Thanks for this! Searched in vain for clear instructions to connect via windows. I'd love to see a followup for making an app that controls the device
    I'm having an issue where the device immediately disconnects though. Maybe a range issue? It's only 2 ft away, but going through a table.

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

      That’s an awesome idea I could for sure build a gui or something Pc based to control the arduino project!
      And I’d suggest having your PC forget the device completely, this super simple little modules have a lot of opportunity for their remembered configuration to get corrupted but it should be easy enough to forget it and re-add it!

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

    This video is really good. My only ask is that you could make a similar video but focused on the Arduino Nano 33 BLE. I just don’t know how I would list the digital pins as the Bluetooth module is built in. Thanks!

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

      Hi I don’t think I have a nano 33 BLE with built in Bluetooth but I’ll look the module up and maybe I can make another if I get one!

    • @editempireedits
      @editempireedits 4 місяці тому

      @@lemastertech That would be lifesaving

  • @MukeshPatel-tw5ge
    @MukeshPatel-tw5ge 5 місяців тому +1

    Very nice and clear video. However my goal is to upload a sketch to arduino wirelessly from IDE running on mac. Do you have example for that ? I don't want to run any app on smartphone to communicate to arduino via bluetooth. Thanks

    • @lemastertech
      @lemastertech  3 місяці тому

      A Mac can communicate to an arduino Bluetooth module directly and so if you use software serial or the tx and rx pins on your board to map it, you can reprogram it easily like that!

  • @msg1956
    @msg1956 8 місяців тому +1

    Excellent..! Is there any video by you which can help me connect my R4Wifi UNO through Bluetooth to my Laptop?

    • @lemastertech
      @lemastertech  8 місяців тому

      Thanks for watching, I’d start with this article which can take you step by step docs.arduino.cc/tutorials/uno-r4-wifi/r4-wifi-getting-started/
      I haven’t done a video on this myself!

  • @bob-zb3ed
    @bob-zb3ed 10 місяців тому +1

    Is there a way I can send a string, or a char[len] = "Hello, World" using just arduino, or do I need to interface using python serial or something

    • @lemastertech
      @lemastertech  10 місяців тому

      Hi yes you can send a string! In the latest video on my channel I used a voice recognition module via soft serial connection just like the Bluetooth module and that one encodes a string as the main payload! Hopefully that can help you out some, but it’s super doable to deliver a string as the message!

  • @FHMI10
    @FHMI10 6 місяців тому +1

    I was wondering if I can send GPS Coordinate using the DSD Tech Bluetooth app?

    • @lemastertech
      @lemastertech  5 місяців тому +1

      Hi you probably can but that seems a little more advanced than this little 6 dollar Bluetooth module is really meant for but I don’t see why it wouldn’t work! Just seems pretty intense haha depending on speed and accuracy you need!

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

    Hi, thanks for the video! I had a bit of trouble connecting the Arduino Due to the HC-05. It connects both in AT mode (38400baud) and in Bluetooth data transmission (9600baud as default) but the data received is always corrupted and I can't view the messages correctly (I always get "strange" char). What could be the cause?

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

      Hi, I have not had this specific issue before I’m sorry! Can you simplify your messaging to just send a 1 or 0 for a little and verify that works with a simple LED or something? If that works then just add one thing at a time til you figure out what breaks it! And if that doesn’t work somethings off in the connection

  • @octaviantega5600
    @octaviantega5600 2 місяці тому +1

    Hello brother am from. Tanzania I was kindly asking if you could make a tutorial of how to switch on lights using an iphone with MIT app inventor,Arduino nano and HM -10 Bluetooth module

    • @lemastertech
      @lemastertech  2 місяці тому +1

      Hello! I will add that to my list of ideas and see if I can get to it soon!

    • @octaviantega5600
      @octaviantega5600 2 місяці тому

      @@lemastertech God bless you brother

  • @muhammadsajidbashir
    @muhammadsajidbashir 3 місяці тому +1

    can i use Arduino pro micro with Bluetooth module to work as mouse with i phone or not?

    • @lemastertech
      @lemastertech  3 місяці тому

      That’s interesting! I’m not sure I haven’t tried anything like that myself!

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

    Hi, do you know if this will work with the bt22a16 16 relay switch board?

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

      Hello I do not since I have not personally used one of those sorry!!

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

    Shown connected on pc but suddenly showing not connected ..hc05 module

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

      Hi, I’ve had this problem too, try forgetting the device from your computers Bluetooth remembered devices and take it from there! Starting from the beginning of the connection process again

  • @frediricaurte
    @frediricaurte 8 місяців тому +1

    Please i saw the video and the explanation but cant get if there is a bluetooth device which can be connected to IOs and android, i would need both in one, thank you.

    • @oasis797
      @oasis797 8 місяців тому

      Moi aussi, avez vous trouvé ?

    • @lemastertech
      @lemastertech  8 місяців тому

      Hi, the dsd tech module at least advertises that it works for both! I haven’t used an android but it should work!

  • @stanleyjiang2244
    @stanleyjiang2244 7 місяців тому +1

    Hello! I connected the bluetooth and my laptop correctly, but it disconnects after a few seconds. Do you have a solution?

    • @lemastertech
      @lemastertech  7 місяців тому

      Hi I had a similar issue when I first connected to this module as well and I told my PC to forget the module and then re-added it and that seemed to work, these really cheap modules do sometimes drop out and need to get added back!

  • @andrazstrezek1113
    @andrazstrezek1113 6 місяців тому +1

    hello, I would like to upload a completely different code to my Arduino via Bluetooth how would I do that?

    • @lemastertech
      @lemastertech  6 місяців тому

      I believe you will need to use D0 and D1 which are the transmit and receive pins of the arduino!

    • @andrazstrezek1113
      @andrazstrezek1113 6 місяців тому

      @@lemastertechcan i do that trough the IOS app that you suggested?

    • @lemastertech
      @lemastertech  6 місяців тому

      No you wouldn’t be able to completely change the programmed brains of the arduino through those lightweight modules you’d still need the arduino IDE! But it can connect via Bluetooth serial connections!

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

    hi! when i try to work with the app the text is white and is empty. what should i do?

    • @lemastertech
      @lemastertech  10 місяців тому

      Hi this is a weird one! Make sure your Bluetooth is on with your device and make sure the red light is blinking on your arduino - if the app lets you detect the module and connect to it you should be all good!!

    • @JoelF-nl7ct
      @JoelF-nl7ct 7 місяців тому

      @@lemastertech I have the same issue, Wiring and code is exactly the same as your GitHub one and my iPhone is definitely connected as the red light is solid and shows up in the DSD app is connected but when I try and send a command through such as a "1"or "2" it doesn't show up, same with serial monitor in Arduino IDE. I believe it is because I don't have a genuine DSD board as when comparing your board with mine they are extremely similar but not the same

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

    Hi LeMaster, great video! I try to replicate with my Arduino UNO, HC-05 and Windows 11 Home, and can't achieve it. My code is same as yours, so won't paste here. The HC-05 is seen by Windows. But I notice that the red light on the HC-05 is never continuously on. Instead, it blinks every 2 seconds or so. I tried to connect the HC-05 VCC to both 3.3V or 5V, same result. Anything you can think of I might be doing wrong?

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

      Hi Daniel - I know this is an annoying suggestion but I had to have my computer forget the device then re-add it a couple times before mine connected properly the first time! I would try that a few times with the other steps in this video before moving on because sometimes with these cheap electronic components windows needs a couple chances to communicate with them properly! Goodluck!

    • @christopherlamus5144
      @christopherlamus5144 11 місяців тому

      @@lemastertech @danielroy2932 I had the same issue. The hc-05 works differently I believe. It blinks every 2 seconds or so when it is connected(mine does the same and connects perfectly). Also it is incompatible for ios devices. I got it working fine with my windows laptop.

  • @michelmilaneh8963
    @michelmilaneh8963 10 місяців тому

    when I enter the device manager I can't see the Bluetooth module connected and when I try to connect it by settings I only see it as paired , and it's not appearing in the tools bar in Arduino ide

    • @lemastertech
      @lemastertech  10 місяців тому

      So is the red blinking light on the module going solid when you connect though? If not it’s not seeing anything connect. If it does go solid check the com ports and something should definitely show up if it’s connected to your PC!

  • @RobertHajdu-u5g
    @RobertHajdu-u5g 3 місяці тому

    Informative video. I do have an issue however. When I pair the BT module in Windows 11, after a successful pairing it disconnects. So far I couldn't solve this issue. I have a suspicion that this might be related to the energy saving settings in win11 but I couldn't verify that yet. I will try it with a win10 laptop. But if you ever faced this issue and you have a solution, I am all ears... :)

    • @RobertHajdu-u5g
      @RobertHajdu-u5g 3 місяці тому +1

      Reading the answers below. I tried to forget the module and reconnected many times - same result. I actually did it with 3 different modules, 2 different type - same. I can't believe that all the modules I own faulty.

    • @lemastertech
      @lemastertech  3 місяці тому

      I’m sorry to hear that and I had some disconnect and reconnect issues too, I think these modules are so cheap and mass produced they honestly do have a pretty high failure rate and windows will “soft disconnect” from modules where it still registers as connected but stops transferring data! I haven’t really found a great solution other than upgrading to an arduino board with onboard Bluetooth which is quite a bit more reliable generally

  • @piersoncai1970
    @piersoncai1970 10 місяців тому

    I tried using your code but it seems like the library doesn't exist

    • @lemastertech
      @lemastertech  10 місяців тому

      the software serial library?? it definitely does! try going to manage libraries and search and add it in your arduino IDE!

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

    Amazing vid:)

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

      Thank you so much! Thanks for watching :)

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

    Mobile se only. No laptop.

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

    Too much blah blah blah.

    • @lemastertech
      @lemastertech  9 місяців тому +4

      Hi, I see that you joined UA-cam 2 weeks ago, have no videos, no subscribers, and your name appears to be Joob, so I hope you’ll forgive me if I trust the 100+ likes and thousands of views on this video more than one losers negative comment 😂🫡

  • @LukeDoesMods
    @LukeDoesMods 2 місяці тому +1

    Can you do an Arduino Uno board and a Arduino Bluetooth Module AT 09 CC2541

    • @lemastertech
      @lemastertech  2 місяці тому

      I’ll add it to my future videos idea list!

    • @LukeDoesMods
      @LukeDoesMods 2 місяці тому

      @@lemastertech thanks.