Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Based Underground Cable Fault Detector with LCD Display and Buzzer Alert

View and Edit Project In Cirkit DesignerImage of Arduino-Based Underground Cable Fault Detector with LCD Display and Buzzer Alert

Circuit Documentation

Summary

This circuit is an underground cable fault detector using an Arduino UNO microcontroller. It reads sensor values to detect faults in underground cables, controls three relays, and displays fault information on an LCD. A buzzer is used to alert when a fault is detected.

Component List

  1. Battery 12V

    • Pins: +, -
    • Description: Provides power to the circuit.
    • Purpose: Power source.
  2. Buzzer

    • Pins: PIN, GND
    • Description: Emits sound when a fault is detected.
    • Purpose: Alert mechanism.
  3. LED: Two Pin (blue)

    • Pins: Cathode, Anode
    • Description: Blue LED.
    • Purpose: Visual indicator.
  4. LED: Two Pin (red)

    • Pins: Cathode, Anode
    • Description: Red LED.
    • Purpose: Visual indicator.
  5. LED: Two Pin (yellow)

    • Pins: Cathode, Anode
    • Description: Yellow LED.
    • Purpose: Visual indicator.
  6. Adafruit Standard LCD 16x2 white on blue

    • Pins: VSS, VDD, V0, RS, R/W, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, LED+, LED-
    • Description: 16x2 character LCD.
    • Purpose: Display fault information.
  7. Toggle Switch

    • Pins: L1, COM, L2
    • Description: Mechanical switch.
    • Purpose: User input.
  8. Resistor (10 Ohms)

    • Pins: pin1, pin2
    • Description: 10 Ohm resistor.
    • Purpose: Current limiting.
  9. Resistor (100 Ohms)

    • Pins: pin1, pin2
    • Description: 100 Ohm resistor.
    • Purpose: Current limiting.
  10. Trimmer Potentiometer (10k Ohms)

    • Pins: leg1, wiper, leg2
    • Description: Adjustable resistor.
    • Purpose: Adjust LCD contrast.
  11. Relay

    • Pins: Common 1, Common 2, Coil, NO 1, NC 1, NO 2, NC 2
    • Description: Electromechanical switch.
    • Purpose: Control high power devices.
  12. 1N4007 Rectifier Diode

    • Pins: Cathode, Anode
    • Description: Rectifier diode.
    • Purpose: Protects against reverse voltage.
  13. Arduino UNO

    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
    • Description: Microcontroller board.
    • Purpose: Control and processing unit.
  14. ULN2003A

    • Pins: Input 1, Input 2, Input 3, Input 4, Input 5, Input 6, Input 7, GND, Output 1, Output 2, Output 3, Output 4, Output 5, Output 6, Output 7, COM
    • Description: Darlington transistor array.
    • Purpose: Drive relays.

Wiring Details

Battery 12V

Buzzer

LED: Two Pin (blue)

LED: Two Pin (red)

LED: Two Pin (yellow)

Adafruit Standard LCD 16x2 white on blue

Toggle Switch

Resistor (10 Ohms)

Resistor (100 Ohms)

Trimmer Potentiometer (10k Ohms)

Relay

1N4007 Rectifier Diode

Arduino UNO

ULN2003A

Code Documentation

/*
 * Underground Cable Fault Detector using Node MCU ESP8266
 * This code reads sensor values to detect faults in underground cables.
 * It controls three relays and displays fault information on an LCD.
 * The buzzer is used to alert when a fault is detected.
 */

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(D2, D3, D4, D5, D6, D7);

int sensorPin = A0; // select the input pin for LDR
int sensorValue = 0; // variable to store the value coming from the sensor

void setup() {
  pinMode(D8, OUTPUT); // Relay 1
  pinMode(D9, OUTPUT); // Relay 2
  pinMode(D10