
MenuWhy 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
Newhaven Display (newhavendisplay.com) offers a collection of 10 different character LCDs in 2x16, 2x20 and 4x20 formats that are exclusively serial inputs -- I2C, SPI and Async TTL -- and reasonably...
ChuckR - 25th November 2025, 23:18

YHDC current sensor - the theory please
...sorry Richard, didn't try your code by now - still in office.... 😬
flotulopex Today, 14:25