
Menu...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
Hi All,
I'm resuming a project I started more than one year ago; it is about to use a YHDC current sensor.
10007
For now, I have a 16F18446 carrying a 12 bits ADC that I hope sufficient...
Thanks again for that Richard. I'm discovering the only assembly instruction I really need as an assembly call is the table read command. Everything else (reading & writing to registers) can be done...
rocket_troy - 27th November 2025, 00:40

YHDC current sensor - the theory please
Richard,
flotulopex Today, 20:26I'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...