Close

Second Ideas

A project log for Happy Clap Switch

Clap-clap, light goes on. Clap-clap, light goes off. This makes me happy.

alan-greenAlan Green 05/12/2019 at 20:280 Comments

My next plan was bit more involved:

Design Sketch

As you can see, there are a few changes:

WS2812 LEDs from NifteeCircuits

Light: The LED lamp and MOSFET are gone, replaced with an 8-element WS2812S stick from NifteeCircuits. It's definitely not a reading lamp, but it will make enough light to be useful.

Convenient, but a bad idea.
USB-A to 5V Barrel Jack

Power: I found a USB-A to barrel jack cable in my parts cabinet. I also had a compatible barrel jack too. I can't help but feel that this cable is a bad idea because it makes it tempting to plug arbitrary stuff in a a computer's USB port. However it avoids the need for a 7805 regulator, so I'm choosing to use it.

You can tell they're old by the bent pins.
Old encoders and a button

Input: It would also be nice to be able to turn the light on and off without clapping, so I added a button. Also, since we are now using fancy WS2812s, I thought it might be nice to be able to dim the lights and control their color, so I added a couple of  rotary encoders.

Discussions