loading

Hi everyone!

This post is made by Sergio García Calvente, Tatiana Castillo Pérez y Míguel Macías Macías to show you our project, this project was for 'Creative Electronics' a Beng Electronics Engineering 4th year module at the University of Málaga, School of Telecommunications(www.etsit.uma.es)

When teachers told us to make a project with Arduino the first idea we had was to make something using music and lighst but in special we wanted to do something portable.

To explain how we make this, we'll split the project in 4 steps:

  • Step 1: Make the box.
  • Step 2: Solder the circuit.
  • Step 3: Put the lights.
  • Step 4: Make the code.

To make the project we use:

  • 1 Arduino Leonardo.
  • 1 Strip board.
  • 1 Microphone.
  • 1 Terminal block.
  • 24 White leds.
  • Some RGB LED stipt light.
  • Wires.
  • 2Hinges.
  • Some wood.

If you need to amplify the output signal from the microphone:

  • 1 2N2222A transistor.
  • 2 110nF Capacitors.
  • 2 10k Resistors.
  • 1 100k Potentiometer.

If you need to use a voltage regulator:

  • 1 7805 Voltage regulator.
  • 1 330nF Capacitor.
  • 1 110nF Capacitor.

Step 1: Make the Box.

First of all is to make the wood box, you can buy or recycle one if you want.

The process to make the box is:

  1. Mark the dimensions in the wood.
  2. Cut the pieces and sand down them.
  3. Make the holes with a drill.
  4. Paint the pieces.
  5. Join the pieces with wood glue or silicone.
  6. Use a hinge to join the top one.

Step 2: Solder the Circuit.

As we need to amplify the output signal from the microphone, we include an amplifier.

The 100k potentiometer is used to regulate the gain of the amlifier.

Some LED stript light needs 12V to work correctly so we use a 7805 voltage regulator. Now we can use 12V in the LED strip and 5V in the rest of components.

In the images we show you the schematic of the circuit that we solder.

Step 3: Put the Lights.

We solder 2 squares with 12 LED to put in the holes that we drilled in the box. Between the squares we add 6 LED strip with 6 LED each one.

In the schematic we show how to connect LEDs with Arduino and DC regulator.

Step 4: Make the Code.

As we said in the introduction we want to use one different colour for each frequency band. We use the FFT Arduino library to calculate the Fourier Transform of the signal that we read from the microphone. In the code we set the point to calculate the Fourier Transform at 64 so we take an output of 32 bits with the amplitude for each frequency band.

We can't use the first and second band because their are so noisy. We use the 3...6 band to turn on the white colour, 7...14 band to turn on the red one, 16...23 to turn on the green one and the last 8 bands to turn on the blue one.

Step 5: Enjoy!

We finished the process! Now you can enjoy the music with your new light box. It will bright according to the music you are listening at each moment.

FFT library web:

http://wiki.openmusiclabs.com/wiki/ArduinoFFT

Arduino web:

https://www.arduino.cc/

<p>hello</p><p>it is not really clear for me ......</p><p>can you give a complete schematic of all ?</p><p>thancks for that</p><p>best regards</p>
<p>Hello, we made this schematic to show you how to connect leds with Arduino and DC regulator, as you can see LEDs bright when Arduino output is low. So the current to bright them is given from the regulator. With common anode leds you should make a current amplifier because Arduino can't give it to them.</p>
<p>eldoud</p><p>how do you do to give power to the led Arduino don't have enough to do it ?</p>
<p>Hi eldoud, leds take the power from the DC regulator, we bought common anode leds so Arduino doesn't need to give the power, it just controls when leds bright. I hope this helps you.</p>
<p>The song Easy Street will forever remind me of Negan, lol. Great instructable :)</p>

About This Instructable

1,416views

16favorites

License:

More by Sergiogc92:Light Box (using Frequency) 
Add instructable to: