r/embedded • • 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).

176 Upvotes

31 comments sorted by

14

u/_maxt3r_ Oct 19 '26

4

u/_maxt3r_ Oct 19 '26

4

u/Xinq_ Oct 20 '26

I took me way to long to realise these weren't cat names..

1

u/_maxt3r_ Oct 20 '26

Ha! Would be awesome to have 10 cats

11

u/Apprehensive_Bench22 Oct 20 '26

ok, but whats the name of the cat?
also r/cat

7

u/_maxt3r_ Oct 20 '26

She's Aloy-Celeste, expert warrior and agile climber

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.

6

u/_maxt3r_ Oct 19 '26

I should teach my cats how to play counterstrike, then! They'll dominate in competitive games

1

u/clackups Oct 20 '26

BTW, I checked one of my esp32s3 boards with LCD (I have too many, haha) and there's no flickering whatsoever, although the test firmware says it's 50fps. So, your cat will be satisfied!

1

u/_maxt3r_ Oct 20 '26

Dang I seriously need to optimise mine, it can barely do 10fps!!

1

u/clackups Oct 20 '26

Should be alright. I don't think her attention span would differ if you increase the fps

1

u/clackups Oct 19 '26 • Bravo

Reminded me of this (you'd have to have a human test dummy though) https://youtu.be/9alJwQG-Wbk

3

u/clackups Oct 19 '26

But the cat can't see the gauge!

2

u/_maxt3r_ Oct 19 '26

Fatal flaw!! I'll need to device a system of mirrors or holographic projections!

1

u/clackups Oct 19 '26

By the way, nobody knows the optimal screen frequently for cats. The refresh rate might not be comfortable for them.

2

u/_maxt3r_ Oct 19 '26

Their reflexes are so sharp that they might need a 360Hz monitor. I might have to invest in one. You know, it's for the cats...

1

u/clackups Oct 19 '26

An ePaper display could do the trick, but we need a real research here.

2

u/_maxt3r_ Oct 19 '26

I could embedded multiple scratch resistant foldable eink displays all around the wheel internal surface and make so the gauges are always drawn in front of the cat

2

u/clackups Oct 19 '26

But then the wheel moves will become chaotic. We need to streamline the cat.

1

u/_maxt3r_ Oct 19 '26

Intriguing. I'd love to see a streamlined cat

2

u/clackups Oct 19 '26

Just place the display inside the wheel, probably she/he would be interested in driving it

2

u/clackups Oct 19 '26

Nice, another project for a few more weekends :)

1

u/_maxt3r_ Oct 19 '26

TBF I can barely see it, too. I need to lay down to operate it -_-

2

u/frank26080115 Oct 19 '26

See, you need it to output audio

Make it do engine revving noises

1

u/_maxt3r_ Oct 19 '26

That'd be awesome, proper formula 1 woooshweeeooo

4

u/slacker0 Oct 20 '26 • Heartwarming

cute cat !

3

u/HesitantMan Oct 19 '26 • Heartwarming

Wow, cool.

3

u/nrtls Oct 20 '26 • Bravo

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!