Zmpt101b Library For Proteus

: Unzip the downloaded folder to access the individual library components.

C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY (Note: ProgramData is a hidden folder by default; enable "Hidden items" in Windows File Explorer view settings). Paste the copied files directly into the LIBRARY folder. Step 3: Verify Installation in Proteus

To use the ZMPT101B in your project, follow these steps to integrate the external library files: zmpt101b library for proteus

const int sensorPin = A0; const float Vcc = 5.0; // Simulation DC supply float sensorValue = 0; float peakToPeak = 0; float voltageRMS = 0; void setup() Serial.begin(9600); pinMode(sensorPin, INPUT); void loop() RMS Voltage: "); Serial.print(voltageRMS); Serial.println(" V"); delay(1000); float getPeakToPeak() float maxValue = 0; float minValue = 1023; unsigned long startTime = millis(); // Sample for 100ms to capture multiple 50Hz/60Hz AC cycles while ((millis() - startTime) < 100) sensorValue = analogRead(sensorPin); if (sensorValue > maxValue) maxValue = sensorValue; if (sensorValue < minValue) minValue = sensorValue; return (maxValue - minValue); Use code with caution. Compiling and Running Compile the code in the Arduino IDE.

Arduino Uno (requires the Arduino Proteus Library) Sensor: ZMPT101B Module Power Source: ALTERNATOR (Proteus built-in AC source) : Unzip the downloaded folder to access the

Paste them directly into the folder located in Step 2. Step 4: Verify the Installation Open Proteus and launch the ISIS Schematic Capture .

If you have Proteus open, close it completely and relaunch it to force the software to re-index its component catalog. Step-by-Step Simulation Setup in Proteus Step 3: Verify Installation in Proteus To use

Click on the button to open the Pick Devices window. Type "ZMPT101B" into the keywords search bar.

Copy the path of the generated file from the console output.

C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY

Topo