Giter Club home page Giter Club logo

sound_reactive_lights's Introduction

Sound Reactive LED Strips

I set this up for my buddies at the Embassy, a camp at Burning Man 2015. We strung 5 sets of 5 meter LED strips off of PVC ribs on our largest quonset.

Parts and Hardware

Power Board

I used this tutorial to develop a power board. I was able to run about 15A of average current through 3 NPN transistors. I then strung 5 strands of 14 gauge wire from each transistor as well as 5 strands of wire from the power output of a "30A" AC to DC power supply running from a generator.

Sound Detection

I used the Sparkfun Sound Detector to pickup the signal from which I used the straight audio signal as the analog input to the Arduino.

Signal Processing and Color Computation

An Arduino ATMega2560 was used as the development platform. I used a 9V battery as the power source in order to reduce the chatter in the signal that would result from using the power output from a DC power supply.

Algorithm Design

The signal is run through an FHT, a cousin of the FFT, and then low pass filtered and used along with user input to create a color in hue, saturation, and value color space.

Thanks

The original code was modified from a tutorial by Sario Salvi. This code had an Artistic License 2.0, which is referenced below.

I combined this code with some original work from myself and some embedded wizardry from this tutorial by Ven Te Chow Hydrosystems Lab at the University of Illinois.

License

This code is free for use by anyone that so desires to use it for anything that they would like as long as it follows the original restrictions set forth in the wide variety of licenses below.

The original code for the lightbox tutorial referenced above follows the Artistic License 2.0.

Below is the copyright included with the use of the FHT for frequency analysis from which I based most of the Arduino ATMega2560 code on.

This code uses the Arduino FHT library from OpenMusicLabs. That library is copyright by it's respective owner. The code here is also includes portions from the AnalogIsrLogger program. These libraries are copyright by their respective owners. No license was provided.

For portions of the code that are not obtained from the aforementioned sources, the following University of Illinois/NCSA license (a permissive license based on the MIT/X11 license and the 3-clause BSD license).

Copyright (c) 2012 University of Illinois

All rights reserved.

Developed by: Ven Te Chow Hydrosystems Lab, University of Illinois

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution.

  • Neither the names of Ven Te Chow Hydrosystems Lab or the University of Illinois, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.