Тёмный

Arduino Bluetooth HC 06 + AT Command Set: A Comprehensive Guide: 4th Edition 

TopherTMG
Подписаться 188
Просмотров 25 тыс.
50% 1

This is a comprehensive guide on how to get your Arduino projects to work with a Bluetooth HC-06, including accessing the AT command set.
TIMELINE
00:00 Introduction
00:21 No need to use EN pin to get to AT command set like on the HC-05
00:58 Wiring 1
02:36 Need for Voltage Divider
04:14 Resistors
05:15 Wiring 2 - Wiring the Voltage Divider
06:48 Sending AT commands
08:24 Terminal settings
09:15 Supported AT commands
09:39 Some differences to note between this (HC-06) and the HC-05
10:12 Apple iPhone not
10:53 Default name & password
11:09 Connect a laptop to Arduino through Bluetooth
11:45 Code
14:00 Pairing to laptop
15:25 Identifying COM ports
15:46 Demo
17:20 Another code example - Turn LED off and on remotely
17:39 Software review
18:45 Demo
19:16 SoftwareSerial.h: Get off standard Arduino UART/Serial pins 0, 1
and move to Digital PINs!
19:42 Software
23:21 Demo
23:49 Notes: Additional reasons why SoftwareSerial.h is great!
25:02 Compatibility WARNING!
26:03 Conclusion

Наука

Опубликовано:

 

25 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@chiranjeevshubham690
@chiranjeevshubham690 2 года назад
At 8:14 , we should connect back "TX-TX" and "RX-RX" while sending the AT commands to the HC-06 module. Note : We should always send an empty code (the default code of a new project) to the Arduino before sending the AT commands to the HC-06 module. While uploading any code to the Arduino, we should always disconnect TX & RX pin of HC-06 from the Arduino board. Point to be noted : * For sending AT commands, Connect--------"TX-TX" & "RX-RX" * During working of the circuit, Connect--------"TX-RX" &. "RX-TX" * During uploading the code, Disconnect----------"TX" & "RX"
@mk-tp7wb
@mk-tp7wb Год назад
In the beginning showing on a piece of paper how voltage divider is applied for RX is great.Amazing job!
@tophertmg
@tophertmg Год назад
Thanks. I run on positive feedback.
@johnheienickle4253
@johnheienickle4253 3 года назад
You hit the mark on this training, good job.
@tophertmg
@tophertmg 3 года назад
Thanks! I always appreciate a person taking the time to say so.
@Enfluidity
@Enfluidity 3 года назад
Thank you, this was very instructive :)
@mk-tp7wb
@mk-tp7wb Год назад
great job! I found answers to mt questions! Thank you! +1 Subscriber
@dportz91
@dportz91 2 месяца назад
This video is awesome, you're awesome. Thank you so much!!
@tophertmg
@tophertmg 2 месяца назад
Awww shucks. Thanks for taking the time to say so. There are a couple of wonky bits in the video but hopefully it will get you over any major hurdles.
@hariharanramamurthy9946
@hariharanramamurthy9946 3 года назад
sir I am using plc2303 but not getting any response for AT commands
@larsnergard
@larsnergard 2 года назад
Can you please add the code you used at the end of the video?
@LucianoVeneziano
@LucianoVeneziano 2 года назад
I have HC-05 without push button... How I can do?
@tophertmg
@tophertmg 3 года назад
NOTES ON VIDEO BELOW NOTE 1: THIS VIDEO IS NOT FOR THE HC-05. This is for the HC-06. They are significantly different. NOTE 2: There are a couple of spots in the video where I'm clearly befuddled with why they silkscreen arduino ports, TX > [pin1] = receive and RX < [pin0] = transmit. I personally believe the receive pin should be labeled RX and the transmit pin should be labeled TX. But apparently that's crazy talk. :-) NOTE 3: At 8:14 make sure to plug Bluetooth back into ports 0 & 1 NOTE 4: Make sure Receive and Transmit are cabled up correctly after you upload blank Sketch. The silk screen on some Arduino devices can be confusing, being the pin that RECEIVES is actually labeled TX with arrow pointing IN and the pin that TRANSMITS is labeled RX with arrow pointing OUT. (See graphic here. Notice the two modes if you will ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-is3EaCSnJyo.html) NOTE 5: Make sure you are dropping the TRANSMIT voltage from the Arduino to 3.3V using the VOLTAGE DIVIDER (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-is3EaCSnJyo.html) NOTE 6: In Arduino serial monitor make sure you have the correct speed and line settings ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-is3EaCSnJyo.html )
@esteban19h08m
@esteban19h08m 3 года назад
i was wondering why the hell there were a lot of changing lights and stuff and no messages at the com of arduino IDE, thank you so much sir
@chiranjeevshubham690
@chiranjeevshubham690 2 года назад
What if we connect directly the 3.3V pin of Arduino board to the HC-06 module , instead of connecting the voltage-divider to get the desired 3.3V ? Will it work ?
@tophertmg
@tophertmg Год назад
It's touch and go. Sometimes it works for a little bit, but in my experience, it was very unstable, if it worked at all.
@mohamednouayti583
@mohamednouayti583 7 месяцев назад
Lire les données d’un appareil Bluetooth et transférez-les vers le cloud, et vice versa. ??
@michaelodonnell4467
@michaelodonnell4467 2 года назад
Thankyou, worked as you stated, wish I could get the HC-05 to work. I think the board has a fault. It works but won't respond to me. Thankyou again
@tophertmg
@tophertmg 2 года назад
Yeah the HC-05 is a bit of a different animal. Other than being and acting a little different, I think the hardest thing is to make the voltage divider (in video at 2:40). Best of luck.
@hexafamily7491
@hexafamily7491 3 года назад
Excellent work, sadly not for me. The thing is I tried a lot to get into AT mode but no luck so far, and I'm out of videos in YT now xD
@neonnnXD
@neonnnXD 2 года назад
same here man
@-ME-Hamza
@-ME-Hamza Год назад
same
@michaelonskis
@michaelonskis 3 года назад
When opening the COM serial monitor after uploading the empty sketch via USB cable, i type "AT" and the port does not return "OK". Got any thoughts on why it might not be working? Thanks
@nuraqasrawi6014
@nuraqasrawi6014 3 года назад
Im having the same problem , please if you solved it could you tell me how
@michaelonskis
@michaelonskis 3 года назад
@@nuraqasrawi6014 haven’t figured it out, nobody in my class has. I’ve pretty much given up on uploading via Bluetooth
@ljrahn5619
@ljrahn5619 3 года назад
same problem. been pulling my hair for a while
@NiknetSystem
@NiknetSystem 3 года назад
I have the same problem. The module does not respond to AT commands.
@Polarisphreak2009
@Polarisphreak2009 3 года назад
@@tophertmg Hello I am running your script and I cant seem to have it display via bluetooth on the putty window , if i type anything in the serial monitor top bar it shows up on the putty window but the heartbeat Arduino says hi will not show up. appreciate some advice thanks
@mohamednouayti583
@mohamednouayti583 7 месяцев назад
SVP, comment faire une liaison entre le cloud et une Arduino UNO par Bluetooth
@tophertmg
@tophertmg 7 месяцев назад
Ce serait une autre vidéo utilisant des techniques totalement différentes, mon ami.
@cipriandebrasov1979
@cipriandebrasov1979 2 года назад
IN SFARSIT UN COMENTARIU SI FILMARE OK , AM INTELES TOT
@tophertmg
@tophertmg 4 месяца назад
Très bien. Très bien. Je suis content d'avoir pu aider quelqu'un.
Далее
You can learn Arduino in 15 minutes.
16:34
Просмотров 9 млн
I built my own computer. by hand.
13:03
Просмотров 1,1 млн
Sensors - which one to use
17:06
Просмотров 1,3 млн
Prices & Poco M4 Pro 5G
1:00
Просмотров 272 тыс.