Dancing Lights

visualization of sound using LEDs

This was a project for one of my classes at UC Berkeley, EE 40: Introduction to Microelectronic Circuits. At the end of the semester we were given the opportunity to devise our own lab project. Purpose of the project is to create an active bandpass filter that relates amplitude of sound to number of LEDs that are lit up. Circuitry, detailed below, has the following chain of events:

  • Signal from piezoelectric microphone is conditioned to fall between 0-3V with a DC offset of +1.65V
  • Conditioned signal enters a Sallen-Key High Pass Filter to remove DC offset, along with other low freq signals, and magnify signal to +/-9V
  • Signal goes through Sallen-Key Low Pass filter to chop off high frequency content
  • Signal goes to a final op amp with variable gain using a potentiometer which is activated using a button switch
  • Final signal goes to voltage divider which evenly divides the amplitude of signal into 4 sections
  • Each point of division is forked into an op amp with unity gain, to prevent leakage current, that drives two LEDs with a BJT
Demo of circuit reacting to song "Light Pollution" by Lifeformed. Song from the game Dustforce.
Initial amplification and conditioning of signal that feeds into custom circuitry below.
Schematic of filter and drive circuitry.
On the left is initial breadboard creation as a result of a few labs. On the right on can see extra circuitry created to achieve "Dancing Lights" portion on long breadboard.