Spy On Your Cat To Make Sure It Gets Its Paws In

A shot of the underside of a "One Fast Cat" cat wheel with an installed ESP8266 and hall effect sensors attached to the base.

[Scott Cutler] has a young cat, [Cygnus], that loves to run on a cat wheel and [Scott] had some some important questions about [Cygnus]’s usage of the cat wheel like, how often it’s used, what direction is preferred and how fast does [Cygnus] go. To answer these questions, [Scott] put some telemetry sensors onto the cat wheel and analyzed the results.

An ESP8266 microcontroller and two 3144E hall effect modules were used to sense eight magnets glued onto the outer housing of a “One Fast Cat” cat wheel. [Scott] installed the ESP8266 and hall effect modules onto the base support for the wheels, using 3D printed brackets to secure them.

For the software side, the ESP8266 attaches an interrupt handler whenever a sensor passes by, recording a window of three previous measurements for valid sample determination and, if accepted, uses the time between samples to infer direction and speed. The ESP8266 connects to a pre-configured local WiFi network and has a telnet interface to extract stored log information, in the form of JSON data.

[Scott] has some nice graphs and other data visualizations on [Cygnus]’s usage, including a preference for running at 3 AM, achieving a maximum speed of 14 mph and an average of 4 seconds per run. The source is available on GitHub and the STL files are available embedded in [Scott]’s write-up. We’ve featured cat exercise trackers before with a giant hamster wheel outfitted with a Raspberry Pi and it’s nice to see some options that allow for a retrofit option in addition to a complete DIY solution.

8 thoughts on “Spy On Your Cat To Make Sure It Gets Its Paws In

    1. If you followed the link you’d immediately see:
      “Technically, I only needed a single sensor to measure the speed. But I wanted to measure the direction as well, and the sensors are cheap. The idea is simple: the two sensors are close together, while the magnets are (relatively) far apart. If the timing looks like A-B——A-B——A-B, then it is going in one direction. If the timing looks like B-A——B-A——B-A, then it is in the other direction.”

      After he first mentioned “3144E Hall-effect sensors:”

  1. I got that wheel thinking it would help my fuzzy couch potatoes get some exercise. Like the less fuzzy type, they had other ideas. I passed the wheel on for the next contestant to try out.

    1. that is true if the wheel diameter is too small. The wheel shown in this video (One Fast Cat) Wheel is around 48″ so it is large enough for a domestic cat. Probably too small for a wild cat like a full serval cat.

Leave a Reply to MartyKCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.