How to program the HC-06 Bluetooth module

preview_player
Показать описание
This video will describe how to configure the HC-06 Bluetooth module using a USB to serial (TTL) cable together with a Serial Terminal program.
Free software such as TeraTerm or Putty can be used. Simple AT commands are then used to configure the module to match your project interface.

HC-05 Data Link:

USB to serial (TTL Uart) cable:

USB to serial (TTL) FTDI module can also be used:

AT commands:
Рекомендации по теме
Комментарии
Автор

You have the BEST video for this task on the Internet, especially your solution for the "Timing Problem" by using cut and paste!!! I have struggled for more than two days to program my HC-06 and your video made my day!! Without it, I don't think I would notice and solve this problem on my own. Thank you!

WeiminShen
Автор

argh! even typing AT I am not fast enough but if I cut/paste, I get OK... this has been driving me mad all day... coms on the default setting worked but I had no AT session - don't like default settings so I had to change... I can now - cheers dude

captainboing
Автор

Thank you for the effort and time you put into this video!

TheCreston
Автор

Excellent video. It worked for me. I used a CP2102 USB to Serial 3.3V converter and it worked nicely.

taraalma
Автор

I am not able to write type anything on the terra term screen. Not even a single letter. Right clicking does not respond for pasting anything. I want to configure HC-06 based DSD TECH B30 RS 232 to BT serial converter. I am using CH340 USB to serial cable to connect with laptop windows 11

dhirendrasingh
Автор

great video dude! short, sweet, simple. I subscribed specifically because you didn't ask me to. Real

ronboprime
Автор

there's another gotcha with the AT commands that's not really documented: they DON'T end in any kind of line terminator. if you send, for example, "AT+VERSION\n" with the newline within the timeout window it will not accept it. standard terminal programs are tricky to use, but something like cutecom that lets you send full lines (as opposed to character-by-character for modem/shell-oriented terminal emulators) without a terminator works easily without resorting to awkward copy pasta dances. of course it also doesn't send line terminators after the responses, so the only way to script this would be to use some ugly timeout logic.

ailivac
Автор

Hi there, I have connected the HC-06 with FTDI-adapter to my computer and tried the arduino serial monitor. I do not get any responce when entering any AT command. Weird thing is that if I connect my phone to the module and enter text in the "Bluetooth terminal" app then it shows up on my computer screen in the serial monitor. So I assume the wiring is correct. I do not know why the module is not in AT mode?

patricknitzsche
Автор

Important notice: you have to set transmit delay int Tera Term Serial Port setup. And delay should be 1... 10. I found it in this video :) If you use default delay == 0, HC-06 module doesn't work. It reply to AT but not reply to AT+VERSION. And there is difference between AT+VERSION and AT+VERSION? :) No question mark is required *ROFL*

thejustmoose
Автор

Another very useful video - Thank You!

webmasterg
Автор

Standard RS-232. Signal levels are -13v and +13v. I assume the USB cable you are using is using std TTL logic of 0 and +5v and NOT RS-232 signals
Please confirm.

rty
Автор

Hello sir... i have a bluetooth headphone that doesn't connect with my Android TV box but connects with Android phone and works well.
Also when i connects to an iPhone, the internet connection on iPhone gets disturbed... like every minute... 😑
what can i do?

ssldhl
Автор

amazing! i tried to conect a ttl-usb adapter PL0323 to my bluetooth headset with RDA 28 pins eeprom chip.
the bluetooth headset have only gnd tx and rx. i tried to connect with OVC3868 software however the doenst seems connected . do i need to connect a 3.3v battery to the ttl-usb adapter ?do i need to disconnect the internat battery of the bluetooth headset? please help!!

spcg
Автор

HC-06 shows up on my iPhone. When I click on it, PAIRING UNSUCCESSFUL "HC-06" is not supported. What does that mean? SO, HC-06 is just a "SLAVE" I purchased it thinking it was the Transceiver.

marinehm
Автор

Can you also change the firmware using the usb to serial?

enrickjulesfederico
Автор

Thank you for the video and good explanation.

Lexusturbo
Автор

What happens if the phone or PC isn't picking up the Bluetooth signal, , yes it's powered up and green light just flashing fast, but it won't show up when scanning for Bluetooth. How can we fix this

PerthBoyz
Автор

The title of this video is a bit misleading. You are not really programming the module. The "program" or firmware remains the same. You are just communicating with it in AT Command mode to change the parameters.

philliptoone
Автор

Hello, I have an HC05 which i am using instead of the HC06. So I wired up the HC05 the same as in the video except I do not need the voltage divider as my usb->serial has a 5v-3.3v jumper. I am using TeraTerm and I power on, then connect the enable to 3.3v to place in AT mode. I have the slow blink which I believe confirms AT mode. I am connected via com5 and when I issue the AT command by just pasting into the teraterm but I do not receive a response. It seems straight forward enough but maybe the HC05 is still not in slave mode. Do you see anything obvious that I am missing ? Thanks

noweare
Автор

Please help. My hc06 module doesnt appear on my android phone...

talork
welcome to shbcf.ru