In this video, you will learn how to use softwareserial to connect the hc06 board to add bluetooth functionality to your projects. Arduino controlling led with hc06 bluetooth module. Im using a hc 06 bluetooth module to control my arduino uno, i want to implement a simple program that can turn on and off an led. Dsd tech hc 06 bluetooth serial passthrough module wireless serial communication for arduino came in on time and on a plastic box which ensures that the module will not be damaged during transport. We can do this by using software serial on the arduino.
The hc06 bluetooth module should start flashing a red light. In this example we will add bluetooth support to our arduino, there are several low cost modules labelled either hc05 or hc06. For example you would need to use the hc05 is if you need the arduino to actually control something on its own. A host device such as the pic16f1829 can easily communicate with the hc06 using a ttl serial communication. This is the standard speed for the hc05 06 modules. After successful uploading code, reconnect hc 06 to arduino again.
Dec 05, 2015 as you can see in the fritzing diagram above, the hc 05 and hc 06 only need 4 pins, although i have used the hc 05 in the above diagram showing all 6 pins. Contents1 hc05 bluetooth module2 at command mode3 control a led via bluetooth and android4 connect arduino to pc. Arduino and hc06 bluetooth example arduino learning. An arduino library for the hc06 bluetooth module using the bc417 chip. Today i will show you how to connect arduino and bluetooth module. The arduino will act as a middleman between the bluetooth module and your computer. Configuring hc 05 and hc 06 bluetooth adapters technically, the world of rc modelling has never had it so good as we have it right now. All you needs is an arduino, hc06 bluetooth module, some relays and a little. In this example we will add bluetooth support to our arduino, there are several low cost modules labelled either hc 05 or hc 06.
May 25, 2014 the arduino sketch below will allow you to configure your hc 06 module using the arduino ide serial monitor. Setting up a hc06 bluetooth module with arduino maddie. Simple hc06 bluetooth and pc windows arduino forum. It will communicate with your pc over the built in serial connection through the usb cable, and with the hc06 bluetooth module over pins 4 and 2, using. The 2 resistors form a voltage divider and reduce the 5v arduino tx pin to 3.
As you can see in the fritzing diagram above, the hc05 and hc06 only need 4 pins, although i have used the hc05 in the above diagram showing all 6 pins. Guess this is the that is commonly usedavailable everywhere. User manual arduino bluetooth module my page 1 of 4 arduino bluetooth module hc06 user manual. This module is nicely assembled and i had not trouble to get this to work with my arduino uno. Sending data between an arduino or compatible board and a bluetoothequipped device such as an android smartphone or tablet is very easy thanks to the inexpensive hc06 bluetooth module we have in stock at pmd way. However, there is a new version called newsoftserial, i didnt tried it yet. In this example we will connect one of these modules to our arduino, use the software serial library and using a terminal program send a command via your pc and switch the on board. Setting up a hc06 bluetooth module with arduino maddie abboud. First of all, connect your arduino to your dc motor and the hc06 module as indicated by the schema. Theres also the hc05 version of this module that is available. This video will describe how to configure the hc06 bluetooth module using a usb to serial ttl cable together with a serial terminal program.
Bluetooth hc 06 on arduino mega serial 1, 2 or 3 not working read 16035 times previous topic next topic. Hc05 and hc06 paired for use with arduino russellweb. The app simple reads the text written to the arduino serial monitor and displays it using the hc 06 bluetooth module. This way, you dont have to tie up the arduinos only hardware. If you have this error, disconnect hc 06 from arduino, try to upload code again. Hc06 bluetooth connection with android cause youre stuck. Through the serial monitor on the arduino ide, at commands can be. The hc06 firmware on the other hand only can be a slave device, with very limited at commands. Chip hc 05 06 of bluetooth module solderes to the module board containing dcdc converter and level conversion rx and tx signals. In this video, you will learn how to use softwareserial to connect the hc 06 board to add bluetooth functionality to your projects. The source code of gui can be download for the arduino ide or flprog ide. If you are not using the serial monitor on the host computer you can connect the bt module to the hardware serial but i use this for communication with. Here is the screen shot of phone with this application. Wire up the hc06 the 4 pin version as above and then load this sketch onto the arduino.
Connect android device to arduino via hc06 bluetooth. This tutorial will explain how to setup communications between an arduino and a bluetooth device running serial terminal software in this case an android. Hiletgo hc06 rs232 4 pin wireless bluetooth serial rf transceiver module bidirectional serial channel slave mode for arduino 4. Connect android device to arduino via hc06 bluetooth module. Pins for the dc motor are exchangeable, but do not mix tx and rx for the bluetooth module. Communicating using bluetooth hc06 grobotronics learning. Bluetooth hc06 configuracion con arduino ingenieria en. Add bluetooth control to your next arduino project brainybits. Arduino bluetooth device control on hc06 robo india.
For a usb cable in my com3 work, but in the com5 door indicate by windows to hc06 when i send the connection comand the red led in module stop blink and nothing happens. Arduino bluetooth 12 channel relay app by tayfmavi. If you have this error, disconnect hc06 from arduino, try to upload code again. Ive hooked up the hc06 to my arduino in a fashion similar to the picture shown below. Toggling a led with arduino and hc06 techtutorialsx. Add bluetooth control to your next arduino project. The arduino bluetooth relay 12 channels app supports control of a 12 channel relay module via bluetooth hc05, hc06, hc07 ect. Refer to the getting started page for installation instructions. Hc06 bluetooth module on arduino nano arduino stack exchange. The environment is written in java and based on processing and other opensource software. Then, upload the following code to your arduino also available here.
In the video i say that you should connect your serial terminal program. Note there are many sellers on amazon and ebay selling hc 06s as hc. Configuracion del modulo bluetooth hc06 usando comandos at. However, i got another hc06 module from an alternate vendor. Open the arduino ide and choose corresponding board. Bluetooth is the most popular way of connecting an arduino to a smartphone wirelessly. Following the previous post describing the hc06 module, this one shows how to use it to build a simple program to toggle the debugging led of an arduino board, using bluetooth. Im working on a project where i need to have bluetooth capability on my arduino nano to send data from a sensor over to the computer. Arduinoandroid bluetooth hc06 module dht11 hackster.
So using a serial terminal or a bluetooth customized application on your computer or phone, you can control and monitor your project. If you need to use iphone or ipad to control your arduino project, hc02 4. I recently ordered an hc06 bluetooth module for my arduino uno, and after watching this video, and many others, i still have been having many issues figuring out how to get it to work, and some questions for how the code receives and reads serial data from my phone. Hc06 will also not work if you include new line characters. An arduino library for the hc 06 bluetooth module using the bc417 chip. In terms of the wiring of the modules however i have the hc05 properly connected to power and ground, the tx pin is connected to rx digitalpin 0 on the arduino and the rx pin is connected to tx digital pin 1 on the arduino and ground.
Connecting hc06 to the arduino board using the previously. I need to connect the arduino mini pro with an hc06 bluetooth. The arduino sketch below will allow you to configure your hc06 module using the arduino ide serial monitor. Connect your arduino board to your pc and open arduino software to upload the following code. Arduinoandroid bluetooth hc06 module dht11 arduino. After successful uploading code, reconnect hc06 to arduino again. This way, you dont have to tie up the arduino s only hardware. Arduino uno hc06 simple example using android phone mcuhq. The code should successfully be verified and uploaded. Tutorial using hc06 bluetooth to serial wireless uart. Unfortunately, im having a difficult time figuring out how to establish a connection from the hc 06 to the computer. In this tutorial, we will create an arduinobluetooth interface and send messages from an arduino to smartphone and arduino to a personal computer. Ive hooked up the hc 06 to my arduino in a fashion similar to the picture shown below.
Hc06 rx to arduino tx via a voltage divider, and hc06 tx to arduino rx connect directly refers the software serial on pins 2 and 3, however, other pins can be used such as 10 and 11. For a usb cable in my com3 work, but in the com5 door indicate by windows to hc 06 when i send the connection comand the red led in module stop blink and nothing happens. I was unable to get my bluetooth module going, so i combined some other libraries to code my own. Before, uploading the code to the arduino, disconnect the hc 06 module, since it shares the tx. This code present the way to use the bluetooth module hc06 with arduino, i developed the app only to make the module communicate with something. Arduino lesson how to use the hc02 ble bluetooth module to. The opensource arduino software ide makes it easy to write code and upload it to the board. Hc06 bluetooth module on arduino nano arduino stack.
The app simple reads the text written to the arduino serial monitor and displays it using the hc06 bluetooth module. After connecting everything we need to talk to the hc06. Hello everybody, this is my first official tutorial on, im very excited about my first project. The hc 06 acts as a serial port through which you can send and receive data. Arduino lesson how to use the hc02 ble bluetooth module. This connections is transparent for the microcontroller, since the module handles all. Only 3 digital pins are required in this simple project.
It was fairly simple to setup but i did run into a few hitches and a lack of information so im going to detail some of that for you so you can hopefully avoid the same pitfalls. Unfortunately, im having a difficult time figuring out how to establish a connection from the hc06 to the computer. This has been mostly made possible of course due to better understanding and communication all of this is down to the internet and the platforms it hosts for sharing our ideas like the rcgroups forum. Arduino and a serialin serialout sketch uing an arduino and a simple serial in serial out sketch. In addition, it can be used with hc05 or hc06 hosts matching code, default is 1234 to connect, can replace a traditional serial line, save wiring work. The main difference between the two is that the hc05 can act as master as well as slave. Arduino will communicate with the hc06 bluetooth module board usin. Arduino connection with bluetooth hc06 stack overflow. This post describes the hc06 bluetooth module and shows a simple app to turn on and off a lamp with an arduino board. It is manufactured by guangzhou hc information technology co. The hc05 module can build a connection to other modules. Communicating android and arduino via bluetooth using hc06.
Hc06 is a cheap bluetooth module that supports spp serial port profile, which allows the establishment of an emulated serial connection using bluetooth. Jan, 2018 in this video, you will learn how to use softwareserial to connect the hc 06 board to add bluetooth functionality to your projects. In this example we will connect one of these modules to our arduino, use the software serial library and using a terminal program send a command via. This tutorial assumes the use of the hc06 integrated in the baseboard described in the previous post. Hc06 bluetooth module datasheet and configuration with. Once the module is configured as you wish, you can pair the module hc06 to the device of your choice like any bluetooth device.
Free software such as teraterm or putty can be used. I use software serial to talk to bluetooth modules and use the hardware serial for debugging. Communicating android and arduino via bluetooth using hc. After connecting everything we need to talk to the hc 06. Connect the tx pin on the arduino to the tx pin on the hc05 together with a 3. First of all, connect your arduino to your dc motor and the hc 06 module as indicated by the schema. Tutorial using hc06 bluetooth to serial wireless uart adaptors with arduino. Hc06 bluetooth module datasheet and configuration with arduino. The following sketch takes whatever is entered in to. Open bluetooth terminal software, go to options and select connect a device secure option.
Wire up the hc 06 the 4 pin version as above and then load this sketch onto the arduino. Tutorial using hc06 bluetooth to serial wireless uart adaptors. Chip hc0506 of bluetooth module solderes to the module board containing dcdc converter and level conversion rx and tx signals. The settings indicate that the hc05 06 module is connected to the arduino via the software serial port softwareserial using contacts 2 and 3 at 9600 speed. Configuring hc05 and hc06 bluetooth adapters rc groups. Setup the breadboard circuit with the hc06 and arduino as shown in the above image. Bluetooth hc06 on arduino mega serial 1, 2 or 3 not working. In the arduino window click on the tools dropdown box and select serial monitor in the serial monitor window set the baud rate to 38400 bauds. Hiletgo hc06 rs232 4 pin wireless bluetooth serial rf transceiver module bidirectional serial channel slave mode for arduino 3. It will communicate with your pc over the built in serial connection through the usb cable, and with the hc 06 bluetooth module over pins 4 and 2, using.
1017 299 1424 1409 325 549 792 651 493 615 637 1016 676 477 1013 1317 820 1436 318 703 55 452 429 595 1191 1227 262 626 907 1270 1235 104 985 996 312 1153 1104 576 895 1426 930 1409 667 1244