In today's world of smart technology, integrating Bluetooth control into electronics projects allows for seamless interaction between devices. This project focuses on designing a smart circuit that responds to commands from a mobile phone via a Bluetooth module. The circuit features two interactive outputs:
A buzzer that plays the musical notes Do, Re, Mi when triggered.
An RGB LED that changes color based on the button pressed on the mobile app.
By using a Bluetooth module, the circuit establishes a wireless connection with a mobile phone, enabling real-time control. The buzzer produces different tones corresponding to musical notes, while the RGB LED transitions between colors, offering both an auditory and visual response.
I used TINKERCAD to simulate my circuit and show the electrical components connections easily.
Used A breadboard, jumper wires (male male, and male female).
RGB: Output; to produce a different colour with each of the buttons on the application.
Buzzer: Output; to play a Do Re Mi tone when the button on the application is pressed.
Bluetooth module: to connect the phone to the smart circuit.
Arduino Uno: to code all components.
Arduino IDE to write the text code, compile it, and to transfer the code to the Arduino Uno.
Three 330 Ohm resistors: For the safety of the electronic components (RGB LED).
Designing the circuit on TINKERCAD:
1️⃣ Arduino UNO – Main microcontroller to process sensor input and control output.
2️⃣ Bluetooth module – connects phone to smart circuit. I chose not to use resistors because the Bluetooth module will receive data but won't send any. (The component wasn't found in tinkercad library so I used any other component (the timer) which also had 4 pins)
3️⃣RGB LED – Alternates between the beautiful colours.
4️⃣ 3 Resistors (330Ω) – To protect the RGB LED.
5️⃣Buzzer- to make the Do Re Mi tone.
6️⃣ Breadboard – For easy wiring connections.
7️⃣ Jumper Wires – To connect all components.
All reference images for connections are added in this section.
The logic behind the coding process is represented by this flow chart:
This is the user interface of the android Bluetooth controller app. I used the first 4 buttons for my assignment.
The first part of the code.
Coding for the Do Re Mi using the buzzer.
Coding for the RGB different colours.
Sounds and Lights in action.
During End of week session:
Me, Aya, and Mohammed made a real "dream team". We were working on the robotic arm and it was a very nice journey. Mohammed with his ability to manipulate the codes, Aya with her amazing research skills, and me who assembled things. We truly enjoyed the whole process and we truly learned from each other. We also won the "fishing" competition at ease.
On uploading the code, there was a problem and the arduino IDE kept showing me an error message.
I reviewed the Bluetooth module videos and then realised that in order for the code to be uploaded, the TX and RX pins need to be removed first
After successfully uploading the code, the components weren't responding to the bluetooth android controller app.
I reviewed my code and added it to CHATGPT, it highlighted that I missed the "Serial.begin(9600)" line in my code. which meant that the data that was sent by the mobile application wasn't recieved at all.
Understanding the coding process of the Bluetooth module is giving me a lot of ideas to how the data from my interactive board can be stored and sent to parents over their phones. It is a nice to have feature in my final project.