
MenuSorry guys for not reponding earlier - I'm still waiting for 20A:50mA current sensor to arrive; my 100A:50mA are far too low and "out of range" for what I intend to measure.
BUT I could grab a...
adjust resister to for the mid current used incase of some nonlinearity... shotkey diode has .3 volt drop
10016
You might want to specify the model number of the sensor since there are a number of different types, and the circuit shown may not even apply
tumbleweed - 2nd December 2025, 00:26
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 - 1st December 2025, 22:20
It 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 - 1st December 2025, 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...

Re: YHDC current sensor - the theory please
you cannot use a current transformer that way without a burden resistor.
richard Today, 00:06by voltage sensor do you mean ACS712 or similar ?
if so that circuit is incorrect, typical use
10022