Sunday, January 19, 2014

Make a led vu-meter with an Arduino

NOTE: I'm not an programming expert, arduino master or an electronics guru. Do this at your own risk.

This vu meter will be connected to your computer and will light the leds to the music... or any sound. I will be using the Arduino Uno image on the picture, because this I couldn't find the Duemilanove in the software I used.

What you need: 
  • An Arduino (i used my old Duemilanove)
  • A breadboard
  • 10 Led's
  • Around 1 meter of wire.
  • Audio Cable Jack  (you just need the male part)

Connect 10 wires of 10 centimeter each from pin 4 to pin 13, and a ground wire, which goes to GND pin on the duemilanove.


Now you're going to use the led's. Each wire goes to the positive side of the led's. The other side, which is the negative, goes to the wire attached to the GND pin in the arduino board

We need the positive wire of the audio cable jack to be connected to the analog pin number 1. I didn't put the ground cable connected to anything, just stick it in somewhere in the breadboard.


The image above, doesn't show the audio cable. Make sure to stick it the red one which is the positive and just connect the male audio jack to your computer.


The last part is loading the code to the board. This code was not written by me, the author is James Newbould. It was linked on a Brazilian site.

CODE 

This is all. Now you just have to play some music. However, you'll need either to configure your computer to output the sound through the headphones and the speaker or use an audio divisor

Sorry for the bad quality of the following video.



No comments:

Post a Comment