Fork me on GitHub

Project Notes

#404 arzamatron

Whipping together a simple sound-activated party decoration with the other half of the Fretboard guitar some LED strips.

Build

Here’s a quick demo..

clip

Notes

I’ve had the other half of the guitar I used for LEAP#018 Fretboard sitting on a shelf ever since. It’s almost been thrown out a number of times, but luckily I didn’t as it proved to be inspiration for this last-minute idea for a party decoration.

I only had a couple of hours so I used a few modules here where I think I would have preferred to use discrete circuits. But it did the job!

The basic idea:

  • sound input
  • 2 LED strip circuits independently controlled
  • simple Arduino sketch to sample the sound and drive the LED strips with PWM

Driving the LED Strips

I had some 12V LED strips available in vaious colors. I chose some fixed color strips: one blue, the other white.

As they require 12V, I’m powering the whole device from a 12V supply (actually an old DVD power adapter I think).

IRF3205 N-channel MOSTFETs provide low-side control of the LED strips, yet can be adequately switch with only 5V on the gate (and a common ground).

The LED control circuitry is mounted on a small piece of protoboard that is pinned to insert as a shield on an Arduino Uno.

Sound Module

I had a Sound Detection Sensor Module in the parts box and decided to use this rather than build a disrete input sircuit.

I didn’t read the specs before hand - and it turns out this is not exactly what I was after. I assumed it provided a continous analog input, however it turns out is is a digital sensor circuit:

  • it has an on-board threshold setting (potentionmoter)
  • output is either HIGH or LOW is sound intensity is above or below the threshold

Unfortunately, I only realised this after the build, which is why the sketch is written assuming continuous input, and why I added a separate threshold input (100kΩ pot on A2)

The Arduino

I used an Arduino Uno for the build (because of time), but did envisage using a bare ATmega328 or even ATtiny, hence why I put a 7805 on the protoboard, and used this to power the Arduino directly from 5V.

There is a jumper to connect the 5V line. with the jumper remove, one can power the Arduino over USB (for programming and testing), while driving the LEDs with 12V.

Performance and Next Steps

Although the party is over now, I may make some further mods. Main two ideas:

  • replace the sound module with an electret or piezo transducer circuit to provide continous input
  • substitute the Uno with a discrete mcu - perhaps even an ATtiny

Construction

Protoboard “shield” layout:

protoboard_layout

Shield construction:

protoboard_shield_front protoboard_shield_rear

Installed:

arzamatron_internals

In operation:

Build

Schematic

Breadboard

Schematic

Credits and References

About LEAP#404 ArduinoLEDSensorsCraft

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader