Weekly Report
Mainul Hossain
1430022043 Week 9
EEE499A 12/08/2018
Introduction
HC‐05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module,designed for
transparent wireless serial connection [Link] HC-05 Bluetooth Module can be used in a
Master or Slave configuration, making it a great solution for wireless [Link] serial
port bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps
Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR Bluecore 04‐
External single chip Rluetooth system with CMOS technology and with AFH (Adaptive
Frequency Hopping Feature).
Bluetooth Module HC-05
The Bluetooth module HC-05 is a MASTER/SLAVE [Link] default the factory setting is
[Link] Role of the module (Master or Slave) can be configured only by AT
[Link] slave modules cannot initiate a connection to another Bluetooth device, but
can accept [Link] module can initiate a connection to other [Link] user can
use it simply for a serial port replacement to establish connection between MCU and GPS, PC to
your embedded project, [Link] go through the datasheet for more details File:[Link]
Hardware Features
Typical ‐80dBm sensitivity.
Up to +4dBm RF transmit power.
3.3 to 5 V I/O.
PIO(Programmable Input/Output) control.
UART interface with programmable baud rate.
With integrated antenna.
With edge connector.
Software Features
Slave default Baud rate: 9600, Data bits:8, Stop bit:1,Parity:No parity.
Auto‐connect to the last device on power as default.
Permit pairing device to connect as default.
Auto‐pairing PINCODE:”1234” as default.
Pin Description
The HC-05 Bluetooth Module has 6pins. They are as follows:
ENABLE:
When enable is pulled LOW, the module is disabled which means the module will not
turn on and it fails to [Link] enable is left open or connected to 3.3V, the
module is enabled i.e the module remains on and communication also takes place.
Vcc:
Supply Voltage 3.3V to 5V
GND:
Ground pin
TXD & RXD:
These two pins acts as an UART interface for communication
STATE:
It acts as a status [Link] the module is not connected to / paired with any other
bluetooth device,signal goes [Link] this low state,the led flashes continuously which
denotes that the module is not paired with other [Link] this module is connected
to/paired with any other bluetooth device,the signal goes [Link] this high state,the led
blinks with a constant delay say for example 2s delay which indicates that the module is
paired.
BUTTON SWITCH:
This is used to switch the module into AT command [Link] enable AT command
mode,press the button switch for a [Link] the help of AT commands,the user can
change the parameters of this module but only when the module is not paired with any
other BT [Link] the module is connected to any other bluetooth device, it starts to
communicate with that device and fails to work in AT command mode.
How to connect HC05 bluetooth module with Arduino Uno?
Hardware and Software Required
HC-05 Bluetooth Module
Arduino Uno
Arduino IDE(1.0.6V)
Hardware Connections
As we know that Vcc and Gnd of the module goes to Vcc and Gnd of [Link] TXD pin
goes to RXD pin of Arduino and RXD pin goes to TXD pin of Arduino i.e(digital pin 0 and
1).The user can use the on board [Link] here,Led is connected to digital pin 12 externally for
betterment of the process.
Program for HC-05 Bluetooth Module
The program given below is the HC-05 bluetooth module [Link] process is quite different
from others since we are going to use android mobile to control and communicate with
[Link] the bluetooth module acts as an interface between our mobile and Arduino
[Link] getting into the execution process,follow the given procedure:
First of all,the user should install an application called Bluetooth SPP PRO from the
playstore which is a free application.
After installation,pair the bluetooth module to your mobile as like connecting one device
to other using [Link] default pairing code is 1234.
Upload the given program to the Arduino Uno [Link] uploading the code,unplug the
USB from the arduino.
Now use external power adapter to power the Uno board.
The Bluetooth SPP PRO has three types of communication [Link] Byte stream mode
is used to [Link] select that mode and give the input as 1,as soon as the input
has given the led will turn on and for 0 led will turn off.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1);
int ledpin=12;
int Data;
void setup()
{
[Link](9600);
pinMode(ledpin,OUTPUT);
}
void loop()
{
if ([Link]())
{
Data=[Link]();
if(Data=='1')
{
digitalWrite(ledpin,HIGH);
[Link]("LED On! ");
}
else if (Data=='0')
{
digitalWrite(ledpin,LOW);
[Link]("LED Off! ");
}
}
}