Devices & Components
Arduino Uno Rev3
Jumper Wires
2k ohm resistor
1000 Ohm Resistor
Breadboard 100x70
5mm Red LED
Resistor 220 ohm
HC-05 Bluetooth Module
Software & Tools
Arduino Bluetooth Control
Arduino IDE
Project description
Code
Controlling an LED with Bluetooth
cpp
This code is a basic tested version. Mods allowed.
1#include <SoftwareSerial.h> 2 3 SoftwareSerial bt(10,11); 4 5 const int led = 13; 6 7 char c; 8 void setup() { 9 // put your setup code here, to run once: 10 bt.begin(9600); 11 pinMode(led,OUTPUT); 12 } 13 14 void loop() { 15 // put your main code here, to run repeatedly: 16 if(bt.available()){ 17 c = (char)bt.read(); 18 if(c == '1'){ 19 digitalWrite(led,HIGH); 20 } 21 else if(c == '0'){ 22 digitalWrite(led,LOW); 23 c = '\0'; 24 } 25 } 26 }
Downloadable files
Code for Controlling an LED with Bluetooth(HC-05 and Arduino Uno)
bluetooth_led1.ino
Circuit for controlling an LED using Bluetooth
This circuit was designed in Cirkit.
file.None

Documentation
App
1000043903.jpg

Inside App
1000043904.jpg

Locating Connection Manager
1000043902.jpg

Connecting to HC-05 Bluetooth Module
1000043901.jpg

Live Working Video
Controlling an LED using Bluetooth_20250905_094429_0001.mp4
Comments
Only logged in users can leave comments