
MenuIt can't work wired the way you described. The ac signal must be biased by vcc/2 and be less than vcc peak to peak.
If the serial baud rate is too low it will ruin the sample rate.
If the burden...
Richard,
I've connected my YHDC sensor one pin to ground and the other to RA5. Got readings (see hereunder).
Because I'm not sure what I'm doing right now with the current sensor, I tried to...
...sorry Richard, didn't try your code by now - still in office.... 😬
flotulopex Today, 14:25
Why do want a nasty old analogue peak detector, When you can create a digital one as per my code ?
Using the very cct you posted.
If you realy need to try analogue google ""peak detector circuit"...
May I kindly ask for a principle circuit to start with the correct foot please?
I don't see how to "rectify" a very low AC signal - I'm an electrician and used to easely handle voltages over...
my dev board has a 3.3v reg, otherwise can't see that it makes a difference
not really , it needs a rectifier too. if the wave is not symmetrical the neg and pos peaks may be needed. plus...
Peak detector! That's it!
Thanks a lot for explaining and the code I can't wait to try when I'm back from office :biggrin:
Though, why do I always read about 3.3V measuring circuits and not 5V?...
a simple digital peak detector will give a reasonable result,
eg
2v p-p input offset to approx 1.5v for a vcc of 3.3v for adc
10011
[arduino ide serial plotter]
at a 200us sample...
If you are trying to read the magnitude of current flowing in the primary of the current transformer(CT), you would like to first amplify the AC output of CT using an op-amp. Then do a DC peak...
Jerson Today, 03:25

Re: YHDC current sensor - the theory please
Have you connected your CT as shown in your first post? That is, the bottom to 2.5V (or VRef/2) and the top to input pin AND - VERY IMPORTANT - a load resistor shown as 33ohms in diagram? You must...
HenrikOlsson Today, 22:20