BROKEN WIRE DETECTION SIMULATION IN PROTEUS

Photo of author

By Jackson Taylor

Home » Hardware » BROKEN WIRE DETECTION SIMULATION IN PROTEUS

As an Amazon Associate we earn from qualifying purchases.

A broken wire is one of the most common and most annoying faults in electronics. The cable looks fine, but somewhere inside the insulation the conductor has snapped, and the circuit stops working. Before building real hardware, you can test the idea in software. This article explains how to set up a broken wire detection simulation in Proteus and what to check when it does not behave as expected.

The video below shows the simulation running. The sections after it explain the logic behind it, so you can rebuild it or adapt it to your own project.

What broken wire detection means

Broken wire detection is a way of checking that a conductor is still continuous. A small signal is sent through the wire. If it arrives at the other end, the wire is intact. If it does not arrive, the wire is open, and the circuit raises an alert with an LED, a buzzer or a message on a display.

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

This idea is used in many places, such as alarm loops, sensor cables, heating elements, power lines and test equipment. The same principle works whether the wire is a few centimetres or many metres long.

How the circuit works

The simplest design uses a voltage and a resistor. The wire under test connects a supply voltage to an input node. A resistor connects that same node to ground, which makes it a pull-down resistor.

  • Wire intact: the supply voltage reaches the node, so the input reads HIGH.
  • Wire broken: the supply is cut off, the resistor pulls the node to ground, and the input reads LOW.

You can also reverse this with a pull-up resistor, where the wire connects the node to ground. The logic is then inverted: LOW means intact and HIGH means broken. Both designs work. Just make sure your code or comparator uses the matching logic.

See also
A Unified Treatment of a Family of ZVS and ZCS Resonant Inverters-SIMULATION

Using a microcontroller or a comparator

There are two common ways to read the node:

  1. Microcontroller input. An Arduino or similar board reads the pin as a digital input and decides what to do. This is flexible, because you can add delays, counters and messages.
  2. Comparator or logic gate. An op-amp used as a comparator, or a simple transistor stage, can switch an LED or buzzer directly with no code. This is useful when you want a purely analog or hardware-only detector.

Parts you need in Proteus

The exact list depends on the design you choose, but a basic setup usually includes:

  • A power source and ground terminal
  • A resistor for the pull-down (or pull-up)
  • A switch or button in series with the wire, to represent a break
  • An LED with a series resistor, and optionally a buzzer
  • A microcontroller board, or a comparator IC if you prefer a hardware-only version
  • An LCD, if you want to show text messages

Proteus does not include every Arduino board by default, so you may need to add the board library before the part shows up in the component picker.

Step-by-step setup

  1. Place the parts. Add the supply, resistor, switch, LED and your detection device to the schematic.
  2. Wire the test loop. Connect the supply through the switch (your simulated wire) to the input node, then connect the pull-down resistor from that node to ground.
  3. Connect the input. Link the node to the digital input pin or to one input of the comparator.
  4. Connect the indicator. Wire the LED and its current-limiting resistor to an output pin, or to the comparator output.
  5. Load the logic. If you use a microcontroller, add the compiled program file to the part. The program should read the input and turn the alert on when the wire is open.
  6. Run the simulation. Start with the switch closed and confirm that the circuit shows a normal state.
  7. Simulate the break. Open the switch while the simulation runs. The alert should switch on straight away.
See also
3 * 4 KEYPAD INTERFACING WITH 8051(AT89S52) AND SIMULATION

Making the result easier to read

An LED is enough to prove the concept, but a text message is clearer when the project has more than one wire to monitor. If you want to show the status on a display, the Arduino and LCD simulation guide covers the wiring. If you use an 8051 instead, LCD interfacing with 8051 explains the same step for that chip.

For several wires, give each one its own input pin and its own message, for example “Line 1 open” and “Line 2 open”. That way the user knows which cable to inspect.

Common problems and fixes

The input always reads the same value

Check that the pull-down or pull-up resistor is actually connected to ground or supply. A missing resistor leaves the node floating, and in a simulation this can give unpredictable or constant readings.

The alert triggers when the wire is fine

The logic is probably inverted. Compare your resistor type (pull-up or pull-down) with the condition in your program or comparator wiring.

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

The microcontroller does nothing

Make sure the program file is loaded into the part and that the clock and power settings are correct. Also confirm that the pin you read in code is the pin you wired in the schematic.

The LED is very dim or does not light

Check the series resistor value and the output pin configuration. A resistor that is too large will limit the current so much that the LED looks off.

Where this idea is used in real projects

Once the basic simulation works, you can extend it. Continuity monitoring is a building block for security loops, cable testers and protection systems. In energy projects it relates to cable tampering and line faults, which you can see in the GSM based power theft detection simulation and in a design that adds power line fault detection to a prepaid meter, covered in the prepaid energy meter project.

See also
PIC18F4550 WITH REAL TIME CLOCK (RTC) DS1307 AND LCD -SIMULATION -PROTEUS

Keep in mind that a simulation is idealized. Real wires have resistance, noise and sometimes intermittent contact, so a real build may need filtering, debouncing in software, and a test on actual hardware before you rely on it.

FAQ

Can Proteus simulate a real broken wire?

Not directly. Proteus uses ideal connections, so you represent a break with a switch, a button or by removing a link in the circuit. For detection logic, this works well.

Do I need a microcontroller for broken wire detection?

No. A comparator, a transistor stage or a logic gate can do the job without code. A microcontroller is useful when you want messages, counters or several channels.

Should I use a pull-up or a pull-down resistor?

Either one works. A pull-down reads HIGH when the wire is intact, and a pull-up reads LOW when the wire is intact. Pick one and keep your logic consistent.

Will the same circuit work on real hardware?

The basic principle will, but you may need to adjust resistor values, add protection against noise, and test with the real cable length and environment.

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