I want to set an opto-coupler to trigger only at the top of a fully rectified AC voltage, without smoothing. The output voltage can change anywhere from 5 to 60V DC dependently on load. I don't think a voltage divider could do, probably something with opamps, but I'm totally green there.
First, I would feed the output voltage to a high impedance series resistor that feeds a 5V zener and a 10x parallel resistance than the series resistor.
The output of this would be a stable 5V signal that can feed logic chips.
If that offsets the logic with a phase shift, use a low logic mosfet that triggers with only 1.5V on the gate, and change the zener to 1.5V.
Or you could use use an opamp to achieve your 5V logic which will practically eliminate all phase shift.
The "ucurrent" circuit actually is the same circuit you could use but with cheaper and less tolerant parts.
http://www.eevblog.com/files/uCurrentRev5schematic.pdfUse the logic signal in a pll (cd4046) to multiply the frequency by 8 (cd4022)
Take the 3rd and 7th output of the 1of8 outputs from the cd4022 for a positive slope edge triggered on the top of the fully rectified AC voltage.
Take the 2nd and 6th output of the 1of8 outputs from the cd4022 for a negative slope edge triggered on the top of the fully rectified AC voltage.
If you do this with more n x frequency multiplication and 1of n outputs, you can fine tune where exactly you want to trigger, anywhere within a signal so even if you get slight phase shifting due to the voltage level input to the logic level,
hope that helps..