HC-06 is Bluetooth to UART Converter. This post show how to config Raspberry Pi 2 running Raspbian Jessie, to connect HC-06 with serial port. Connect and log-in from Windows 10.
Connect HC-06 to Raspberry Pi GPIO connector:
RPi TXD - HC-06 RXD
RPi RXD - HC-06 TXD
RPi 3.3V - HC-06 VCC
RPi GND - HC-06 GND
*make sure your HC-06 is operate on 3.3V, NOT 5V.
By default, HC-06 work on 9600 baud. So we have to edit /boot/cmdline.txt in Raspberry Pi/Raspbian Jessie, to set 9600 baud.
in default:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
modify (with sudo right) default 115200 to 9600.
dwc_otg.lpm_enable=0 console=ttyAMA0,9600 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Then you can connect and login from Windows 10 with Bluetooth.
This video show how to config Raspberry Pi, and log-in from Windows 10 using PuTTY. In this video, Raspberry Pi desktop is Remote Desktop Connection via WiFi. PuTTY run as Bluetooth Serial Terminal.
more:
- Android Bluetooth Terminal to login Raspberry Pi + HC-06
6 comments:
Thank you very much! Do you think it can work with a normal bluetooth dongle? or only a HC-05 or HC-06 and the external circuitry?
hello IDIs Desarrollo,
I haven't check with normal bluetooth dongle, can't confirm. Sorry.
I don't have cmdline.txt. Is that OK? I created a new one and added that line, but after pairing, the LED still keeps blinking.
After paired, still blink is correct.
Stop blinking after connected.
Hi everyone, i used Hc05 to connect with rpi2, but when i made the physical connect (GND - GND, VCC - VCC, RX - TX, TX - RX), the led on HC05 still off. i checked the voltage in the pin #2 on rpi and i sure it had 5V out. i don't know how to fix it. Can anyone help me?
is there a way to make the bt serial module connected to the RPi2 the master and control it in such a way to connect to a slave module elsewhere, like on an arduino?
Post a Comment