Inspiration
We often find ourselves trapped in endless loops of doom-scrolling, wasting hours on social media without even realizing it. We wanted to transform this passive, unhealthy digital habit into a powerful trigger for physical fitness. That is how Repslock was born—an app that turns digital addiction into immediate physical action.
What it does
Repslock acts as a strict "health warden" for your smartphone. The app monitors your screen time while you scroll through entertainment apps. Every time your preset limit expires (for example, every 5 or 10 minutes), Repslock completely locks your screen. The only way to lift the restriction and regain access to your phone is by dropping down and completing a set of push-up repetitions (reps).
How I built it
We developed Repslock using a combination of mobile and sensor technologies: • Background Monitoring & Overlay: Utilized system-level APIs (such as Accessibility Services or Usage Statistics) to accurately track active app usage and instantly trigger a full-screen blocking overlay when the timer runs out. • Repetition Tracking: Leveraged the smartphone's built-in proximity sensor and accelerometer. By placing the phone on the floor directly beneath the user's chest, the app counts each push-up accurately without needing external hardware. • Frontend Design: Crafted a clean, minimalist, yet assertive user interface to emphasize discipline and focus.
Challenges I ran into
• Sensor Calibration: Fine-tuning the proximity sensor threshold to prevent false counts from head movements, ambient lighting, or shadows. • Background Persistence: Overcoming aggressive operating system battery-savers to ensure the app's monitoring service runs reliably in the background without being terminated. • Bypass Prevention: Designing the lock screen restrictions robustly enough so that users cannot easily force-close or swipe away the app when they are feeling lazy.
Accomplishments that I'm proud of
• Successfully engineered a standalone push-up detection system using only native smartphone hardware, eliminating the need for expensive smartwatches or fitness trackers. • Created a unique screen-time intervention model that doesn't just block access, but actively exchanges dopamine-fueled scrolling for endorphin-boosting physical exercise. • Optimized the background processing logic to minimize battery drain despite continuous usage tracking.
What I learned
We gained deep insights into hardware-software integration, specifically on how to repurpose internal mobile sensors for human activity recognition. Additionally, we learned to navigate the complex privacy guidelines and strict permissions required to deploy background services on modern mobile operating systems.
What's next for Repslock
• AI Computer Vision: Integrating the front camera to analyze and verify proper push-up form, ensuring users aren't cheating their reps. • Gamification & Social Features: Introducing leaderboards, streak tracking, and daily challenges so users can compete against friends to stay disciplined. • Exercise Variety: Expanding the penalty system to include other bodyweight exercises like squats, planks, or sit-ups.