High/Low Voltage Detection and Protection Circuit using PIC Microcontroller

Summary of High/Low Voltage Detection and Protection Circuit using PIC Microcontroller


This article describes a low-cost High and Low Voltage Protection Circuit using a PIC Microcontroller to safeguard home appliances from voltage fluctuations. The system detects voltage levels via a voltage divider, compares them against reference values, cuts off power during anomalies, and displays alert messages on a 16x2 LCD. The design utilizes EasyEDA for schematic capture, simulation, and PCB layout creation.

Parts used in the High and Low Voltage Power Detector Circuit:

  • PIC Microcontroller
  • Voltage Divider Circuit
  • 16x2 LCD
  • EasyEDA (Software Tool)
  • PCB Prototype Service
  • Electronic Components Sourcing Service

high-low-voltage-detector-using-PIC-microcontroller

High and Low Voltage Power Detector Circuit with Message Alert using PIC Microcontroller

We often see voltage fluctuations in electricity supply at our home, which may cause malfunction in our home AC appliances. Today we are building a low cost High and Low Voltage Protection Circuit, which will cut off the power supply to the appliances in case of High or Low voltage. It will also show a alert message on 16×2 LCD. In this project, we have used PIC Microcontroller to read and compare the input voltage to the reference voltage and take the action accordingly.

high-low-voltage-protection-using-PIC-microcontroller-circuit

Programming Explanation:

Programming part of this project is easy. In this code, we just need to calculate AC voltage by using mapped 0-5v voltage coming from Voltage Divider Circuit and then compare it with predefined values. You can check the complete PIC code after this project.

First, in the code, we have included a header and configured the PIC microcontroller config bits. If you are new to PIC coding then learn PIC Microcontroller and its configuration bits here.

Circuit and PCB Design using EasyEDA:

To design this HIGH and LOW Voltage Detector Circuit, we have chosen the online EDA tool called EasyEDA. We have previously used EasyEDA many times and found it very convenient to use compared to other PCB fabricators. Check here our all the PCB projects. EasyEDA is not only the one stop solution for schematic capture, circuit simulation and PCB design, they also offer a low cost PCB Prototype and Components Sourcing service. They recently launched their component sourcing service where they have a large stock of electronic components and users can order their required components along with the PCB order.

While designing your circuits and PCBs, you can also make your circuit and PCB designs public so that other users can copy or edit them and can take benefit from there, we have also made our whole Circuit and PCB layouts public for this High and Low Voltage Protection Circuit, check the below link:

https://easyeda.com/circuitdigest/HIGH_LOW_Voltage_Detector-4dc240b0fde140719c2401096e2410e6

Below is the Snapshot of Top layer of PCB layout from EasyEDA, you can view any Layer (Top, Bottom, Topsilk, bottomsilk etc) of the PCB by selecting the layer form the ‘Layers’ Window.

for more detail:High/Low Voltage Detection and Protection Circuit using PIC Microcontroller

Quick Solutions to Questions related to High and Low Voltage Power Detector Circuit:

  • What is the main purpose of this circuit?
    The circuit cuts off power supply to appliances during high or low voltage fluctuations and shows an alert message on a 16x2 LCD.
  • How does the microcontroller read the input voltage?
    It reads mapped 0-5v voltage coming from a Voltage Divider Circuit to calculate the AC voltage.
  • Can I use EasyEDA for designing this project?
    Yes, EasyEDA is used for schematic capture, circuit simulation, and PCB design for this project.
  • Does the system provide protection against voltage issues?
    Yes, it protects home AC appliances by cutting off the power supply when voltage exceeds predefined limits.
  • Where can I find the PCB layout for this circuit?
    The whole Circuit and PCB layouts are made public on the provided EasyEDA link.
  • Is component sourcing available with the PCB order?
    Yes, users can order required electronic components along with the PCB order through their component sourcing service.
  • What happens if the voltage is outside the safe range?
    The system takes action accordingly to cut off power and displays an alert message on the LCD.
  • Can other users edit my circuit designs?
    Yes, you can make your circuit and PCB designs public so others can copy or edit them.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter