GND: Connect this pin to the common ground of the circuit.Connect it to a 3.3V pin of the microcontroller. Supported configuration: Bluetooth serial port (major and minor).Safety feature: Authentication and encryption.Sensitivity: ≤-84dBm at 0.1% Bit Error Rate.Modulation mode: Gauss Frequency Shift Keying.Operating frequency: 2.4GHz ISM frequency band.Bluetooth protocol: Bluetooth 4.0+ EDR standard.STATE: It is used to check if the module is connected or not.The HC-05 Bluetooth module receives the data from this pin and then transmits it wirelessly. RXD: Connect this pin to the TXD pin of the microcontroller.This pin transmits Serial data (wireless signals received by the Bluetooth module are converted by module and transmitted out serially on this pin) TXD: Connect this pin with the RXD pin of the microcontroller.VCC: Used to power the Bluetooth module.In HC-05, the default baud speed in command mode is 38400bps and 9600 in data mode. The Key/EN pin should be high to operate Bluetooth in command mode. By default, this pin operates in data mode. KEY/En: This pin is used to bring the Bluetooth module in AT commands mode.It uses frequency-hopping spread spectrum (FHSS) radio technology to send data wirelessly. HC-05 Bluetooth module follows the IEEE 802.15.1 standardized protocol, through which one can build a wireless Personal Area Network (PAN).Security: Authentication and encryption.Asynchronous communication: 2.1Mbps (Max) / 160 kbps.Modulation: GFSK (Gaussian Frequency Shift Keying).Bluetooth protocol: Bluetooth Specification v4.0+EDR (Enhanced Data Rate).begin( 38400) // Default communication rate of the Bluetooth module We will make a simple example, just turning on and off a LED but it will be good enough for understanding the communication. So, now we are ready to make the Arduino code for enabling the communication between the Arduino board and the smartphone. Arduino Bluetooth Communication Example Source Code On the other hand, the line between the Bluetooth module TX pin and the Arduino RX pin can be connected directly because the 3.3V signal from the Bluetooth module is enough to be accepted as a high logic at the Arduino Board. So, the line between the Arduino TX (Transmit Pin, which has 5V output) and the Bluetooth module RX (Receive Pin, which supports only 3.3V) needs to be connected through a voltage divider in order not to burn the module. However, the logic voltage level of the data pins is 3.3V. The particular module that I have can be powered from 3.6 to 6 volts, because it comes on breakout board which contains a voltage regulator. Here’s how we need to connect the module to the Arduino Board. As an Amazon Associate I earn from qualifying purchases. Breadboard and Jump Wires ……… Amazon / Banggood / AliExpressĭisclosure: These are affiliate links.Arduino Board …………………………… Amazon / Banggood / AliExpress.You can get the components needed for this Arduino tutorial from any of the sites below: The HC-05 module is a Bluetooth SPP (Serial Port Protocol) module, which means it communicates with the Arduino via the Serial Communication. There are several different versions of this this module but I recommend the one that comes on a breakout board because in that way it’s much easier to be connected. Comparing it to the HC-06 module, which can only be set as a Slave, the HC-05 can be set as Master as well which enables making a communication between two separate Arduino Boards. Before we start with the first example, controlling an Arduino using a smartphone, let’s take a closer look at the HC-05 Bluetooth module.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |