Bluetooth module hc-06 arduino software

In this tutorial, we will create an arduino bluetooth interface and send messages from an arduino to smartphone and arduino to a personal computer. Once the module is configured as you wish, you can pair the module hc06 to the device of your choice like any bluetooth device. 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. Bluetooth is the most popular way of connecting an arduino to a smartphone wirelessly.

This app is designed for arduino bluetooth communication. Jan 02, 2016 this post describes the hc 06 bluetooth module and shows a simple app to turn on and off a lamp with an arduino board. The hc06 bluetooth module is a slave bluetooth module designed for. In this example we will add bluetooth support to our arduino, there are several low cost modules labelled either hc05 or hc06.

The arduino will act as a middleman between the bluetooth module and your computer. It has a voltage regulator on it so that you can provide it with 5v power, which then gets converted to 3. Arduino bluetooth basic tutorial arduino project hub. Application of arduino and bluetooth module in wireless display. The output from the detector goes to rst pin of arduino. This way, you dont have to tie up the arduino s only hardware. The bluetooth module i have used for this project is hc 05, which is a serial bluetooth module. It can be adapted to many usb bluetooth devices such as hc05 hc06, hc07, bc04 or other compatible bluetooth module pin definition. In this lesson, we will show what is hc02 bluetooth module and how to setup communications between an arduino and a bluetooth device running serial terminal software in this case an androidios smartphone. So using a serial terminal or a bluetooth customized application on your computer or phone, you can control and monitor your project. Hc06 is a cheap bluetooth module that supports spp serial port profile, which allows the establishment of an emulated serial connection using bluetooth. Finally, the hc06 bluetooth module works only as a slave mode.

The hc06 acts as a serial port through which you can send and receive data. Arduino bluetooth pin code and name changing using at commands. I need to connect the arduino mini pro with an hc 06 bluetooth. If you need a bluetooth module to talk to your smartphone and an arduino board, the hc06 would work fine. Sending data between an arduino or compatible board and a bluetooth equipped 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. 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.

The module is suitable where wireless data transmission is needed in slave mode. Arduino and hc06 bluetooth example arduino learning. Atomic market hc06 bluetooth serial passthrough module wireless serial communication compatible with arduino 3. Hc06 bluetooth module datasheet and configuration with arduino. Arduino control led via bluetooth module hc 06 hardware. The source code of gui can be download for the arduino ide or flprog ide. Tutorial using hc06 bluetooth to serial wireless uart. The next steps depend on what arduino board you have.

I have made a breadboard version of dtr signal simulator which takes led status pin as a source. How to change the bluetooth module name easily with arduino. We can quite easily perform the bluetooth communication with this module using arduino board. My goal is not upload sketch to arduino pro mini through bluetooth module hc06. The program given below is the hc 05 bluetooth module program. Hc06 bluetooth module datasheet and configuration with. Whereas, the get button is used to see what hc05 is returning as return value. Atomic market hc 06 bluetooth serial passthrough module wireless serial communication compatible with arduino 3. Like the hc05, the hc06 module can reach a range of up to 9 meters 30 ft. May 25, 2014 the arduino sketch below will allow you to configure your hc 06 module using the arduino ide serial monitor. It doesnt matter whether you are using hc05 or hc06 bluetooth module, there is a very little change in the at commands, while the use of both the bluetooth modules is exactly the same. Jul 20, 2017 the hc06 zgb23090w uses a regular smd bluetooth module based on the csr bc417 chip with a mx 29lv800cbxbi70g flash memory chip. Communicating using bluetooth hc06 grobotronics learning. I was unable to get my bluetooth module going, so i combined some other libraries to code my own.

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. All you needs is an arduino, hc06 bluetooth module, some relays and a little. With that send button we can send instructions to the hc 05 module. An arduino library for the hc 06 bluetooth module using the bc417 chip. Turning a led on and off with an arduino, a hc06 and. Installing bluetooth hc06 module with bolt 18f2550 system and pc. So i have ordered an hc 06 bluetooth module and an arduino nano and im wondering if i can just directly connect the rx and tx pins from the module to the arduino board without worrying that i might fry the hc06. I use software serial to talk to bluetooth modules and use the hardware serial for debugging. This tutorial explains how to control devices using hc06 bluetooth module. Arduino lesson how to use the hc02 ble bluetooth module. The bt bluetooth module is a stackable shield with serial ports based on the hc06 module. In the tutorial, you are going to learn how to send a text message from your smartphone to an lcd display using arduino and bluetooth module hc05 or hc06.

The module is one of the cheapest solutions for wireless communication of all types present in the market. The module is very easy to interface and to communicate. 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. Whereas, the get button is used to see what hc 05 is returning as return value. The arduino bluetooth module at other end receives the data and sends it to the arduino through the tx pin of the bluetooth module connected to rx pin of arduino. The arduino sketch below will allow you to configure your hc06 module using the arduino ide serial monitor. Arduino bluetooth this is a very basic and yet very important tutorial in which you will learn how to change the name and pin code or password of the bluetooth module using at commands. The hc06 zgb23090w uses a regular smd bluetooth module based on the csr bc417 chip with a mx 29lv800cbxbi70g flash memory chip. Using the android phone and the hc06 bluetooth module to turn onoff the arduino onboard led introduction bluetooth is a telecommunications industry specification that describes how mobile devices, computers and other devices can easily communicate with each other using a. Tutorial using hc06 bluetooth to serial wireless uart adaptors with arduino. In the tutorial, you are going to learn how to send a text message from your smartphone to an lcd display using arduino and bluetooth module hc 05 or hc 06. This process is quite different from others since we are going to use android mobile to control and communicate with arduino.

It breaks out the contact pads of the hc 06 to the bigger pins. Connecting the bluetooth module hc06 with arduino uno have numerous application like controlling home lights using bluetooth module, driving a rc car, controlling robot using mobile application etc. Program baud rate, name and pin on a second hc06 module connected to the software serial. Hc06 is best option when short distance wireless communication is needed. Through the serial monitor on the arduino ide, at commands can be. The bluetooth module hc06 allows the serial and uart communication between your arduino uno or any microcontroller with a pc or a smartphone equipped with a bluetooth facility. Arduino bluetooth communication using hc05 the engineering. Arduino bluetooth device control on hc06 robo india.

Wiring bluetooth hc06 in 8 channel relay with android. The following sketch takes whatever is entered in to. I need to connect the arduino mini pro with an hc06 bluetooth. Note there are many sellers on amazon and ebay selling hc06s as hc. It comes with a power reverse connect protection and. Aug 05, 2017 the bluetooth module hc 06 allows the serial and uart communication between your arduino uno or any microcontroller with a pc or a smartphone equipped with a bluetooth facility. A widely available bluetooth module that has capability to enable your project with bluetooth. Contents1 hc05 bluetooth module2 at command mode3 control a led via bluetooth and android4 connect arduino to pc. Hc06 bluetooth module datasheet and configuration with arduino 925. In this video, we are going to learn about bluetooth module and how we can use it with arduino to send. In this tutorial, we will create an arduinobluetooth interface and send messages from an arduino to smartphone and arduino to a personal computer. Beginners guide to using the bluetooth hc05 module with an. The code fed to arduino checks the received data and compares. Now, i want to introduce you to the basic structure that you can use to communicate your bluetooth module with your arduino.

Using the android phone and the hc 06 bluetooth module to turn onoff the arduino onboard led introduction bluetooth is a telecommunications industry specification that describes how mobile devices, computers and other devices can easily communicate with each other using a shortrange wireless connection. There are actually two ways, but ill explain why that way is useful for your projects. The module was connected for a few seconds and then disconnected alone, after that i could not access it. With that send button we can send instructions to the hc05 module. The bluetooth module i have used for this project is hc05, which is a serial bluetooth module. Upload pressing the arrow in the circle on the upper left. Now we are going to display the results of the tmp36 to the bluetooth terminal using the hc05 module. Installing bluetooth hc 06 module with bolt 18f2550 system and pc.

Setting up a hc06 bluetooth module with arduino maddie. The android app is designed to send serial data to the arduino bluetooth module when a button is pressed on the app. 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. Dont worry about the first and last pin of the bluetooth module since we will not use them for this tutorial, the rest of the pins and their functions are listed below. Arduino control led via bluetooth module hc06 hardware.

But we are interfacing it by using its four pins only. Hc 06 is a cheap bluetooth module that supports spp serial port profile, which allows the establishment of an emulated serial connection using bluetooth. Hc 06 bluetooth module datasheet and configuration with arduino. Tutorial using hc06 bluetooth to serial wireless uart adaptors. The module is used for wireless communications of less than 100 meters. It has 14 digital inputoutput pins of which 6 can be used as pwm outputs and one can be used to reset the wt11 module, 6 analog inputs, a 16 mhz crystal oscillator, screw terminals for power, an icsp header, and a reset button. The hc06 bluetooth module should start flashing a red light. Continuously sends the string hello to the bluetooth module every 500ms 4. The code should successfully be verified and uploaded. An arduino library for the hc06 bluetooth module using the bc417 chip. This bluetooth module for arduino is a core module hc06 which leads to interface includes vcc, gnd, txd, rxd, etc. Hc 06 is best option when short distance wireless communication is needed. Configures the software uart on pins 2 and 4 rx,tx 3.

If you need a bluetooth module to talk to your smartphone and an arduino board, the hc 06 would work fine. Please note that the bluetooth module used in this tutorial is not compatible with ios devices. Arduino bluetooth pin code and name changing using at. Mar 01, 2016 today, i am going to share a new project in which we are gonna do arduino bluetooth communication. Arduino lesson how to use the hc02 ble bluetooth module to. Create a bluetooth hc06 module with arduino dzone iot. 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. The bluetooth module at other end receives the data and send to ardunio through the tx pin of bluetooth module rx pin of arduino.

In the video i say that you should connect your serial terminal program. The arduino bt bluetooth is a microcontroller board based on the atmega168 and the bluegiga wt11 bluetooth module details and datasheet pdf. To connect to your arduino hardware using an hc05 or hc06 bluetooth module, make sure you have instrument control toolbox installed failure to program arduino board. For these tests you will need the bolt 18f2550 module, a pc or laptop computer with windows 7 or windows 8, a 300 ma. This connections is transparent for the microcontroller, since the module handles all the bluetooth protocol. The board can be accessorized with a usb to ttl serial cable to connect to your pc. Like the hc 05, the hc 06 module can reach a range of up to 9 meters 30 ft. Beginners guide to using the bluetooth hc05 module with. This post describes the hc06 bluetooth module and shows a simple app to turn on and off a lamp with an arduino board.

Hc06 bluetooth module datasheet and configuration with arduino bluetoothmodule datasheetandconfigurationwith arduino 925. The module does not turn on its led correctly, it only lights up slightly as shown by the red arrow in the image, any idea what it could be. Apr 22, 2020 application of arduino and bluetooth module in wireless display. It breaks out the contact pads of the hc06 to the bigger pins. The shield can be connected directly to the arduino uart port for wireless communication. Since, here we have two instructions, 1 true to turn on the led and the other is 0 false to turn off the led. Setup the breadboard circuit with the hc06 and arduino as shown in the above image. Connect your arduino board to your pc and open arduino software to upload the following code. Before, uploading the code to the arduino, disconnect the hc06 module, since it shares the tx. May 06, 2019 arduino bluetooth this is a very basic and yet very important tutorial in which you will learn how to change the name and pin code or password of the bluetooth module using at commands. As mentioned before, the hc05 bluetooth module allows us to establish a bluetooth connection, but before we connect it to the arduino, lets go over the hc05 schematic. Arduino connection with bluetooth hc06 stack overflow.

Arduino code configuring hc06 via bluetooth demo by keuwlsoft. Hc06 bluetooth module software help im doing a project for school hat involves two arduinos being separate from each other and communicating via bluetooth with an hc05, and an hc06. Sep 01, 2018 this bluetooth module for arduino is a core module hc 06 which leads to interface includes vcc, gnd, txd, rxd, etc. Before getting into the execution process,follow the given procedure. The communication module hc05 and hc06 allows to control of a remote microcontroller device via bluetooth. Here the bluetooth module acts as an interface between our mobile and arduino board. In this video, you will learn how to use softwareserial to connect the hc06 board to add bluetooth functionality to your projects. Open your arduino ide, create a new file, and copy the following code. Today, i am going to share a new project in which we are gonna do arduino bluetooth communication.