I've been wanting to use the H11AA1 zero-crossing detector to detect the zero-crossing points of Mains Voltage - 120 V AC @ 50 Hz. The data sheet says that the max forward currents of the diodes are \$I_F\$ = 60 mA, max power dissipation is \$P_{diss}\$ = 100 mW, and typical voltage through \$ V_d = 1.2 V\$. I'd like to hook the H11AA1 up to the Mains line without a transformer and instead use passives to dissipate the remaining energy.
I've been modeling each line using this model:
The 'input voltage' that the impedance sees should be a half-wave rectified sine function, and the output should be a periodic square wave.
\$ v_i(t) = Asin(\omega t) * (u[t] - u[t- {\frac T2}]) \$
where \$ A = 120, \omega = 2\pi f = 100\pi\, T = \frac {1}{2\pi f}\$
Because of the diode truncates the voltage, the waveform should look like a periodic square wave (pretending there are instant rise/fall times)
\$ v_f(t) = \sum_{k=-\infty}^\infty 1.2(u[t] - u[t - kT]) \$
The current through the diode should look like:
\$ v_i(t) = 0.6sin(\omega t) * (u[t] - u[t- {\frac T2}]) \$
Using node voltages,
\$ \frac {V_i - V_f}{Z} = I_d\$
\$ Z = \frac {V_i - V_f}{I_d}\$
The issue I'm having is that I'm expecting the impedance to have a complex component and thus my expected output functions should have a phase shift - but I have no idea how to account for that, if so. Are there any other mistakes in my assumptions about the diode voltage and current? How should I go about solving for the impedance?