Hacker News new | ask | show | jobs
by strags 2546 days 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.
4 comments

Watch out, you'll have a DJ before you know it.
Tread carefully, you're creating a young Look Mum No Computer! https://www.youtube.com/channel/UCafxR2HWJRmMfSdyZXvZMTw
Well now that I've seen the Furby Organ I'm not going to sleep tonight...
Watch the one where he makes some of them nekkid, it's more recent. THAT is terrifying.
I'm thinking of doing the same for my kid. Any photos/description?
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.

He really does love it. Amazing! Hahaha
That's awesome! Great job!
I would love to learn more about how you did this, and what it looks like. Have you written something up about it?