Main Concept
The main concept for my final project is the “Lock In Buddy.” It basically never lets you stop studying. Your laptop acts as the monitor, and the system uses Arduino sensors and p5 to track your behavior while you are studying. If it detects your phone, it triggers a super loud alarm. If it senses that you’re leaving the table using a distance sensor, it activates the speaker and says, “Come back to the desk. You gotta lock in!” I also want to incorporate the Pomodoro technique, where you study for 25 minutes and take a 5-minute break. A student can press a physical button to start the timer, and press it again to stop it. At the end, the system will give you a score based on how distracted you were by environmental variables, like looking at people walking by, eating, or any other interruptions. Essentially, it becomes your study buddy until you graduate.
Lock In Buddy will have these features:
-
- Phone detection alarm
It will detect when the user picks up a phone, uses, or brings their phone to a nearby desk. The monitor is always watching the user to make sure that they don’t use their phone.
-
- Leaving the desk detection
The distance sensor detects when the user moves away from the study area. It plays a warning voice message saying “you gotta lock in buddy. Or you will become homeless”.
-
- Real time distraction detection
The system detects whether you’re being distracted by environmental conditions. Those include looking at people passing by, eating, chair movement, or noise.
-
- Pomodoro timer with physical buttons
Users can press the button to start, pause and stop the Pomodoro session. Also, it will record how long you have been studying for, which is going to be recorded for the scoring system as well.
-
- Focus score generation
P5 will calculate the number of distractions, phone usage count, time away from desk, noise levels, and the number of successful Pomodoro sessions.
How to integrate p5 and Arduino
Phone detection + alarm:
-
- p5.js + Webcam + ML5 COCO-SSD
Or
-
- Arduino light sensor + phone jail box
-
- Start playing the warning alarm saying “Lock in” in p5
Eating or talking:
-
- Sound sensor
Pomodoro Timer with physical buttons:
-
- Buttons with arduino
Leaving desk:
-
- Ultrasonic distance sensor
Focus Score generation:
-
- Arduino continuously reads
- Light sensor → phone removed
- Ultrasonic sensor → left desk
- Sound sensor → eating/talking
- Button → start/stop Pomodoro
- Send those data to p5 and calculate the score
- Arduino continuously reads