Pomodoro light-sound system. It is a smart electric circuit with an RGB LED and a buzzer. It applies special sound and light suitable for studying for the Pomodoro time you set via a GUI. It applied different sound and light effects during the break time.
This project is inspired by the functions of a smart home that matters to me.Â
Tools
Arduino UNO - USB cable
buzzer - RGB LED - bread board - HC-05 Bluetooth module - 4 330 Ohms resistances - 1 1K Ohms resistance
male-male jumper wires
Multimeter
5V power adapter
Stage 1: Tinkercad circuit
prepare all the needed components (Piezo buzzer - RGB LED - 3 330 Ohms resistances)
wiring
Add resistances suitable for the voltage divider connection of the Bluetooth module.
Stage 2: Power Point
we use a screenshot of the Tinkercad circuit and a picture of the electronic component that is not found in Tinkercad (HC-05 Bluetooth module).
Use this background remover to remove the white background and insert the pictures in a PowerPoint slide.
Complete the wiring using lines from Insert menu.
Stage 3: Arduino code
buzzer checker simple code
write a code with all light features
to construct a music code, we need to use pitches.h (It is NOT A LIBRARY).
Here, I used an example that has pitches.h included. then delete all the code in toneMelody and paste the music code I want. Besides editing the buzzer pin number and delete any unwanted code lines from the reference.
Note: in the pitches.h tap, we add the 3define REST 0000 line
Final code
Stage 1: Construct and check each component separately
Check the buzzer with a simple alarm tone.
Check Harry Potter music without a Bluetooth module
Check Super Mario music without a Bluetooth module
Check the Bluetooth module with serial monitor.
Check all the light features light a Bluetooth module.
Stage 2: Construct the final circuit
Build the circuit.
When connecting to electric current, Connect your phone Bluetooth to our Bluetooth module.
from phone GUI, connect to our Bluetooth module
Final outcome
An error appeared in the tone that has REST melody because it is not defined in the pitches.h tap
>> we defined it manually
How to connect and code a Bluetooth module, and the method of constructing the code in many parts then collecting them together in one code has helped me alot in this project.
Connecting the Bluetooth module with voltage divider.