top | item 20268482

(no title)

strags | 6 years ago

I discovered that my 17-month old son loves to mess with stereo controls. So I bought a few rotary encoders and neo-pixel rings - build a wooden enclosure with a plastic faceplate, and wrote some code to generate fancy light and audio effects when he turns/clicks the knobs. He loves it.

discuss

order

Sileni|6 years ago

Watch out, you'll have a DJ before you know it.

1024core|6 years ago

I'm thinking of doing the same for my kid. Any photos/description?

strags|6 years ago

It's actually quite a bit louder than this now. Also, the lights aren't quite as infant-retina-searingly-bright as the camera would have you believe.

https://www.youtube.com/watch?v=xtE8oE9GOsM

Currently it's still running my test code, which just lets him mess with volume/pan/pitch. I need to get around to writing something a bit fancier.

Tech deets: It's just a RPi3 with most of the stuff written in Python. I tried to get a bunch of Python audio libs working, but gave up and wrote my own C++ module for sample mixing. The NeoPixel rings are driven via the SPI output, and the rotary encoders/switches are just hooked up to random GPIOs.

cloverich|6 years ago

I would love to learn more about how you did this, and what it looks like. Have you written something up about it?