GSM BASED POWER THEFT DETECTION SIMULATION PROTEUS USING ARDUINO

Photo of author

By Jackson Taylor

Home » Hardware » GSM BASED POWER THEFT DETECTION SIMULATION PROTEUS USING ARDUINO

As an Amazon Associate we earn from qualifying purchases.

Electricity theft is a long-standing problem for power utilities. It usually happens when someone bypasses the energy meter or taps the line before it reaches the meter. This article explains how a GSM based power theft detection system works, which parts it needs, and how to simulate it in Proteus with an Arduino before building anything on a real mains line.

The video below shows the simulation running.

What the project does

The idea is simple. The system compares the power or current that leaves the supply side with the power or current that the customer’s meter records. If the two values differ by more than an allowed margin, something is drawing power outside the meter. The Arduino then raises an alert and sends an SMS through a GSM module to the utility or the owner.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

Because the whole thing is simulated, you can test the logic safely. You can also change thresholds and watch how the system reacts without touching high voltage.

How power theft is usually detected

There are several common approaches. Which one a project uses depends on what the designer wants to catch.

  • Two-point current comparison: one sensor sits before the meter and another after it. A gap between the readings suggests a bypass or an illegal tap.
  • Meter bypass detection: the system checks whether the load is drawing current while the meter registers little or none.
  • Tamper detection: switches or sensors report that the meter cover or terminals have been opened.
  • Line fault and theft monitoring: the system watches for sudden changes along the line, which can point to a hook or a break. A prepaid energy meter project on this site combines theft and line-fault checks in one design.

Components used in the simulation

A typical build for this kind of project includes the parts below. Exact values and part numbers can differ, so check them against the video and your own schematic.

  • Arduino board (commonly an Uno) as the controller.
  • GSM module for sending SMS alerts.
  • Current or load sensing on the supply side and the meter side.
  • 16×2 LCD to show readings and status.
  • Buzzer or LED for a local alarm.
  • Relay (optional) to cut the load when theft is confirmed.
  • Virtual terminal in Proteus to watch the serial data and the AT commands.
See also
CASCADED MULTILEVEL (7 LEVEL) INVERTER SIMULATION IN MATLAB - SIMULINK

Proteus does not simulate a real GSM network. In most simulations, the virtual terminal stands in for the GSM module, so you can see the AT commands and the message text the Arduino would send. That is enough to test the logic. Sending a real SMS needs real hardware and a SIM card.

How the circuit works

1. Sensing

The Arduino reads two analog inputs, one for each measurement point. In a simulation these inputs are often fed by variable resistors or by simple sensor models, so you can raise or lower the values by hand and mimic normal use or a bypass.

2. Comparison

The program converts both readings to comparable units and calculates the difference. A small tolerance is needed, because real sensors never match exactly. If the difference stays below the threshold, the system reports normal operation on the LCD.

3. Alert

If the difference is above the threshold, the Arduino shows a theft warning on the LCD and turns on the buzzer. It then sends AT commands to the GSM module. A common sequence is AT to check the module, AT+CMGF=1 to select text mode, AT+CMGS with the phone number, then the message text and a Ctrl+Z character to send it.

4. Optional load cut-off

Some versions also drive a relay to disconnect the suspicious load. If you add this, make sure the relay is driven through a transistor or driver stage and a flyback diode, as in a real circuit.

Setting up the Proteus simulation

  1. Place the Arduino, LCD, buzzer, sensing inputs and virtual terminal on the schematic.
  2. Connect the LCD data and control pins to digital pins on the Arduino, and match them to the pin numbers in your code.
  3. Connect the Arduino TX and RX pins to the virtual terminal. Cross them as TX to RX and RX to TX.
  4. Compile the sketch in the Arduino IDE and export the compiled HEX file.
  5. Load the HEX file into the Arduino component in Proteus and set the clock frequency to match the board.
  6. Run the simulation, set the baud rate on the virtual terminal to match the code, and change the sensor inputs to trigger an alert.
See also
LED CONTROLLING USING ARDUINO AND PYTHON

If the LCD stays blank, check the contrast pin and the pin mapping first. If the terminal shows garbled text, the baud rates almost always do not match. For more help with serial output and displays, see this guide to UART and LCD simulation in Proteus.

Tips for a more reliable design

  • Use a sensible tolerance. A threshold set too tight causes false alarms from normal measurement error.
  • Average several readings before comparing, so a brief spike does not trigger an SMS.
  • Limit how often messages are sent, so one event does not flood the phone with alerts.
  • Include a location or meter ID in the message so the receiver knows where the problem is.
  • Treat mains work with care. Use proper isolation and certified current sensors on any real build, and have a qualified person check the wiring.

Related projects

If you like this kind of GSM and Arduino work, you may also want to look at the GSM based voting system simulation, which uses a similar approach to messaging. For monitoring wires on a line, there is also a broken wire detection example in Proteus.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Frequently asked questions

Can Proteus simulate a real GSM module?

Not fully. Proteus can show the serial communication, so you can test the AT commands with a virtual terminal. It cannot send an actual SMS over a network. For that you need a real module, a SIM card and signal coverage.

Why use Arduino for power theft detection?

Arduino is cheap, easy to program and has analog inputs and serial ports. That makes it a good fit for a prototype that reads sensors, compares values and talks to a GSM module.

How accurate is this kind of system?

Accuracy depends on the sensors, how they are calibrated and the threshold you choose. A simulation shows that the logic works, but a real deployment needs tested sensors and careful tuning to avoid false alarms.

See also
PREPAID ENERGY METER WITH POWER THEFT AND POWER LINE FAULT - PROTEUS-SIMULATION

Is it safe to build this on a real mains line?

Only with proper isolation, rated sensors and an experienced person checking the work. Start with the simulation and low-voltage tests, and do not connect an untested prototype directly to mains power.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works