For a while now, I’ve been wanting a pair of headphones that automatically pause your music when you remove them. I’d been dreaming up complicated ways to do this, but my friend Kyle reminded me that it is easy and I should just do it. So, I put together a quickie project to do just so! It’s based on an OPTEK OPB606A distance sensor that I got from Jameco, which puts out a low voltage when an object is near it, and a high voltage when all is clear. I whipped together a really sketchy arduino+processing script to allow the sensor to turn the music on and off, and voilĂ , it’s done!
Well, almost. I left my headphones at work, so it will be more done tomorrow evening after I affix the sensor to them. But for now, you can whet your appetite on the circuit diagram aforementioned sketchy code, which are available after the break. Continue reading