Assignment Idea
This week, I’m creating a Bluetooth-controlled RGB LED and buzzer system where different buttons trigger different colors and sounds.
Why I Care
I love exploring interactive design, how lights and sound can make simple actions more engaging. This project lets me combine electronics, coding, and creativity.
Inspiration
I was inspired by Arduino interactive projects and small installations that use light and sound to respond to users
List of the components
Arduino UNO (main microcontroller)
RGB LED (red, green, blue in one LED)
3 × 220Ω resistors (one for each color of the RGB LED)
Piezo Buzzer (for sound output)
Bluetooth Module HC-05 (to control the system via phone or another device)
Breadboard (for easy circuit connections)
Jumper wires (male-to-male / male-to-female as needed)
USB Cable (to connect Arduino to the computer for programming)
Circuit Building Software
TINKERCAD
Arduino IDE
Electric Components
Bluetooth Module HC-05
Arduino Bluecontrol Application
Scenario (How the system works)
The project is a Bluetooth-Controlled RGB LED and Buzzer System.
When a user sends a command via the Bluetooth module:
If the command is 1 → The red LED lights up and the buzzer plays a high-pitched tone.
If the command is 2 → The green LED lights up and the buzzer plays a medium-pitched tone.
If the command is 3 → The blue LED lights up and the buzzer plays a soft tone.
If the command is 4 → No LED lights up and the buzzer plays a high-pitched tone.
Inputs:
Bluetooth Module (HC-05) → Receives commands from a mobile device.
Outputs:
RGB LED → Displays different colors based on the command.
Piezo Buzzer → Plays different tones corresponding to each command.
Connections Explained
RGB LED
Red leg → Digital Pin 9 (via 220Ω resistor)
Green leg → Digital Pin 10 (via 220Ω resistor)
Blue leg → Digital Pin 11 (via 220Ω resistor)
Common cathode → GND
Piezo Buzzer
Positive (+) → Digital Pin 8
Negative (-) → GND
Bluetooth Module (HC-05)
VCC → 5V
GND → GND
TX → RX Pin 0
RX → TX Pin 1
WIRED CIRCUIT
The idea was to combine visual and audio feedback so that each button or command triggers both an LED color and a corresponding buzzer tone.
The code is based on a nested if structure.
I first read the command from the Bluetooth module.
Inside that condition, the system determines which LED to light and which buzzer tone to play.
If the command is 1 → the Red LED lights up and the buzzer plays a high-pitched tone.
If the command is 2 → the Green LED lights up and the buzzer plays a medium-pitched tone.
If the command is 3 → the Blue LED lights up and the buzzer plays a soft tone.
If the command is 4 → no LED lights up and the buzzer plays a high-pitched tone.
This way, the system responds to each input with a distinct visual and audio combination, making it interactive and easy to understand.
Part 1: Definition and Void Setup
Connections are assigned for the red, green, and blue lights, as well as a buzzer.
A Bluetooth communication channel is prepared.
Included SoftwareSerial.h
Defined pins:
Redpin
Greenpin
Bluepin
Buzzerpin
Created dynamic variables: irState and distance
In setup():
The lights and buzzer are set to be ready for output.
Both Bluetooth and normal serial communication are started.
pinMode - RED, Green, Blue and Buzzer pins, Outputs
BTSerial.begin
Serial.begin
Part 2: Void Loop
If conditions
The program keeps checking if a command is received.
If a command arrives, it reads it and shows it on the monitor.
All lights and the buzzer are turned off before applying a new action.
Depending on the command:
“1” → Red light turns on with a great sound.
“2” → Green light turns on with a medium sound.
“3” → Blue light turns on with a low sound.
“4” → Only the buzzer makes a sound, without any light.
Watching teams presenting their ideas in the session!
Challenge I Faced
I got stuck at first because Tinkercad didn’t have a Bluetooth module available for simulation.
I really wanted to test my project fully, so I had to pause and think about alternatives.
To continue practicing the logic and coding, I substituted the Bluetooth input with an ultrasonic sensor in Tinkercad just to simulate input signals and test the LEDs and buzzer behavior.
How I Researched
During this process, I turned to online tutorials, Arduino documentation, and forums to make sure I was connecting the sensors and components correctly. I also researched how to structure the code with nested if statements for multiple conditions.
Mistakes and Pitfalls to Avoid
Trying to simulate components that aren’t available in the platform without an alternative can halt progress.
Always think of a temporary substitute to test the logic.
Mixing up RX/TX pins with USB pins can prevent uploading code. Make sure to disconnect Bluetooth while uploading.
LED or buzzer wiring mistakes (wrong resistor, reversed polarity) can cause them not to work.
Lessons Learned
By pausing and researching, I was able to validate the code and logic first, and then later apply it to the actual hardware with the Bluetooth module.
Title of Media
Title of Media
Title of Media