How to Connect to Arduino Using Bluetooth || iPhone, Android, Windows and Mac Connectivity
ฝัง
- เผยแพร่เมื่อ 16 ก.ค. 2023
- DSD Tech HM-10 Module: (iPhone Compatible)
amzn.to/3D6tIwk
HC-06 Module: (Computer and Android Compatible)
amzn.to/44iw5Ir
Arduino Board with Bluetooth and Wi-Fi built-in:
amzn.to/3KcP4MD
Code and Wiring diagram shown in the video:
github.com/plemaster01/arduin...
Patreon if you'd like to become a super supporter of the channel!
/ lemastertech
If you have any trouble when setting up your Arduino with these Bluetooth modules let me know about it in the comments below! If you found this useful be sure to leave a like on the video and subscribe to the channel!
I believe Android and PC works with either module but I believe only the HM-10 is compatible with iOS devices! There is a ton more that we could do with Arduino and remote connections in the future, so let me know if you're interested!
Let me know what you'd like to see on the channel next, and thanks for watching! Goodluck with your projects and see you next time! - วิทยาศาสตร์และเทคโนโลยี
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.
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!!
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.
Hi thanks for watching and what do you mean by a bit pacey??
@@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.
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.
Hey you are super welcome Dylan! Thanks for watching and super glad it was useful for you :)
@@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!!
That’s awesome and exactly why I started the channel :) great job!!
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?
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!!!
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.
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!
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!
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!
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?
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
Hi, do you know if this will work with the bt22a16 16 relay switch board?
Hello I do not since I have not personally used one of those sorry!!
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
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!
Excellent..! Is there any video by you which can help me connect my R4Wifi UNO through Bluetooth to my Laptop?
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!
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.
Moi aussi, avez vous trouvé ?
Hi, the dsd tech module at least advertises that it works for both! I haven’t used an android but it should work!
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
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!
Shown connected on pc but suddenly showing not connected ..hc05 module
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
Hello! I connected the bluetooth and my laptop correctly, but it disconnects after a few seconds. Do you have a solution?
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!
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?
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!
@@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.
hi! when i try to work with the app the text is white and is empty. what should i do?
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!!
@@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
I tried using your code but it seems like the library doesn't exist
the software serial library?? it definitely does! try going to manage libraries and search and add it in your arduino IDE!
Amazing vid:)
Thank you so much! Thanks for watching :)
Mobile se only. No laptop.
It works for mobile and laptop
Too much blah blah blah.
Hi, I see that you joined TH-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 😂🫡