

The frequency f where: $f = \frac = 17857Hz$, a bit more than we need. To simplify, the values of the electronic parts can be determine by the next rule: Assuming we have resistor with value R and capacitor with value C. It is recommended to use ceramic capacitor because it has a better frequency response. As seen in the scheme, the "OUT" pin goes through the resistor, then to A0 pin, and the capacitor connects the resistor/A0 and the ground. In order to filter the signal up to 8Khz we use an analog Low Pass Filter (LPF), using resistor and capacitor. There are not so many music instruments who has energy only at high frequencies. The human ear can hear sounds up to 20Khz, for this project signals up to 8Khz would be enough. The signals you would received from the microphone are voltage values which change according to the voice perceived. The "GND" connection is obvious, and the "OUT" goes to one of the Analog Pins of the arduino.

My module was designed such that 12V were needed at "Vin" but sometimes it can be less so make sure you are not supplying more voltage than needed. All modules usually have the same pins - "Vin","GND" and "OUT". If you use different power sources remember to connect both grounds!!! InputĪfter we have convinced it is easy to control the strip we can connect the microphone. Most arduino can take 7-12V from this pin. Important note at this point - I've used the same power supply for the strip and the arduino, connecting it to the Vin/Raw pin. After you play with it a bit you will find the right resistor to connect the base pin (I used 470 Ohm). You will see that the PWM controls the entire strip, turning the leds brighter and darker, and the variable resistor does the same. At this point I would suggest using a variable resistor and then load the arduino one of the example codes which use PWM and checks the reaction. Each of the base pins of the transistors is then connected to one of the PWM pins of the arduino together with a resistor. The output circle goes as follows - The black wire is connected from the strip to the power, usually 12V, and the red, green and blue wires which usually connected from the strip to the ground, are now connected to the collector pin, followed by the emitter pin which is connected to the ground. The base is the "switch", connected to the arduino, and the arduino will control the switch by changing the pins state and allowing small amount of current to flow through it. We connect our circle through the collector to the emitter.

For those who never used a transistor - the idea is pretty simple, the transistor has three pins - Collector, base and emitter. I chose to use the TIP31C because it can stand high currents, so basically you can connect many led strips together and it will still work. That's why we will use our friendly awesome electronic part - the transistor. In order to light few dozens of leds, you will need a lot of current, much more current than the arduino can give. Let's start with the easy part, the output. I couldn't find mine on Ebay, but a similar one would be on this link )Īrduino uno might be an easy option to choose to build this circuit, I however have used the arduino mini pro, since I wanted to make it as small as possible, put it on a PCB and take it with me to parties :P Output Whatever you work best with)Ĥ x Resistors (The values can be adjustable)ġ x Microphone sensor (EDIT: I was referred by the maker fabi that this link is to an audio sensor which outputs low values when there is sound. Here's a video to show you how it looks like (I think I made a few more adjustments after filming this):ġ x Arduino (Uno,nano,mini-pro. The red leds are controlled by the low frequencies (bass), the green by the mid frequencies and the blue by the high frequencies. Today I will describe a project I built about a year ago, with a led strip (RGB), where the different colors in the strip will turn higher/lower by the different frequencies of a sound wave coming from a microphone. So I decided to write a bit about some former projects before starting to write about current projects, most of them are not working today but at least me or you will be able to reconstruct them using this blog. I started working with an arduino about two years ago and didn't really keep track of my projects, I used to build a project and then tear it down when needed some parts for a new project. This will be my first post in this blog, actually this will be my first post ever. Menu Let's make some signal processing with an arduino 07 November 2014 on Arduino, Led strip, Signal Processing, FIR, LPF, BPF, HPF, sound, audio, microphone, transistor, LED, light, microcontroller, filters
