Jump to content

Arduino sound levels

piemadd

Just a quick question, is there a way to shove the 3 connections from a 3.5mm cable into the arduino. Can I then have each side get measured on a scale from 0-1000 by the loudness聽and then get the individual values into the serial monitor.

i

i like trains 馃檪

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, Implosivetech said:

Do you think I could use this, and then replace the mic with a mono input?

https://www.sparkfun.com/products/12642

I'm inclined to say yes but I'm honestly not sure what kind of voltages the mic would normally produce. You could always just try it :P

Link to comment
Share on other sites

Link to post
Share on other sites

8 hours ago, Implosivetech said:

Just a quick question, is there a way to shove the 3 connections from a 3.5mm cable into the arduino. Can I then have each side get measured on a scale from 0-1000 by the loudness聽and then get the individual values into the serial monitor.

Yes you can, but I would not re commend it since the arduino is really slow when it comes to sampling data without a HW decoder, and even if it was fast enough, you would be sampling a waveform, not the amplitude (or loudness in plain terms). I would personally use a simple RC peak detector circuit and measure that. Cheer!

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, dany_boy said:

Yes you can, but I would not re commend it since the arduino is really slow when it comes to sampling data without a HW decoder, and even if it was fast enough, you would be sampling a waveform, not the amplitude (or loudness in plain terms). I would personally use a simple RC peak detector circuit and measure that. Cheer!

wit my experience, the arduino data sampling is fast enough for me 1000 times per second is what i have gotten.

i like trains 馃檪

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Implosivetech said:

wit my experience, the arduino data sampling is fast enough for me 1000 times per second is what i have gotten.

1k samples per second is too slow for audio. As a general rule of thumb (for sampling signals) you want to have at least a sample rate 4 times higher than the highest freq component on your signal. Read more here: http://www.ni.com/white-paper/4333/en/#toc2

Again, if you only want to know how "loud" an audio waveform is with an arduino, you can simply use a peak detector:

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now