Interfacing of Arduino with HCO5 Bluetooth module.
Bluetooth is a wireless technology standard for exchanging data over short distances (using short-wavelength UHF radio waves in the ISM band from 2.4 to 2.485 GHz) from fixed and mobile devices and building personal area networks (PANs). Range is approximately 10 Meters (30 feet).
Structure of Bluetooth Module:

Interfacing with Arduino:

CODE:
char a;
void setup()
{
Serial.begin(9600);
Serial.println(“>>START<<“);
}
void loop()
{
if(Serial.available()>0)
{
a=Serial.read();
}
if(a==’1′)
{
Serial.println(“HIGH”);
#If App sends a higher logic then it will print ‘HIGH’ on command prompt and if low then it’s sends ‘LOW’ Logic on command prompts. If no signal is receive then it will print ‘No Input’.
delay(2000);
}
else if(a==’0′)
{
Serial.println(“LOW”);
delay(2000);
}
else
{
Serial.println(“NO INPUT”);
delay(2000);
}
}
Applications:
- Wireless communication between two microcontrollers
- Communicate with Laptop, Desktops and mobile phones
- Data Logging application
- Consumer applications
- Wireless Robots
- Home Automation
Reference:
https://components101.com/wireless/hc-05-bluetooth-module
https://wiki.eprolabs.com/index.php?title=Bluetooth_Module_HC-05