Preserve pedaling in order for you your laptop to remain on
April twenty fifth, 2025
—
Appeals to nature however, people didn’t evolve to take a seat in desk chairs all day slouching in entrance of computer systems. Nor did we evolve to deal with fixed and near-unlimited entry to scrumptious, calorie-dense meals. It isn’t shocking that so many individuals are at lower than perfect well being ranges. However how can one work up the motivation to get a lot of train day-after-day? ZiedYT achieved that by making his laptop flip off every time he stops pedaling his bicycle.
Zied was impressed by an identical mission from Linus Tech Suggestions printed a number of years in the past, through which a bicycle turns the enter shaft of a generator that powers the pc. In Linus’ setup, pedaling actually powers the pc.
However Zied’s implementation is completely different and much more accessible. Slightly than really powering the pc, the bicycle merely controls software program working on the pc and that software program simulates the results of energy loss.

For that to work, Zied wanted the software program working on the pc (written in Python) to watch, in real-time, the pace of the bicycle’s again wheel. The bike’s rear hub sits on an train stand, so the person can pedal in place whereas “sitting” at their laptop. The {hardware} for pace monitoring consists of an Arduino and a Corridor impact sensor. The latter responds to magnets hooked up to the bike’s spokes with 3D-printed mounts.
The Arduino communicates with Zied’s software program by way of serial and the software program makes the pc behave like it’s shedding energy if wheel pace drops under a set threshold. When that occurs, the display begins dimming and sound will get quieter. If pace drops too low, the pc will shut down altogether and the person will lose any unsaved work. But when they pedal quick sufficient, they will use the PC like regular.