Table of Contents

Introduction
Ultimate Bluetooth LED Controller: Are you interested in building a simple yet powerful project to control devices wirelessly? Look no further! This tutorial will guide you on how to create a Bluetooth LED Controller Using the BlueBot Controller App. With this app, you can turn LEDs on and off, control relays, and manage other devices with ease.
This project is beginner-friendly and uses an Arduino, the HC-05 Bluetooth module, and the BlueBot Controller App to send commands wirelessly. Let’s dive in!
What is the BlueBot Controller App?
The Ultimate Bluetooth LED Controller App is a mobile application designed to control Bluetooth-enabled devices. The Blue Bot Controller is an all-in-one Bluetooth app designed for controlling devices like LEDs, robots, and sensors. It offers advanced features tailored for hobbyists, students, and developers alike.
With support for gesture, voice, IoT, and custom controls, the app enables seamless device management. Its user-friendly interface makes exploring wireless communication and automation effortless and engaging for all users.
Controllers:
- LED Control
- Robot Control
- RGB Control
- Text Control
- IoT Control
- Matrix Control
- Voice Control
- Gesture Control
- Sensor Control
- MPU6050 Sensor : Gesture and motion detection.
- Potentiometer Sensor: Analog value adjustments.
- PIR Sensor: Motion detection triggering.
- Ultrasonic Sensor: Distance and proximity measurements.
- Custom Control
- Timed Control
- Servo Control
- Joystick Control
- Inauguration Control
Features of the BlueBot Controller App
- Simple Command Interface: Easily send commands like “ON” and “OFF” to control devices.
- Customizable Buttons: Create custom commands to suit your project needs.
- Real-Time Control: Instantly see the results of your actions.
- Compatibility: Works seamlessly with Arduino and Bluetooth modules like HC-05 and HC-06.
How to Download the BlueBot Controller App
To get started, download the BlueBot Controller App from the official source:
Make sure you have a Bluetooth-enabled smartphone to pair with your project.
Hardware Requirements for Your Bluetooth Controller
Here’s what you’ll need:
- Arduino Uno or Nano
- HC-05 Bluetooth module
- LEDs (at least two)
- Resistors (220 ohms for LEDs)
- Jumper wires
- Breadboard
- USB cable for programming the Arduino
Setting Up the Hardware
Follow these steps to set up your hardware:
- Connect the HC-05 Bluetooth Module:
- Connect the RX pin of the HC-05 to pin 2 of the Arduino.
- Connect the TX pin of the HC-05 to pin 3 of the Arduino.
- Power the HC-05 by connecting VCC to 5V and GND to GND on the Arduino.
- Connect the LEDs:
- Connect one LED to pin 13 of the Arduino and the other to pin 12.
- Use a 220-ohm resistor in series with each LED.
- Power Up:
- Connect the Arduino to your computer using a USB cable.
Arduino Code for the Bluetooth LED Controller
Here is the Arduino code to control LEDs using the Ultimate Bluetooth LED ControllerApp:
Links : Library SoftwareSerial
#include <SoftwareSerial.h>
// RX, TX pins for the Bluetooth module (HC-05)
SoftwareSerial BTSerial(2, 3);
// Define individual LED pins
int ledPin1 = 11;
int ledPin2 = 10;
int ledPin3 = 9;
int ledPin4 = 8;
int ledPin5 = 7;
int ledPin6 = 6;
void setup() {
// Start serial communication
BTSerial.begin(9600); // HC-05 communication at 9600 baud rate
Serial.begin(9600); // Serial monitor at 9600 baud rate
// Set each LED pin as output
pinMode(ledPin1, OUTPUT);
pinMode(ledPin2, OUTPUT);
pinMode(ledPin3, OUTPUT);
pinMode(ledPin4, OUTPUT);
pinMode(ledPin5, OUTPUT);
pinMode(ledPin6, OUTPUT);
Serial.println("Ready to receive commands");
}
void loop() {
if (BTSerial.available()) {
// Read the incoming Bluetooth data
String command = BTSerial.readStringUntil('\n'); // Read until newline character
command.trim(); // Remove any extra whitespace or newline
Serial.println("Command received: " + command);
// Control the LEDs based on the command
if (command == "A") {
digitalWrite(ledPin1, HIGH); // Turn LED 1 on
} else if (command == "B") {
digitalWrite(ledPin1, LOW); // Turn LED 1 off
} else if (command == "C") {
digitalWrite(ledPin2, HIGH); // Turn LED 2 on
} else if (command == "D") {
digitalWrite(ledPin2, LOW); // Turn LED 2 off
} else if (command == "E") {
digitalWrite(ledPin3, HIGH); // Turn LED 3 on
} else if (command == "F") {
digitalWrite(ledPin3, LOW); // Turn LED 3 off
} else if (command == "G") {
digitalWrite(ledPin4, HIGH); // Turn LED 4 on
} else if (command == "H") {
digitalWrite(ledPin4, LOW); // Turn LED 4 off
} else if (command == "I") {
digitalWrite(ledPin5, HIGH); // Turn LED 5 on
} else if (command == "J") {
digitalWrite(ledPin5, LOW); // Turn LED 5 off
} else if (command == "K") {
digitalWrite(ledPin6, HIGH); // Turn LED 6 on
} else if (command == "L") {
digitalWrite(ledPin6, LOW); // Turn LED 6 off
}
else {
BTSerial.println("Unknown command");
}
}
}
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(2, 3); // RX, TX pins for the Bluetooth module (HC-05)
int ledPin = 13; // Pin where the LED is connected
int ledPin2 = 12; // Pin where the second LED is connected (for demonstration)
void setup() {
// Start serial communication with Bluetooth and monitor
BTSerial.begin(9600); // HC-05 communication at 9600 baud rate
Serial.begin(9600); // Serial monitor at 9600 baud rate
pinMode(ledPin, OUTPUT); // Set LED pin as output
pinMode(ledPin2, OUTPUT); // Set second LED pin as output
Serial.println("Ready to receive commands");
}
void loop() {
if (BTSerial.available()) {
// Read the incoming Bluetooth data
String command = BTSerial.readStringUntil('\n'); // Read until newline character
Serial.println("Command received: " + command); // Display the received command
// Control the LEDs based on the command
if (command == "F") {
digitalWrite(ledPin, HIGH); // Turn LED 1 on
} else if (command == "B") {
digitalWrite(ledPin, LOW); // Turn LED 1 off
} else if (command == "L") {
digitalWrite(ledPin2, HIGH); // Turn LED 2 on
} else if (command == "R") {
digitalWrite(ledPin2, LOW); // Turn LED 2 off
} else {
BTSerial.println("Unknown command");
}
}
}
Controlling LEDs Using the BlueBot App
- Pair Your Bluetooth Module:
- On your smartphone, turn on Bluetooth and pair it with the HC-05 module.
- Default pairing PIN is usually
1234
or0000
.
- Open the BlueBot Controller App:
- Launch the app and connect it to the paired HC-05 module.
- Send Commands:
- Use the app buttons to send commands. Before connecting to Bluetooth, adjust and edit the commands based on the Arduino code. Don’t forget to edit the commands before sending.
- F: Turn on LED 1
- B: Turn off LED 1
- L: Turn on LED 2
- R: Turn off LED 2
- Use the app buttons to send commands. Before connecting to Bluetooth, adjust and edit the commands based on the Arduino code. Don’t forget to edit the commands before sending.
Adding More Devices
Expand your project to control other devices like fans or relays with Ultimate Bluetooth LED Controller. Here’s an example:
Code for Relay Control
#include <SoftwareSerial.h>
// Define relay pin and software serial pins
int relayPin = 8; // Pin where the relay is connected
#define RX 2 // SoftwareSerial RX pin (connected to TX of Bluetooth module)
#define TX 3 // SoftwareSerial TX pin (connected to RX of Bluetooth module)
// Initialize SoftwareSerial
SoftwareSerial BTSerial(RX, TX);
void setup() {
pinMode(relayPin, OUTPUT); // Set relay pin as output
BTSerial.begin(9600); // Start SoftwareSerial communication at 9600 baud
Serial.begin(9600); // Optional: Start Serial Monitor for debugging
}
void loop() {
if (BTSerial.available()) {
String command = BTSerial.readStringUntil('\n'); // Read the incoming command
Serial.println("Command received: " + command); // Optional: Print command for debugging
if (command == "ON") {
digitalWrite(relayPin, HIGH); // Turn relay on (fan/lamp ON)
Serial.println("Relay ON"); // Optional: Print status
} else if (command == "OFF") {
digitalWrite(relayPin, LOW); // Turn relay off (fan/lamp OFF)
Serial.println("Relay OFF"); // Optional: Print status
}
}
}
With this code, you can control high-power devices like fans by sending “ON” and “OFF” commands.
Troubleshooting Common Issues
Problem: HC-05 Not Pairing
Solution: Ensure the module is in pairing mode (press the button on the HC-05 while powering it on).
Problem: Commands Not Working
Solution: Double-check wiring and ensure commands match the Arduino code.
Problem: LEDs Not Responding
Solution: Test LEDs directly with a power source to confirm functionality.
Applications of the BluBot Controller
- Home Automation: Control lights, fans, or appliances wirelessly.
- Robotics: Send commands to control robot movements.
- DIY Projects: Build Bluetooth-controlled gadgets for fun.
- IoT Development: Integrate with sensors for advanced IoT applications.
Conclusion
The Bluetooth LED Controller Using BlueBot Controller App is an exciting project that combines hardware and software to create a functional wireless controller. Whether you’re a beginner or an experienced developer, this guide provides everything you need to get started. Download the app, set up your hardware, and bring your ideas to life!
Download BlueBot Controller App and start your journey today!