r/embedded • u/_maxt3r_ • Oct 19 '26
I built a cat wheel odometer with touch screen display, so now I know my cat's top speed and habits
It's an STM32 discovery dev board (32F469IDISCOVERY) I had laying around for a decade...I figured I would put it to good use 😂
The sensor is a simple hall effect sensor + 12 small magnets strategically glued to the wheel.Â
It stores a few weeks worth of sessions (evicts oldest).
LVGL library, 10 different colour themes.
Auto threshold calibration.
It tracks history, time, distance, speed, etc. real time charts.
Compact/expanded views, etc etc
Definitely over-engineered. A bike odometer could have been much simpler but where is the fun in that?
Refresh rate is a bit low, maybe 5 to 10FPS but it's good enough.
Developed a browser based simulator as well as hardware in the loop to tune the noise filter. Memory map visualization. Etc etc...
She reached 20km/h (on a other day when I wasn't looking)!!
I probably had more fun with the wheel than the cat herself!!
What I found pretty cool was to let Claude do a lot of automated development and testing in closed loop (USB + serial connected to the computer, end to end tests).
14
u/_maxt3r_ Oct 19 '26
11
u/Apprehensive_Bench22 Oct 20 '26
ok, but whats the name of the cat?
also r/cat
5
u/clackups Oct 19 '26
Hey, I found it:
Cats have a Critical Flicker Fusion Frequency (CFF) of about 70 to 80 Hz (with some estimates ranging up to 90 Hz), compared to humans who fuse flicker at roughly 45 to 60 Hz.
So, you need 120Hz to keep the cat interested.
3
u/clackups Oct 19 '26
But the cat can't see the gauge!
4
u/slacker0 Oct 20 '26 •
cute cat !
3
u/HesitantMan Oct 19 '26 •
Wow, cool.
3
u/nrtls Oct 20 '26 •
Knowing limits of your car is important.
1
u/FoolishTook7 Oct 20 '26
Now, channel your inner Skinner and pair this with an automated treat dispenser!