
SCT-013 Current Transformer Library for Proteus Simulation

Hello friends, I hope you all are doing great. Today, I am going to share the new SCT-013 Current Transformer Library for Proteus Simulation. The SCT-013 is the clamp-on sensor behind most home energy monitors: you open its jaw, clip it around one wire of a mains cable and close it - no cutting, no stripping, no contact with the live conductor - and it gives you a small, safe copy of the current flowing through that wire. With this library you can run a full Proteus simulation of the SCT-013 with a realistic house load and learn the burden-and-bias circuit that every Arduino energy monitor needs.
SCT-013 Current Transformer Library for Proteus
Latest version: V1.0 (December 2026, this tutorial)
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The demo is a home energy monitor: the clamp sits on the live wire of a house where a TV, a fridge and a kettle switch on and off, an Arduino UNO V4.0 measures the RMS current, a 16x2 LCD shows the amps, the watts and the energy, and three LEDs show how heavy the load is.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the current sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SCT-013 Current Transformer Library for Proteus Simulation:
What Is the SCT-013 Current Transformer?
A current transformer is a transformer with a one-turn primary: the wire you clip it around. The SCT-013 has a split ferrite core with a secondary winding of 2000 turns. The alternating current in the wire makes an alternating magnetic field in the core, and the secondary drives a current that is the primary current divided by the turns - 100 A becomes 50 mA. Because the clamp only surrounds the wire, it measures mains currents with complete isolation, and because the output is a current, the voltage it produces depends on what you connect to it.
| SCT-013-000 | |
|---|---|
| Ratio | 100 A : 50 mA (1 : 2000 turns) |
| Output | a current - a burden resistor is needed |
| Opening | 13 x 13 mm |
| Signal | AC only (it cannot see DC) |
| Other versions | SCT-013-030: 30 A : 1 V, the burden built in |
| Connector | 3.5 mm jack |
| Pins (in Proteus) | S1 S2 |
One Wire, Not the Cable
The clamp must go around a single conductor - the live or the neutral. A mains cable carries the same current in both directions, out on the live and back on the neutral, so around the whole cable the two magnetic fields cancel and the CT reads zero. In a real fuse box this means clipping the clamp around the incoming live tail; in the simulation the drawing shows exactly that: one brown live wire seen end-on inside the window.
The Burden Resistor
The SCT-013-000 gives a current, and an Arduino measures voltages, so the secondary drives a resistor - the burden - and the Arduino reads the voltage across it. Choosing it is simple arithmetic. An analog input centred at 2.5 V can swing 2.5 V either way, so the burden must turn the largest peak secondary current into no more than 2.5 V: burden = 2.5 V / (I_max x 1.414 / 2000). For the full 100 A that gives about 35 ohm - the familiar 33 ohm. A house rarely draws more than 30 A, so the demo uses 100 ohm, which covers about 35 A and gives three times more ADC counts for the same current. A burden that is too large clips the waveform; one that is too small wastes resolution.
The Bias: Keeping AC Inside 0 - 5 V
The voltage across the burden is AC: it goes negative on every half cycle, and an Arduino input cannot read below 0 V. So the bottom of the burden is not connected to ground but to a bias point at half the supply, made by two equal resistors (10 kohm each) from 5 V to ground, with a 10 uF capacitor holding it steady. The top of the burden then swings around 2.5 V, up and down, always inside the ADC's range. The sketch measures the average to find the bias and the spread around it to find the current.
Never Open the Secondary
A current transformer tries to push its current through whatever is connected - including an open circuit. With no burden, the secondary voltage of a current-output CT carrying a large primary current rises to hundreds of volts, enough to break down the insulation and give a shock. The real SCT-013-000 has a protection diode inside for this reason; the simulation does not, so if you delete the burden the pop-up turns red and shows the dangerous voltage. Always connect the burden before the clamp goes on a live wire.
Features of the SCT-013 Current Transformer Library for Proteus Simulation
- A real-looking clamp: the SCT-013 at its real size, with its hinge, latch, 13 mm window and jack cable; at Run the magnetic field around the live wire glows in the window with the current.
- A real current output: the secondary is a current source of the primary current divided by 2000, so the voltage depends on the burden you fit - exactly as on the bench.
- Two versions: TYPE 000 (100 A : 50 mA, current output) and TYPE 030 (30 A : 1 V, burden built in).
- A house to measure: PROFILE DEMO is a house in fast time - a base load, a TV with its peaky current, a fridge with its start-up surge and a 2 kW kettle; PROFILE STEADY is any current at 50 or 60 Hz.
- Safety included: an open secondary shows its dangerous voltage and turns the pop-up red.
- A pop-up: the primary current and the secondary voltage as waveforms, the loads on the wire, the RMS values and the measured burden - graphs, an event log and a check page.
- A complete package: about 2.7 MB with the library, our I2C LCD, resistors, capacitor and LEDs, our Arduino UNO V4.0 and the demo, without the source code of the model.
The SCT-013 in Proteus
The device is SCT013TEP in TEPSCT013.LIB, under Modules > Sensors, with the prefix CT and the model TEPSCT013.DLL. Search SCT013 or current transformer in Pick Devices. Its two pins, S1 and S2, are the two wires of the jack cable. Four properties set it up: TYPE (000 or 030), PROFILE (DEMO or STEADY), AMPS and FREQ (the current and the mains frequency for STEADY).
Download SCT-013 Current Transformer Library for Proteus Simulation
Click the button below to download SCT-013-Current-Transformer-Library-for-Proteus-v1.0.zip (about 2.7 MB, without the source code of the models):
SCT-013 Current Transformer Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPSCT013.LIB,TEPI2CLCD16X2.LIB,TEPRESISTOR.LIB,TEPELECTRO.LIB,TEPLED5MM.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPSCT013.DLL,TEPLCD.DLL,TEPRESISTOR.DLL,TEPELECTRO.DLL,TEPLED5MM.DLLandTEPARDUINO.DLL. - Arduino Code: the demo sketch (Wire only).
- Proteus Simulation: the demo project, its HEX file and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install SCT-013 Current Transformer Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPSCT013.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for SCT013.
Proteus Simulation of a Home Energy Monitor
The demo uses an A4 sheet with our Arduino UNO Library for Proteus V4.0. The clamp (CT1, SCT-013-000) measures the DEMO house. Its S1 goes to A0 and S2 to the bias point MID; the 100 ohm burden R1 sits between them. R2 and R3, 10 kohm each, make MID = 2.5 V, and C1, 10 uF, keeps it steady. A 16x2 LCD from our I2C LCD 16x2 Library for Proteus shows the readings, and three LEDs on D5 to D7 show the load. The Arduino's monitor is built in, the same window as our TEP Serial Monitor Advance for Proteus. Open SCT013-Home-Energy-Monitor-ArduinoUnoV4.pdsprj.
The Sketch
The scaling is worked out once, from the burden and the turns ratio:
const float AMPS_PER_COUNT = 5.0 / 1023.0 / BURDEN * TURNS; // 0.0978 A per ADC count
Every reading samples A0 for 200 ms - exactly 10 cycles of 50 Hz, so the RMS is not biased by a part-cycle - and keeps the sum and the sum of squares:
while (millis() - t0 < 200) { // 10 whole cycles at 50 Hz
const int v = analogRead(CT);
sum += v; sq += (unsigned long)v * v; n++;
The mean of the samples is the bias; the RMS around it is the AC part, so one line removes the bias and gives the RMS in counts:
const float rms = sqrt(max((float)sq / n - mean * mean, 0.0f));
The power is 230 V times the current - the apparent power, because the demo does not measure the voltage - and the energy adds up the power over time.
SCT-013 Simulation Results
Open the project and press Run. The demo runs 4.8 simulated seconds and took about 2 minutes 12 seconds on our PC with the pop-up open and the pictures being taken. Click CT1 for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
The Base Load and the TV
The house starts with its base load - a router and a few lights, 0.50 A - and at 0.4 s the TV comes on with 0.60 A of its own. The two do not simply add up to 1.10 A: the TV draws its current in short peaks, out of step with the base load, and the RMS of the sum is 1.04 A. That is exactly what the sketch prints at 0.6 s and 0.8 s: "1.04 A 239 W", with the green LED on. In the pop-up the secondary shows 0.518 mA and 0.0518 V RMS across the burden - 1.04 A divided by 2000 turns, as the datasheet promises.
The Fridge Starts: a Surge
At 1.2 s the fridge compressor starts. A motor starting from rest draws several times its running current, and the model gives it a surge of 6 A that dies away over a few tenths of a second. The first 200 ms reading after the start catches most of it: 4.58 A and 1054 W, and the LED turns yellow. The pop-up at 1.34 s shows the surge already falling - the fridge at 3.03 A, the wire at 4.06 A RMS, 5.8 A peak - while the "highest RMS" tile has kept the worst cycle, 6.42 A. The monitor follows the fridge settling: 2.75 A at 1.6 s, 2.28 A at 1.8 s and 2.19 A at 2.0 s, the fridge now running at 1.30 A.
The Kettle
At 2.2 s the kettle switches on: 8.7 A, a 2 kW heating element. The reading at 2.3 s, half before and half after, shows 9.61 A; from 2.5 s on the monitor holds 10.64 to 10.70 A and about 2,450 W, and the red LED is on. The pop-up at 2.78 s shows 10.71 A RMS and 14.9 A peak in the wire, and on the secondary 5.329 mA and 0.533 V RMS. The ideal ratio would give 10.71 A / 2000 = 5.355 mA; the 0.026 mA that is missing flows into the core's own magnetising branch, which the model includes - with a 100 ohm burden that is half a percent, and it is why a smaller burden makes a current transformer more accurate. The kettle adds energy quickly: the counter goes from 0.40 Wh to 1.24 Wh in the 1.2 seconds it runs.
The House Quietens Down
The kettle switches off at 3.6 s, and the next reading falls to 2.17 A and 499 W - the base load, the TV and the fridge. The pop-up at 3.88 s shows 2.18 A and 500 W, with the kettle "off" in the list of loads, and the highest cycle of the run, 10.72 A, kept in its tile. The TV goes off at 4.0 s (1.70 A, 392 W) and the fridge at 4.6 s; at 4.8 s only the base load is left, 0.50 A and 115 W, the green LED on, and the energy counter stands at about 1.36 Wh.
The Graphs, the Event Log and the Check Page
The Graphs page plots the primary current, the secondary voltage, the RMS current of each cycle and the power - the surge and the kettle stand out clearly. The Event log notes the first cycle with the burden it measured. The Check page sums up the run: the secondary loaded, 0.0249 V RMS and 0.249 mA at the end; the burden measured at 100.0 ohm, which makes the full scale of a 5 V board (2.5 V peak) 35 A RMS; the primary at 0.50 A now, 10.72 A at its highest, well inside the clamp's 100 A; and 239 mains cycles at 50 Hz. Below the list it repeats the rules that matter: clip ONE conductor, fit a burden, bias it at half the supply, and never leave a current-output CT open.
The Arduino's built-in serial monitor prints a line every 200 ms - the time, the current, the power and the energy - so the whole evening can be read back line by line: the surge, the kettle, and the house quietening down.
Apparent Power and Real Power
The demo multiplies the current by 230 V. That is the apparent power, in volt-amperes. For a kettle it is also the real power, because a heating element takes its current in step with the voltage. A fridge motor takes its current a little late, and a TV takes it in short peaks, so for them the real power is less than volts times amps - the ratio is the power factor. To measure real power, add a voltage sensor such as our ZMPT101B AC Voltage Sensor Library for Proteus and multiply the voltage and current samples together, or use a complete meter such as our PZEM-004T Energy Meter Library for Proteus.
SCT-013 or ACS712?
Our ACS712 Current Sensor Library for Proteus is a Hall-effect sensor: the current flows through the module itself, it measures AC and DC, but it must be wired into the circuit. The SCT-013 never touches the conductor - you clip it on - which makes it the safe choice for mains wiring you do not want to open, and it measures up to 100 A. It cannot measure DC, though, so for batteries, solar panels and motors on DC the ACS712 or an INA226 is the right tool.
Try It Yourself
- Click CT1 while the simulation runs and use the chips: +1 A, -1 A and +10 A switch to a steady current, and the LCD follows.
- Change R1 to 33 ohm: the range grows to 100 A, and small loads read more coarsely.
- Delete R1: the pop-up turns red - the open secondary of a current transformer.
- Set TYPE to 030 and remove the burden: the built-in burden gives 1 V at 30 A.
- Set FREQ to 60 and sample for 200 ms: 12 whole cycles, still an honest RMS.
Ideas to Extend the Demo
- Add a ZMPT101B for the voltage and compute the real power and the power factor.
- Log the energy to an SD card every minute for a daily graph.
- Use two clamps for the house and a solar inverter, and show the net import or export.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real SCT-013
- Safety: the clamp itself is isolated, but the cables are live - clip it on with the power off when you can.
- One conductor: live or neutral, never the whole cable.
- Burden first: connect the burden before the clamp carries current (the SCT-013-000 is a current output).
- Calibration: burden tolerance and the core's small errors add a few percent - calibrate against a known load.
- Jack: the 3.5 mm jack's tip and sleeve carry the secondary.
Troubleshooting
- The reading is far too high and A0 sits at a rail: the burden is missing or too large.
- The reading stays near zero: the clamp is around the whole cable, or the bias is missing.
- Small loads read badly: one ADC count is 0.098 A with 100 ohm - use a larger burden for a smaller range.
- The readings jump: the sampling window is not a whole number of mains cycles.
- The part is not simulated:
TEPSCT013.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The turns ratio, the current output, the built-in burden of TYPE 030 and the open-secondary behaviour follow the usual SCT-013 figures; the clamp is our own drawing.
- Our own figures: a 20 kohm magnetising path, TYPE 030 as 1 : 1800 turns into 62 ohm, and the DEMO house in fast time.
- Not modelled: core saturation, the phase error of a real CT and the protection diode inside the real SCT-013-000.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or any current transformer maker.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the SCT-013 Current Transformer Library for Proteus Simulation. I hope it helps you see where the energy in your home goes - safely, without cutting a single wire. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!






















Comments
0