The bill of materials and the assembled smartwatch.

Piko, Your ESP32 Powered Fitness Buddy

Over on Hackaday.io there’s a fun and playful write-up for a fun and playful project — the Piko, an ESP32 powered smartwatch.

Our hackers [Iloke Alusala], [Lulama Lingela], and [Rafael Cardoso] teamed up to design and manufacture this wrist-worn fitness wearable. Made from an ESP32 Beetle C6 and using an attached accelerometer with simple thresholds the Piko can detect if you’re idle, walking, jogging, or sprinting; and at the same time count your steps.

Design sketches

The team 3D printed the requisite parts in PLA using the printer in their university makerspace. In addition to the ESP32 and printed parts, the bill of materials includes a 240×240 IPS TFT LCD display, a LIS331HH triple-axis accelerometer, a 200 mAh battery, and of course, a watch strap.

Demonstrating splendid attention to detail, and inspired by the aesthetic of the Tamagotchi and pixel art, the Piko mimics your current activity with a delightful array of hand-drawn animations on its display. Should you want to bring a similar charm to your own projects, all the source is available under the MIT license.

If you’re interested in smartwatch technology be sure to check out our recent articles: Smartwatches Could Flatten The Curve Of The Next Pandemic and Custom Smartwatch Makes Diabetes Monitoring Easier For Kids.

Continue reading “Piko, Your ESP32 Powered Fitness Buddy”

Exercise Wheel Tracker Confirms Suspicions About Cats

What do cats get up to in the 30 minutes or so a day that they’re awake? Being jerks, at least in our experience. But like many hackers, [Brent] wanted to quantify the activity of his cat, and this instrumented cat exercise wheel was the result.

To pull this off, [Brent] used what he had on hand, which was an M5Stack ESP32 module, a magnetic reed switch, and of course, the cat exercise wheel [Luna] seemed to be in the habit of using at about 4:00 AM daily. The wheel was adorned with a couple of neodymium magnets to trip the reed switch twice per revolution, with the pulse stream measured on one of the GPIOs. The code does a little debouncing of the switch and calculates the cat’s time and distance stats, uploading the data to OpenSearch for analysis and visualization. [Brent] kindly includes the code and the OpenSearch setup in case you want to duplicate this project.

As for results, they’re pretty consistent with what we’ve seen with similar cat-tracking efforts. A histogram of [Luna]’s activity shows that she does indeed hop on the wheel at oh-dark-thirty every day, no doubt in an effort to assassinate [Brent] via sleep deprivation. There’s also another burst of “zoomies” around 6:00 PM. But the rest of the day? Pretty much sleeping.

Hackaday Prize 2022: Treadmill Becomes Human-Powered Generator

Running on a treadmill is a great way to workout, but what if the effort you put in could be put to use? This treadmill generator from [Amitabh Shrivastava] does just that.

The build starts with a regular old treadmill, which has a motor inside typically used to power the tread. Instead, the motor’s control electronics were removed, and it was repurposed to work as a generator. The output from the treadmill’s DC motor was fed directly to a DC-DC converter. This was then fed to an inverter that generates 120 V AC, which can power appliances that use up to 20-25W based on [tinkrmind’s] running performance.

It’s a fun way to generate power during a workout. If you don’t want your treadmill’s monitor to die in the middle of a Friends rerun, you’ll have to dig deep on those long runs. We’ve seen similar builds before too, with exercise bikes being a popular method of generating electricity. In fact, that’s [Amitabh]’s next project! Video after the break.

Continue reading “Hackaday Prize 2022: Treadmill Becomes Human-Powered Generator”

Exercise Bike Hacked As Input For Xbox 360

If you like playing Grand Theft Auto, you’re pretty familiar with squeezing the triggers for accelerating and braking while driving around. [David Programa] decided this was too easy, and instead developed a system to allow him to pedal his way around the virtual world.

The device relies on a flywheel-based exercise bike, with six magnets placed on the flywheel that triggers a reed switch six times per rotation. The extra magnets give the system better resolution at slow speeds. A Hall Effect sensor would be a more reliable way to build this to survive in the long term, but the reed switch does work. It’s paired with a debounce circuit to keep the output clean. A Raspberry Pi is pressed into service, running a Python program to read a GPIO pin activated by the reed switch, counting pulses to determine the speed of pedalling.

The trigger control used in the Xbox 360 controller is a potentiometer that creates varying voltages depending on its position, allowing it to act as an analog accelerator input. 0 volts corresponds to no input, while the trigger reads 3.3 volts when fully depressed. The Raspberry Pi emulates this with its PWM output, paired with a low-pass filter to create the relevant voltage to inject into the trigger input on a generic Xbox 360 controller.

While it’s a lot less practical than simply using a regular controller, the pedal controls do allow you to get a great workout while playing Grand Theft Auto. Some of the more intense chase missions should be a great way to get your heart rate up, and that’s got to be a good thing.

Ironically, though, the system only works for cars and motorbikes in game. The bicycles in Grand Theft Auto are controlled by mashing the A button instead. Alternatively, you might consider a similar system for playing Mario Kart on the Nintendo Switch. Video after the break.

Continue reading “Exercise Bike Hacked As Input For Xbox 360”

Portable VO2 max measurment mask

Printable Portable Mask Gives You The Numbers On Your Workout

We’re currently in the midst of New Year’s Resolutions season, which means an abundance of spanking new treadmills and exercise bikes. And one thing becomes quickly obvious while using those machines: the instruments on them are, at best, only approximately useful for measuring things like your pulse rate, and in the case of estimating the calories burned by your workout, are sometimes wildly optimistic.

If precision quantification of your workout is your goal, you’ll need to monitor your “VO2 max”, a task for which this portable, printable mask is specifically designed. This is [Robert Werner]’s second stab at a design that senses both pressure differential and O2 concentration to calculate the maximum rate of oxygen usage during exercise. This one uses a commercially available respirator, of the kind used for painting or pesticide application, as the foundation for the build. The respirator’s filter elements are removed from the inlets to provide free flow of air into the mask, while a 3D printed venturi tube is fitted to its exhaust port. The tube houses the pressure and O2 sensors, as well as a LiPo battery pack and an ESP32. The microcontroller infers the volume of exhaled air from the pressure difference, measures its O2 content, and calculates the VO2 max, which is sent via Bluetooth to a smartphone running an exercise tracking app like Zwift or Strava.

[Robert] reports that his $100 instrument compares quite well to VO2 max measurements taken with a $10,000 physiology lab setup, which is pretty impressive. The nice thing about the design of this mask is how portable it is, and how you can take your exercise routine out into the world — especially handy if your fancy exercise bike gets bricked.