# Interface max9814 module to Arduino board

**URL:** <https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711>\
**Category:** Audio\
**Created:** [September 18, 2025, 10:57am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711 "2025-09-18T10:57:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 18, 2025, 10:57am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/1 "2025-09-18T10:57:35Z")

</div>

how to calculate Vrms from max9814 which is connected to Arduino. and ADC values are below  
136  
32  
166  
0  
123  
42  
94  
1  
12  
171  
0  
135  
0  
118

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [September 18, 2025, 4:21pm UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/4 "2025-09-18T16:21:16Z")

</div>

“how to calculate Vrms from max9814 which is connected to Arduino. and ADC values are below”

**Request for Information to Assist with Your Problem:**

I find your question interesting, but I have a problem understanding your setup. After reading your description, I still have no idea what your actual configuration looks like. To help you better, please provide the following:

1. **Annotated Schematic:** Post a clear, annotated schematic of your setup showing all connections, including power, ground, and any power supplies. I do not work with Fritzing diagrams or unclear pictures. However, a readable photo of a hand-drawn schematic is perfectly fine.

2. **Technical Details:** Provide links to the technical information for all hardware components used in your setup. There are many different and sometimes incompatible devices that look similar but behave differently, so it's crucial that we have accurate information. Avoid linking to marketplace sites like Amazon that often lack detailed specifications.

3. **Post the Code:** Without that we cannot determine what the problem is.

4. **Why This Matters:** All you want is to make everything work together correctly, and all we want is to help you achieve that. By providing the correct details, we can offer more targeted and effective assistance.

**Helpful Resources:**

- **Programming Arduino:** For learning how to program Arduino, you can start with this course: [Learn to Program Arduino](https://startingelectronics.org/software/arduino/learn-to-program-course/)

- **Arduino Cookbook Source:** For a comprehensive guide, you might also find useful information here: [Arduino Cookbook Discussion](https://forum.arduino.cc/t/new-in-the-forum/1291731/5)

Please share these details so we can guide you toward the right solution. We're here to help!

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [September 18, 2025, 4:38pm UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/5 "2025-09-18T16:38:14Z")

</div>

1. Square all the values
2. Add all the squared values computed in step 1
3. Divide the sum computed in step 2 by the number of values.
4. Take the square root of the value computed in step 3

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/0/0/3/003390829d6d0b72de3ae3a225d436efa4963e4a.png)

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 18, 2025, 4:39pm UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/6 "2025-09-18T16:39:27Z")

</div>

> [@abhishek1809](#):
>
> ADC values are below

What ADC are we talking about?

You can only get a simple “at this incessant of time” reading from an ADC. This can not be converted into an RMS value.

At the very least you would have to collect many samples from your ADC and get an average reading first. Then convert this average to an RMS value.

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 19, 2025, 3:55am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/7 "2025-09-19T03:55:15Z")

</div>

hi,

My goal is to detect vehicle sounds (cars and heavy trucks) approaching the microphone from a distance. I am currently evaluating a microphone with a MAX9814 module (see schematic) whose output is connected to the Arduino UNO ADC. I am sampling the analog output on A0 and sending readings to the serial monitor for analysis.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/3/b/b/3bbf69f33304299b6846f8d7b9885b137cbf64be.png)

output connected to Arduino UNO board ADC

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/a/d/1/ad155cff58c64cf2243f32c3af0281b91fcdfbe3.png)

simple code as below  
#include \<SoftwareSerial.h\>  
int sensorValue;  
void setup() {  
// initialize serial communication at 9600 baudrate  
Serial.begin(9600);  
}  
void loop() {  
// get the analog value  
sensorValue = analogRead(A0);  
// display the analog value to serial monitor  
//if (sensorValue\>220)  
[//Serial.print](https://Serial.print)(millis());  
[//Serial.print](https://Serial.print)(",");  
Serial.println(se  
nsorValue);  
}  
please advice way is proper or not

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 19, 2025, 5:02am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/8 "2025-09-19T05:02:08Z")

</div>

> [@abhishek1809](#):
>
> please advice way is proper or not

Not proper.

This is a long way off the description in your initial post. And the thread's title, because it is so vague and gives no idea of what you want to do.

> [@abhishek1809](#):
>
> how to calculate Vrms

I suggest, in the light of what you wrote, to change it to something more sensible. As you don't want the RMS value at all, you lead us all astray on that.

Why on Earth are you using software serial, and at such a slow baud rate!

So what does that graph show you and how are you interpreting it? It is meaningless as far as I can see, so please explain what is means to you.

You might want to look at this [How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966) before you proceed any further.

It will tell you, amongst other things, how to post code correctly here. Because that code is not posted correctly.

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 19, 2025, 5:39am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/9 "2025-09-19T05:39:58Z")

</div>

hello Grumpy,  
i apologize for the inconvenience and forget my previous post

I am working on a project where I need to detect the sound of vehicles (cars, heavy trucks) from a distance of around 100 m. The microphone will be placed in an open area on land, and the goal is to identify when a vehicle is approaching.

Currently, I am evaluating microphones like AOM-5024L-HD-R and CMA-4544PF-W, connected to a MAX9814 preamplifier module, with the output fed into an Arduino Uno ADC.

My questions are:

1. What type of microphone is most suitable for long-distance vehicle detection (100 m)?
2. How can I calculate whether the microphone output voltage will be sufficient for reliable detection at that distance?
3. Should I use additional filters (e.g., low-pass or band-pass) to separate vehicle sound from background noise (wind, people, etc.)?
4. Would I need a higher-gain preamplifier or a different approach (like a geophone or array microphone) for better detection?

Any advice, references, or design suggestions will be very helpful.

Thank you!

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 19, 2025, 5:56am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/10 "2025-09-19T05:56:56Z")

</div>

> [@abhishek1809](#):
>
> or a different approach (like a geophone or array microphone) for better detection?

I like the idea of a geophone. But then that probbly would be triggered by people walking next to it as well as distant approach.

I am assuming the 100 m range is 100 meters and not miles. I think the type of microphone is irrelevant here.

> [@abhishek1809](#):
>
> - Should I use additional filters (e.g., low-pass or band-pass) to separate vehicle sound from background noise (wind, people, etc.)?

In theory you should but it is difficult to say what sort of filter you might need.

However, I think the best approach would be to involve some sort of AI sound recognition system,

These links might help you with this:-  
sound recognition:-  
[https://www.eetasia.com/news/article/Data-is-King-for-AI-Sound-Recognition](https://www.eetasia.com/news/article/Data-is-King-for-AI-Sound-Recognition)

AI - Google’s flagship machine learning library: “TensorFlow“

> **[Get started with machine learning on Arduino | Arduino Blog](https://blog.arduino.cc/2019/10/15/get-started-with-machine-learning-on-arduino/)**
>
> This post was originally published by Sandeep Mistry and Dominic Pajak on the TensorFlow blog. Arduino is on a mission to make machine learning simple enough for anyone to use. We’ve been working with the TensorFlow Lite team over the past few months...

And if you want to switch to a Raspberry Pi the search for the free MagPI download of issue 98,  
Recognising different sounds using AI MagPi 98 page 30

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [September 19, 2025, 11:40am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/11 "2025-09-19T11:40:06Z")

</div>

> [@abhishek1809](#):
>
> What type of microphone is most suitable for long-distance vehicle detection (100 m)?

A Parabolic microphone would be a good choice.

 ![telinga_universal_1](https://europe1.discourse-cdn.com/arduino/original/4X/7/f/4/7f4651429ba06abc331b4698b4df6a8fb2906661.jpeg)

Also see post #5

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [September 19, 2025, 3:50pm UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/12 "2025-09-19T15:50:07Z")

</div>

Here is something that might work but I think it is to pricey for your project. DPA 4017B Shotgun Microphone.

It appears you want to distinguish trucks from other vehicles (cars, bikes, etc.), or just detect _any_ large moving object? Tell me which of those you mean (and what the environment is like line of sight, outdoors, day/night, moving or stationary. Have you looked at using using radar, lidar, cameras, or other acoustic sensors?

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 23, 2025, 3:59am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/13 "2025-09-23T03:59:53Z")

</div>

We use both acoustic and seismic sensors to detect vehicles and distinguish moving vehicles outdoors under all weather conditions. The product will be stationary in an open field and is designed for remote-area.

---

<div class="post-metadata">

**Author:** ![Paul\_KD7HB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_kd7hb/32/1127958_2.png) [@Paul\_KD7HB](https://forum.arduino.cc/u/Paul_KD7HB)\
**Post date:** [September 23, 2025, 4:49am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/14 "2025-09-23T04:49:21Z")

</div>

What sounds are you interested in? Engine sounds? air moving around the moving vehicle? The sound of rubber tires on concrete? On crushed rock? On asphalt paved road? What sounds do electric vehicles make? Some sounds will be below what humans can hear. Some will be way above what humans can hear.

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 23, 2025, 5:43am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/15 "2025-09-23T05:43:54Z")

</div>

hi Paul\_KD7HB,

any sound like engine and rubber tires on concrete or soil. aim is to detect vehicle approaching towards the mic.

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 23, 2025, 6:21am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/16 "2025-09-23T06:21:09Z")

</div>

> [@jim-p](#):
>
> Also see post #5

And also see post #6 that tells you why that will not work. What do you actually get when you try the method in post #5? You never told us.

Now I know you are not apt to believe anything I say, so look at this link which tells you one way of doing it correctly.

[https://www.electrical4u.com/rms-or-root-mean-square-value-of-ac-signal/](https://www.electrical4u.com/rms-or-root-mean-square-value-of-ac-signal/)

Then compare that with what you did in post #5

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 23, 2025, 6:56am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/17 "2025-09-23T06:56:23Z")

</div>

hi Grumpy,

i got idea how to calculate rms value . but During lab testing the Max9814-based microphone is sensitive to noise sources (e.g., fans and air movement). I am investigating signal-processing and hardware methods to remove these unwanted noises from the module output.

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 23, 2025, 7:05am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/18 "2025-09-23T07:05:34Z")

</div>

> [@abhishek1809](#):
>
> I am investigating signal-processing and hardware methods to remove these unwanted noises from the module output.

Good luck with that, although unless you understand filter design I think you will struggle.

I did, at one time when I was a University lecturer, give an MSc lecture course on signal processing, and it can get very mathematical.

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 23, 2025, 7:30am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/19 "2025-09-23T07:30:19Z")

</div>

dear Grumpy,

is there any hardware circuit to remove those noise. because am new to analog circuit design.

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [September 23, 2025, 8:17am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/20 "2025-09-23T08:17:37Z")

</div>

> [@abhishek1809](#):
>
> is there any hardware circuit to remove those noise.

Well an external filter would class as hardware, but you still need to know how to design filters. A filter can be one of several types

1. Low Pass
2. High Pass
3. Band pass
4. Band stop - sometimes known as a notch filter

All filters have an order like order 1, 2, 3 and so on. The order of the filter is how quickly the filter attenuates the signal the further away from the "break frequency" the signal is. This break frequency is the point where the signal has dropped to half the value.

Then there is the shape of the filter. The main one is called a Butterworth Shape, where the signal drops steadily as the frequency you are filtering gets further away from the break frequency. But there are other types called things like Chebyshev , Bessel, and Caurer, types that trade off a faster drop-off rate for some ripple in both the pass band and the stop band. That is in places before the break frequency , and in the ultimate amount of attenuation you get.

However, there is not much difference from implementing these in hardware or through signal processing software.

Sadly there is no filter that will just stop the noise you do not want. The only way to do that is with correctly setup series of samples that you do want and do not want, like the AI techniques I described in my post#10.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [September 23, 2025, 9:37am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/21 "2025-09-23T09:37:53Z")

</div>

The RMS calulation in post #5 is correct for any set of data points. It's the definition of RMS for discrete data points. It applies to **any** signal not just AC

You are not likely to build any analog filters to do what you want.  
A DSP IC would be more appropriate

---

<div class="post-metadata">

**Author:** ![abhishek1809](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/abhishek1809/32/1126595_2.png) [@abhishek1809](https://forum.arduino.cc/u/abhishek1809)\
**Post date:** [September 23, 2025, 10:18am UTC](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711/22 "2025-09-23T10:18:30Z")

</div>

dear Grumpy,  
thanks for your input will check AI techniques.

[Next page](https://forum.arduino.cc/t/interface-max9814-module-to-arduino-board/1406711.md?page=2)
