Pages: [1]   Go Down
Author Topic: reading audio with arduino  (Read 748 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have LED strips that I would like to control based off of frequencies picked up from a microphone. Ideally there would be six different sections controlled independently, depending on the frequencies that the microphone picks up. Say one pin would be the lowest tones up to a fifth or sixth pin being the highest tones. The LEDs add up to about 10amps and 12V. I have previously powered them using mosfets on the analog side of my UNO, attached to an appropriate power source of course.

How do I add a microphone into the circuit? Will there be other pieces of hardware necessary? I have used a DIY kit with an electret microphone before and hooked it up to a motor which then responded to sound, but it had nothing to do with an arduino, just basically used the microphone as a switch. I would just use that but I'm not sure how to add it in either and I would like to include the arduino so the lights can fade on/off and blink in different patterns instead of just to the beat.

Thank you!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26523
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Take a look at this chip.
Does the frequency analysis, you read the digital data and drive your MOSFETs accordingly.

* MSGEQ7 7-band EQ chip.pdf (145.54 KB - downloaded 6 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh this is cool! there are even some youtubes out there showing me how it works. so is this the only other part I would need? Or do I need a slew of resistors and capacitors to make it work?

Thanks for the reply
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 603
Posts: 33408
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just the chip, check out:-
http://skoba.no-ip.org/msgeq7/index.html

Also see:-
http://arduino.cc/forum/index.php/topic,146044.0.html
« Last Edit: February 01, 2013, 12:13:41 pm by Grumpy_Mike » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

awesome tutorial!! so what if I bought a graphic equalizer? could I hook it up to the arduino??
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 603
Posts: 33408
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No, a graphics equalizer is in effect a mixer, it's output is a single channel. If you want to use one for your project then you will have to hack inside it and get at the signals before they are mixed together and feed each one of those into a peak detector and then into an analogue input.
Logged

Pages: [1]   Go Up
Jump to: