Pidog-groove — PiDog V2 moves to ambient music, on-device tempo detection (no librosa)

Hi all,

Last one from my PiDog V2 tinkering: it listens to ambient music through its own microphone and moves its head and tail in rhythm.

The tempo detection runs entirely on the Pi (no librosa): it locks onto the beat, then predicts the upcoming beats and moves on them, masking the mic while the servos move so it doesn’t lock onto its own noise instead of the music. It only moves head and tail — no legs, no sound output — which keeps it stable and avoids stepping on its own audio. When the music stops, it notices the silence and settles.

It’s MIT-licensed and on GitHub under Pidog-Groove .

Happy to take feedback.