Pomodoro alarm
It is an alarm that helps you work or study in a specific system to improve performance and prevent you from getting bored while working.
My idea is to make the alarm work remotely via ultrasonic sensor by bringing your hands close to the lenses.
Software
Component
ultasonic sensor
buzzer
wires
preadboard
arduino uno
cardboard
bosch button switch
lcd 16x2 i2c
risestors
led
1- I did was collect the components.
2- I connected the lcd with Arduino
3- I connected the buzzer then.
4- Here I started connecting the LED and switch.
5- Here I was done connecting everything.
How it works ..?
We connect the alarm to a 5V power source.
We turn it on using the switch.
We hear a sound indicating that it's on. When you bring your hand close to the ultrasonic sensor, it will start counting down 25 minutes of operation, then make a sound indicating that it's finished.
When you bring your hand close again, it will start counting down 5 minutes of rest, then make a sound indicating that it's finished.
The cycle begins again until you turn it off using the switch again.
Wiring
1- I collected the components.
2- I connected the lcd with Arduino
3- I connected the buzzer then.
4-I connected the ultrasonic sensor.
5-Here I connected the LEDs.
6- Here I was done and connected the switch.
How did I write the code?
Initially, I divided it into several parts.
Each part was a separate code, such as the buzzer.
I used some examples from the library to write the code for the LCD, buzzer, and switch.
First, I defined the location where I would connect the components.
In the void setup phase, I defined the inputs and outputs, such as the switch, screen, LED, and buzzer sound.
In the void loop, I created the basic code that the process would follow.
I used if states. If the switch is closed, it gives a message. If it is open, it gives a message and performs the next step.
Then, it gives a message that you should place your hand in front of the sensor, and the buzzer makes a sound.
When you bring your hand closer by less than 10 centimeters, a countdown begins at 25 minutes. When it's finished, it makes a sound.
Then, the next step is that you should bring your hand closer again to start your rest time. You have 5 minutes to rest, and when you're done, you beep again. When you're done, you're given a book to start over, and then you have to repeat all the steps again.
Note :
In some parts I did not know how to work, so I used some videos from the diploma and the AI program to help me understand the parts that I did not know enough information about, such as making the timer count down.
Fabricate
1- I cut the cardboard to the sizes and shapes that were chosen.
2- Here I have collected everything and put all the components in their places.
3- Here I show the shape of the body from the side and the location of the button and the power opening
4- Simulation
I've wanted this alarm for a while and didn't know where to get it, so I decided to make it myself.
The Problem
1- There were LEDs that lit up with each step, and it was very difficult to place them inside the prototype.
2- There was also a problem with the switch not working.
The Solution
1- I completely removed the LED, but kept its part in the code until I find another solution.
2- I changed the switch to another one, and it worked normally.
It helps me to write the code and find out the bug and solve it
Doing something you've wanted to do for a while is really great.