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. People bypass the meter, tap the line before it reaches the meter, or tamper with the meter itself. A GSM based power theft detection system tries to catch this automatically. A microcontroller watches the electrical readings, and when something looks wrong, a GSM module sends an SMS to the utility or the owner.

This article explains how such a system works and how to simulate it in Proteus with an Arduino. The video below shows the simulation running.

How power theft detection works

The basic idea is to compare two measurements that should agree. If they don’t, some current is flowing where it should not be. Common approaches include:

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
  • Two-point current comparison: one sensor measures the current leaving the supply side (for example, at the pole or distribution point) and another measures the current recorded at the consumer’s meter. A large, sustained difference suggests a bypass or an illegal tap.
  • Bypass detection: a sensor on the incoming line detects current flowing while the meter’s reading shows little or none.
  • Tamper detection: a switch or sensor detects when the meter cover is opened or the meter is moved.

In a classroom or hobby simulation, these ideas are reduced to a few inputs the Arduino can read, such as two current-sensor outputs or a switch that represents a bypass line.

Main components of the system

  • Arduino board: reads the sensor inputs, compares them and decides when to raise an alert.
  • Current sensing: in real hardware this is usually a current transformer or a Hall-effect sensor. In a simulation it is often replaced by a potentiometer or a simple switch, which lets you create “normal” and “theft” conditions on demand.
  • GSM module: sends the SMS alert over the mobile network. It is controlled by the Arduino through serial (UART) communication using AT commands.
  • LCD display: shows the current status, such as normal supply or theft detected.
  • Load and relay (optional): a lamp or other load shows the supply state, and a relay can cut the supply when theft is confirmed.
See also
THERMAL PRINTER EPM 207 INTERFACING WITH ARDUINO

How the Arduino logic runs

The program follows a simple loop:

  1. Read the values from the two measurement points.
  2. Compare them, allowing a small tolerance for normal measurement differences and losses.
  3. If the difference stays above the tolerance, mark the condition as theft.
  4. Show a warning on the LCD and send an SMS through the GSM module.
  5. Optionally switch off the relay, and return to normal monitoring once the condition clears.

The tolerance matters. If it is too tight, ordinary noise causes false alarms. If it is too loose, small thefts go unnoticed. It also helps to require the fault to persist for a short time before sending a message, so a brief spike does not trigger an SMS.

Simulating it in Proteus

Proteus lets you test the whole circuit and code before building hardware. A typical workflow is:

  1. Place an Arduino board model, an LCD, and the inputs that represent your sensors (switches, potentiometers or a current-sensing stage).
  2. Compile your sketch in the Arduino IDE and load the resulting HEX file into the Arduino model in Proteus.
  3. Connect the serial pins to a GSM module model, or to the Virtual Terminal. Proteus often does not include a GSM module in its default libraries, so many simulations use the Virtual Terminal to display the AT commands and the SMS text the Arduino would send.
  4. Run the simulation, change the inputs to mimic normal use and then theft, and watch the LCD and serial output.

If you are new to serial communication in Proteus, the Arduino UART and LCD simulation is a good place to see how data is sent and displayed. The same serial approach is used to talk to a GSM module.

Testing the simulation

Check these cases to confirm the logic works:

  • Normal condition: both readings match, the LCD shows normal status, and no SMS is sent.
  • Theft condition: change one input so the readings differ. The LCD should show a warning and the SMS command should appear in the terminal.
  • Return to normal: restore the input and confirm the system resets without sending repeated messages.
See also
PROTEUS EXAMPLES

Limits of the simulation

A simulation shows the logic, not real-world behaviour. Actual deployment must deal with noisy mains signals, sensor calibration, network coverage, SIM card setup and safety around mains voltage. Working with live mains wiring is dangerous, so any hardware build should use proper isolation and be done by someone qualified.

Related projects

If you want to go further with metering, a prepaid energy meter project combines energy measurement with theft and line fault detection. For a related monitoring idea, see broken wire detection. To see another use of GSM messaging with Arduino, try the GSM based voting system simulation.

Frequently asked questions

Can Proteus simulate a GSM module?

Not always directly. Proteus often lacks a GSM module model in its default libraries, so people either add a third-party model or use the Virtual Terminal to observe the AT commands the Arduino sends.

How does the system know power is being stolen?

It compares readings from two points, or checks for current flowing that the meter does not record. A sustained difference beyond a set tolerance is treated as theft.

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

Does the simulation send a real SMS?

No. A simulation shows the commands and message text that would be sent. A real SMS needs a physical GSM module, an active SIM card and network coverage.

Can this be built as real hardware?

Yes, the same logic can be used with a real Arduino, current sensors and a GSM module. Mains wiring needs proper insulation and safe design, so it should be handled with care.

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