I have been using the Analog Discovery 2 for some data collection for reading a square wave, and it has worked perfectly. I found that the True RMS voltage in the logger gives me the best measurement. I want to recreate this same measurement with a microcontroller using a separate program, but I can’t figure out the exact formula WaveForms uses. From the documentation, I know that True RMS = Sqrt(sum(xi^2)/N) but I have no clue where to find where WaveForms gives me N. If I’m trying to read a 6.25 kHz square wave, and I have logger set to update every 100ms, where would I find N?
Question
Trevor Emil
I have been using the Analog Discovery 2 for some data collection for reading a square wave, and it has worked perfectly. I found that the True RMS voltage in the logger gives me the best measurement. I want to recreate this same measurement with a microcontroller using a separate program, but I can’t figure out the exact formula WaveForms uses. From the documentation, I know that True RMS = Sqrt(sum(xi^2)/N) but I have no clue where to find where WaveForms gives me N. If I’m trying to read a 6.25 kHz square wave, and I have logger set to update every 100ms, where would I find N?
Thank you!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.