"Elara?"
The ZMPT101B_Proteus_Library.zip eventually made its way to a popular engineering forum. It wasn't pretty. It didn't have a fancy installer. But it worked. zmpt101b proteus library
She jerked awake. "It's done," she croaked, pointing to her screen. "Elara
It wasn't perfect. At voltages below 50V, the output was noisy. Above 250V, it clipped asymmetrically. She tweaked the SATURATION_COEFF variable in the code. Recompiled. Reloaded. Ran again. This time, the wave was clean from 10V to 300V. She had done it. But it worked
She placed the new component on a Proteus schematic. She connected a 230V AC sine wave generator (from the SINUS source) to the input pins. She connected the output to an analog probe and a virtual oscilloscope.
That was the gauntlet.
She named her project ZMPT101B_MODEL . The code was brutal. She had to define the pinout: VCC, GND, OUT, and AC_IN. The core logic was a time-stepping function that read the differential input voltage, calculated the primary current, transformed it magnetically (including a 1-degree phase lag she learned from the datasheet), and then fed it into a virtual op-amp model with a gain of 5 and an offset of 2.5V.