User builds physical app-blocking hourglass using Claude Code
A hobbyist combined hardware and AI to create a physical device that locks distracting apps on an iPhone when flipped.
The short version
- The device uses an ESP32-C3 microcontroller and a motion sensor to detect when the hourglass is flipped.
- Claude Code wrote the firmware in MicroPython and helped develop a React Native and Swift iPhone app.
- Flipping the hourglass blocks apps like Instagram and TikTok while allowing others like WhatsApp to remain accessible.
- The project includes a custom circuit board with 211 LEDs to simulate flowing sand.
Why it matters
This project shows that AI coding tools can be used to create complex hardware-software integrations by people without deep engineering experience. It moves the conversation of AI from simple chat to building functional, physical objects.
Bridging software and hardware
A Reddit user named u/RamonvanDijk recently shared a project that combines physical objects with digital focus tools. The creator built a functional hourglass designed to block distracting apps on an iPhone. This project highlights how AI can help individuals build hardware products without extensive prior experience.
The core concept relies on a physical action to trigger a digital state. When the user flips the hourglass, an accompanying app automatically restricts access to social media platforms like TikTok and Instagram. This creates a dedicated focus session where the user is less likely to be interrupted by notifications or habit-driven scrolling.
As reported by xda-developers.com, the creator used Claude Code to manage the heavy lifting of the development process. The tool helped write the firmware and the mobile application, allowing a hobbyist to execute a complex technical plan. This demonstrates a shift toward 'vibe coding' where the user provides the vision and the AI handles the syntax.
The technical architecture
The hardware side of the project utilizes an ESP32-C3 microcontroller, which provides the necessary Bluetooth connectivity. A motion sensor is integrated into the hourglass to detect the flipping motion. Additionally, a small OLED screen was used in the initial prototype to display information to the user.
Claude Code was tasked with writing the firmware in MicroPython. The AI started by writing basic functions to detect the connected components before moving on to more complex logic. This included the hourglass animation, motion detection, and the specific rules for the focus sessions.
On the software side, the creator used Claude to develop an iPhone app built with React Native and Swift. This app communicates directly with the hourglass over Bluetooth to sync the app states. The system is designed so that when the hourglass is flipped, certain apps are blocked while others, such as WhatsApp, remain accessible for necessary communication.
Visuals and custom design
To make the device more immersive, the creator went beyond simple electronics. They used Claude to design a custom circuit board featuring 211 tiny LEDs. These LEDs are arranged to mimic the appearance of sand flowing through the glass as the motion sensor triggers the change.
The physical housing of the device was created using 3D printing. This allowed the creator to build a custom enclosure that fits the internal components while maintaining the traditional look of an hourglass. The project is currently a work in progress as the custom board still needs to be manufactured and tested.
The creator documented the entire building process, including the specific challenges faced during the design phase. By sharing the journey on YouTube, they showed how they navigated hurdles despite having a lack of prior hardware experience. The project serves as a blueprint for how others might use AI to prototype physical gadgets.
Alternative focus methods
While this project is unique because of its physical component, it builds on existing digital focus tools. The creator mentioned using a combination of the free, open-source Foqos app and NFC stickers to achieve similar results. These stickers allow a user to tap their phone against a surface to lock or unlock specific apps.
The hourglass takes this concept a step further by automating the process through motion. Instead of needing to find and tap a specific sticker, the user simply interacts with a decorative object. This reduces the friction of starting a focus session, making it easier to stick to a productivity routine.
The project also includes a manual override for users who need to end a session early. To do this, the user must physically get up and tap their phone against an NFC key. This physical requirement ensures that ending a focus session is a deliberate action rather than a mindless habit.
The future of AI prototyping
This project is part of a larger trend where AI is being used to bypass traditional barriers to entry in engineering. The creator's ability to build a functional, multi-component device highlights the growing capability of tools like Claude Code. It moves the needle from simple web development to complex systems integration.
Try it
Look for
Sources and links
- VideoYouTube video youtu.be
- ReportingXDA: the article we sourced
Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.