The ZMPT101B output crosses 2.5V exactly at the AC zero-crossing point. Feed the output into a comparator with 2.5V reference. The comparator’s output pin will toggle at each zero-crossing—perfect for simulating phase-control dimmers.
Common parameters in good libraries:
To simulate a poorly calibrated module, you can set GAIN too high, causing the output to clip at 5V or 0V — exactly what happens in real hardware if the pot is misadjusted. zmpt101b library for proteus
Even with careful steps, you may encounter issues. Here are the most common and their fixes. The ZMPT101B output crosses 2