Β  BLUETOOTH INTERFACE WITH ARDUINOΒ 

 

 

πŸ”΅BLUETOOTH Interface with Arduino – Short Note

Overview:

Bluetooth is a wireless communication technology used to exchange data over short distances. Interfacing a Bluetooth module (like HC-05 or HC-06) with Arduino allows wireless control and communication with devices like smartphones, tablets, or computers.

🧠 Working Principle:

  • The Bluetooth module connects to Arduino through serial communication (TX/RX).

  • It pairs with a Bluetooth-enabled device (like a smartphone).

  • When data is sent from the phone (e.g., using a Bluetooth terminal app), the Arduino receives and acts on it.

πŸ”Œ Circuit Diagram:

 

 

HC-05 PinArduino Pin
VCC5V
GNDGND
TXDD10 (Software RX)
RXDD11 (via voltage divider – TX from Arduino)

 

πŸ“ Sample Arduino Code:

char inputByte;

void setup()
{
Serial.begin(9600); // Start serial communication
pinMode(13, OUTPUT); // Set pin 13 as output (connected to LED)
}

void loop()
{
while (Serial.available() > 0)
{
inputByte = Serial.read(); // Read the incoming byte
Serial.println(inputByte); // Print received byte on Serial Monitor

if (inputByte == ‘Z’)
{
digitalWrite(13, HIGH); // Turn ON LED
}
else if (inputByte == ‘z’)
{
digitalWrite(13, LOW); // Turn OFF LED
}
}
}

πŸ“± Steps to Connect with the App

 

  1. Power on Arduino with the Bluetooth module connected.

  2. On your phone, turn on Bluetooth and pair with the HC-05 (default password: 1234 or 0000).

  3. Open the Bluetooth Controller App and connect to HC-05.

  4. Use buttons or terminal in the app to send characters like 'Z' (to turn ON LED) and 'z' (to turn it OFF).

  5. Arduino receives these characters and performs the action (as shown in the code you shared earlier).

πŸ“Ÿ Example App Controls

 

App ButtonSendsArduino Action
Button ONZTurns ON LED or relay
Button OFFzTurns OFF LED or relay

βœ… Applications:

 

  • Remote control cars

  • Home automation

  • Wireless sensor monitoring

  • Bluetooth-based voting or security systems

 

πŸ“ž For More Details & Project Support:

 

Power Integrated Solutions
Networks | Electronics | Home Automation | Water Automation | IoT | PLC | Embedded | DBMS

πŸ“ Location:
10A/3, Radhakrishnan Colony,
Sasthri Road, Tennur,
Tiruchirappalli, Tamil Nadu – 620017


πŸ“ View on Google Maps

πŸ“§ Email:

πŸ“± Phone / WhatsApp:
+91 76393 85448
+91 82488 85959

🌐 Let’s Build the Future with Innovation in Education & Technology!