To get 16 bits of color over flexio you’ll need to use FlexIO3 on a Teensy 4.1
Downside is it does not support DMA.
Or, go custom teensy routes and break out all FlexIO2 pins which are also the eLCDIF pins (I have don this - 24bit color over...
https://www.adafruit.com/product/5792
I think he is referring to this..
You can emulate and RGB dot-clk interface using FlexIO shifters and timers - but I have never done it myself - I’ve only emulated 8080 on FlexIO for display purposes
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...