The idea came when I wanted to do something like a lamp that lights different colors and makes a sound, and I can control it with mobile
Software:
I used Thinkercad to simulate my electronic circuit
I used Arduino IDE to write and upload my code to my Arduino.
The Arduino Bluetooth Control app connects a smartphone to an Arduino via Bluetooth to send commands. It is used for robotics, home automation, and wireless control.
Arduino Uno is a small programmable board that reads inputs and controls outputs based on uploaded code.
Connect components to the Arduino Uno and breadboard.
allowing signals to transfer.
Buzzer: Produces sound when powered.
(action component)
breadboard
helps organize connections without soldering.
Resistors (330 Ohm)
Limit current to protect the 7-segment display LEDs.
Ensure proper brightness and prevent damage.
An RGB LED is a light-emitting diode that combines red, green, and blue LEDs in a single package.
( action component )
The HC-05 Bluetooth module enables wireless communication using Bluetooth. It connects to microcontrollers via TX/RX pins and supports both Master and Slave modes. Used in robotics, home automation, and data transfer.
I designed my circuit on Tinkercad.
I used the buzzer & RGB LED as the output components and the Bluetooth module as the input components.
I used Arduino Uno as a controller.
I simulate the circuit on Tinkercad.
start writing the code
This Arduino code controls RGB LEDs and a buzzer using Bluetooth commands received through the serial monitor.
1. Setup Section (setup())
Serial Communication: Serial.begin(9600); starts communication at 9600 baud rate.
Pin Setup: pinMode() sets pins 4, 5, 6 (LEDs), and 9 (buzzer) as output.
. Loop Section (loop())
Waits for Input: The code waits until data is received via Bluetooth (Serial.available()).
Reads Input: Stores the received character in incomingData.
If '1' is received, the red, blue, and green LEDs flash in sequence three times.
If '3' is received, the buzzer turns ON.
If '4' is received, the buzzer turns OFF.
If any other input is received, "enter a number from 1 to 4" is printed on the serial monitor.
I made the same connection in reality as Tinkercad; I used jumpers for the wires.
I uploaded the code by USB to Arduino
I connected the Bluetooth module to send and receive data through the mobile app.
I connect the mobile app to the Bluetooth module
and control the Arduino with it
I face some challenges when I write the code: I have some language mistakes, so I try to detect the mistacks. like geen , should be green
Also, when uploading the code in Arduino, should take off the wires of Tx and Rx, which makes the connection better, and then return the wires in their place