The Arduino has been widely common in projects where you have to make the communication without wire sensors, controllers and processors. Low energy Bluetooth modules communication is already popular and common in several devices:
It is one of the best options to implement wireless networks with Arduino.
Furthermore, the HC05 and HC06 are the main Bluetooth modules for interfacing with Arduino. In addition to being easy to common and prototype, they are cheap and easily found at any electronics distributor that works with Arduino.
In this post you will learn a little more about low energy Bluetooth modules, about the HC05 and HC06 modules, and you will learn how to make your Arduino talk to your Smartphone through a Bluetooth network.
Bluetooth technology is a protocol for radio communication for personal common, that is, it is a wireless network specification classified as PAN (Personal Area Network). It developed in 1994 by Ericsson as a wireless alternative to the RS-232 protocol. The frequency range common by Bluetooth is 2.4 to 2485 GHz.
A group of companies and development centers called the Bluetooth Special Interest Group is responsible for writing the protocol specifications and releasing updated versions and new features.
The protocol comes under low energy Bluetooth modules communication emblem it must comply with all protocol specifications. However, for each Bluetooth version there are qualification tests that a product must pass in order to be certified as a device using Bluetooth communication.
Arduino has been widely common in projects that require wireless communication of sensors, controllers and processors. Bluetooth communication already popularized and common in various devices such as Smartphones, tablets, Headsets, notebooks and others, is one of the best options for implementing wireless networks with Arduino.
The HC05 and HC06 are the main low energy Bluetooth modules for interfacing with Arduino. In addition to being easy to common and prototype, they are cheap and easily found at any electronics distributor that works with Arduino.
The Bluetooth modules available on the market are divided into three classes, depending on the range and maximum power, they are:
Currently there are several manufacturers and Bluetooth modules, as well as software and applications available for free that allow the integration of this technology in your electronic projects.
The HC-05 low energy Bluetooth modules can work in both master mode (make and accept pairing with other devices) and slave mode (only accept pairing). The HC-06 module can only work in slave mode.
It is important to note that the communication voltage on the modules is 3.3V, that is, despite the power supply being 5V, the RX and TX pins common 3.3V signals to communicate. Thus, it is necessary to common a voltage divider to obtain 3.3 V from the 5V output of the Arduino TX.
Now that you know the main concepts behind Bluetooth and the HC-05 and HC-06 modules common with arduino, lets implement our first project using low energy Bluetooth modules communication.
In this project we will show you how to interface an Arduino Uno R3 with your Android smartphone. Through the Bluetooth connection between the arduino and the smartphone. We will inform the status of a key monitored by Arduino on the cell phone screen.
First of all, let's go to our list of components. You will need all of them to make this montage:
If you common an HC-05, the Bluetooth connection can be established either from the module or from the cell phone. If you choose the HC-06, you will have to make the pairing from the cell phone, as this module only operates in slave mode, and does not perform search and pairing operations by itself.
For this project we are going to common the HC-05 module, which can be connected either in master or slave mode. The 6 pins of the HC-05 are well identified on the low energy Bluetooth modules and consist of the following:
The RX and TX pins are the module's communication channels. Furthermore, the module's RX must connect to the arduino's TX through the voltage divider.
The +5V pin is the power pin and the GND is the power reference, which must be the same as the Arduino. However, EN pin is common to enable the AT command mode of the low energy Bluetooth modules.
AT commands are a set of commands that can be sent to the module through a serial terminal. These commands are common to configure the module and be able to talk to it.
For our assembly, we will use the RX and TX, +5V and GND pins. Now that the assembly is ready and the SPP Bluetooth tools pro app is installed on your mobile device, it's time to program the Arduino to talk to the low energy Bluetooth modules and pair the phone with our hardware.
Prev:5 Ble Bluetooth 5.0 Module Facts you never Knew Before
Free A Quote
Copyrights 2021Technology Co.,Ltd.All Rights Reserved.