Interfacing HC-05 with Arduino

Interfacing ArduinoUNO and HC-05 Bluetooth module using AT Commands?



Here, I will show you can configure the HC-05 Bluetooth Module using AT (Attention) commands.

These AT commands can be used to Check and Change the Name, Password, Baud Rate for Communication of HC-05 Bluetooth Module.

Follow these steps:
  1. Connect Arduino Uno Board to Laptop and upload a Example Sketch to the Arduino from Arduino IDE.
    (Note: Upload SoftSerial Example sketch for better understanding )
  2. Connect HC-05 Bluetooth Module in configuration(AT) mode:
    Arduino Uno -> BluetoothModule
    Pin10        -> Rx 
    Pin11        -> Tx
    Gnd          -> GND
    Vcc          -> VCC(+5V)
    3.3V         -> Enable(En)
    
  3. Enter into configuration mode:
    Plug out  Gnd or Vcc wire of Bluetooth (HC-05) module and hold the reset button pressed  but do not release, Plug in Gnd or Vcc wire you removed and then release the reset button you pressed.

  1. To verify whether HC-05 is in configuration mode, 
    LED on Bluetooth module must blink at a slower rate.   
  2. Open Serial Arduino serial monitor and Set Baud Rate = 38400 and select "Both NL and CR" Option
  3. Type following AT commands in given Sequence
    FORMAT:
    ---------------------------
    <Command>
    :Explanation
    --<Expected Output>
    --------------------------
    AT
    :Attention Command
    --OK
    AT +NAME?
    :To Check the name of the module
    --+NAME:HC-05
    --OK
    AT +NAME=ARUN
    :To change name of the module to ARUN
    --+NAME:ARUN
    --OK
    AT +PSWD?
    :To check the current password of the module
    --+PSWD:124
    --OK
    AT +PSWD=0000
    :To set the password to 0000
    --+PSWD:0000
    --OK
    AT +ADDR?
    :To check the address of the module
    --+ADDR:98d3:32:1123f9
    --OK
    AT +UART?
    :To check the Baud Rate of the module for communication
    --+UART:9600,0,0
    --OK
For more commands and detailed information please go through the pdf given below
https://drive.google.com/open?id=1039ed8CUpXr5DaWpqigTUUxQ_4rl-5ru

Thank you...









top ad

loading...

Realme-Narzo 10 A specifications| review | cost

Realme Narzo10A Special Attraction : Triple camera | Gaming processor | Low cost Realme has launched the Narzo 10A smartphone at t...

loading...