Make a clap actives LED with Arduino. via instructables
This Instructable shows you how to build a clap activated LED strip. The whole project is based on the Adafruit’s Secret Knock Activated Drawer Lock, where the user can record a secret knock pattern which will open the lock inside the drawer. I thought that I could use this to siwtch an LED strip on and off with a handclap pattern. So let’s begin!
Step 1: Components
I used the following components to build the circuit:
– 1x Adafruit Trinket 5V
– 1 x Simple white LED strip (1,5 m long)
– 1 x LED strip snap connector
– 1 x Arduino compatible sound detection module (Microphone)
– 1 x Green LED
– 1 x 240 Ω resistor
– 1 x 10 kΩ resistor
– 1 x STP16NF06 transistor
– 1 x Pushputton
– 1 x 12 VDC power supply
– 2 x Panel mount DC barrel jack – Female (size depends on the power supply’s jack size)
– 1 x DC barrel jack – Male
– 1 x Breadboard (for prototyping)
– 1 x Solderable protoboard (for the final circuit)
– two core wire for the LED strip
– single core wire for the circuit
– female headers (if you don’t want to solder the microphone and the trinket directly onto the protoboard)
– Soldering equipment
For the casing I used:
– 1 x Aluminum profile for LED strip (2m long, with end caps and opal cover)
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.