Would something like this be a good start to find calculate the frequency with zero crossing points? (Used Bard and some of my brain for this)
#include <ADC.h>
#include "circular_buffer.h"
// Define the ADC pin and ADC instance
const int adcPin...
Thank you both for the responses.
The bare basic need I have it so calculate the RMS voltage from multiple samples by multiplying, averaging and then square root, as Paul mentioned.
But calculating frequency and phase shift between v/a etc is...
With the help of the community we’ll get it working. The PCB is the easy part, atleast for me. Harder part will be the code but I know there’s more than enough knowledge in here! Obviously the final schematic/pin mapping will be shared in this...
I am building a power meter for audio on a Teensy 4.x and I would like to measure AC volts on an analog pin, AC amperes on an analog pin, but I would also like to measure the frequency of each sample, as well as the phase/time difference between...
@MarkT Thanks for the reference!
I found this doc by Texas Instruments which uses a simple RC filter for Class D power/thd measurements
So that makes sense to use after the voltage divider.
Now, regarding the voltage divider, do I use a simple...
Bumping this up for visibility.
I'd like to build an basic test circuit for this. What kind of input circuitry would I need to handle the high voltage as well as the full-bridge class D's with differential outputs? Would the same circuit be able...