Enjoy the hottest models in crystal clear ultra-high definition.
Connect of the oscilloscope directly to the analog OUT pin of the ZMPT101B module. Step 5: Running the Simulation and Analyzing Results
Copy the extracted .IDX and .LIB files and paste them into the Proteus LIBRARY folder.
Simulate an entire energy meter: Use ZMPT101B for voltage, a ZMCT103C current transformer library (also available online) for current, and calculate real power, apparent power, and power factor.
: Get the .LIB and .IDX (library) and .MOD (model) files from a reputable source like The Engineering Projects . Copy the files : zmpt101b library for proteus
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional Copy Library & Model Files Open the downloaded folder and copy the files into the folder of your Proteus installation. If the library includes a file, copy it into the Restart Proteus
#define SENSOR_PIN A0 const float VREF = 5.0; // Arduino operating voltage void setup() Serial.begin(9600); pinMode(SENSOR_PIN, INPUT); void loop() int maxValue = 0; int minValue = 1023; unsigned long startTime = millis(); // Sample the AC wave for 20ms (one full 50Hz cycle) while (millis() - startTime < 20) int readValue = analogRead(SENSOR_PIN); if (readValue > maxValue) maxValue = readValue; if (readValue < minValue) minValue = readValue; // Calculate Peak-to-Peak Voltage int peakToPeak = maxValue - minValue; // Convert ADC steps to Voltage float voltageValue = (peakToPeak * VREF) / 1023.0; // Calculate RMS Voltage based on calibration factor // In Proteus, tweak this multiplier to match your alternator settings float calibrationFactor = 75.0; float rmsVoltage = (voltageValue / 2.0) * 0.707 * calibrationFactor; Serial.print("RMS Voltage: "); Serial.print(rmsVoltage); Serial.println(" V"); delay(500); Use code with caution. Troubleshooting Proteus Simulation Lag and Errors
Connect the pin of the ZMPT101B to a +5V DC Power Terminal . Connect the GND pin of the ZMPT101B to the Ground Terminal . Connect of the oscilloscope directly to the analog
The virtual simulation model may interpret gain settings differently than real-world hardware. Adjust the calibrationFactor value inside the Arduino code until the virtual terminal reads exactly the RMS value specified by your Alternator.
Navigate to the folder in the same Proteus directory.
The enables engineers to simulate AC voltage sensing in electronic circuits, particularly when interfacing with microcontrollers like Arduino or ESP32. This report details the sensor's function, installation steps, and simulation best practices. 1. Overview of the ZMPT101B Sensor : Get the
The core component (ZMPT101B) that steps down high AC voltage to a low-voltage analog signal.
Download the library zip folder and extract it to reveal the .IDX and .LIB files. Locate Your Proteus Library Folder:
If you’d like, I can:
Below is an optimized code snippet designed for simulation and hardware deployment: