Akshay Joseph
Published © GPL3+

Interfacing Bluetooth Module (HC-05) with Arduino Uno

This article explains how to interface a Bluetooth module with HC-05 with Arduino Uno.

BeginnerProtip171,313
Interfacing Bluetooth Module (HC-05) with Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE
Bluetooth Arduino

Story

Read more

Schematics

Interfacing Bluetooth Module (HC-05) with Arduino Uno

Code

Interfacing Bluetooth Module (HC-05) with Arduino Uno

Arduino
//sketch created by Akshay Joseph
char inputByte;
void setup() {
 Serial.begin(9600);
 pinMode(13,OUTPUT);

}

void loop() {
while(Serial.available()>0){
  inputByte= Serial.read();
  Serial.println(inputByte);
  if (inputByte=='Z'){
  digitalWrite(13,HIGH);
  }
  else if (inputByte=='z'){
  digitalWrite(13,LOW);
  } 
  }
}

Credits

Akshay Joseph

Akshay Joseph

25 projects • 154 followers
B.Sc. Electronics Student at Govt. College Tanur

Comments