At the moment, I have a PIC monitor peak voltage of an AC sine wave-esque signal which varies in frequency up to 1.5khz max (basicallly just sampling an AtoD pin very regularly...if it's greater than the last sample, store it, if it's not greater, then decrement the running stored total by one - kind of like a psuedo capacitor discharging).
It works, but I'd really rather track RMS voltage ...which is just peak voltage multiplied by .707 .....now bearing in mind it'll have to do this calculation in between all AtoD samples, I'm wondering what the best approach would be .....I'd rather keep this is inside a PIC (vs using didoes, resistors & caps externally into an AtoD pin).
top tips warmly received.
Bookmarks