password based circuit breaker using pic microcontroller
Password based circuit breaker project: Microcontrollers are an extremely versatile tool with thousands of applications, many of which have helped meet our daily needs and save time, money and most importantly, labor or work power. However, when we designed this project our aim was different than to exploit these advantages. We aimed to use the microcontroller to not only solve one of the major problems in these troubled times but to save the most important thing of them all: human life. How exactly did we achieve that? Lets see what is password based circuit breaker.
Password based circuit breaker
One of the more prudent problems faced by workers, especially the linemen, today is to operate, maintain and fix the electricity lines that supply power to the our homes. This is a tiring, arduous and a dangerous task. The electrical lines that transmit power to our homes have a very high voltage flowing through them. Even a small mistake can cause severe causalities, in most cases high degree burns or deaths. To counteract this problem this project was designed. To understand this, first we must look at what a circuit breaker is. It is an automatically operated electrical switch that is used to prevent circuit damages from abrupt voltage changes. It is preferred to the conventional fuse as it can be used time and time again unlike the electrical fuse which has to be constantly replaced. password based circuit breaker is based on the circuit breakers and how to use them in the safest possible manner. These circuit breakers are nowadays operated manually by the linemen which can cause a lot of damage due to a single misstep. Thus we have decided to make a automatic circuit breaker system that not only prevents any injuries but also ensures security of the system so that no other person can operate it other than the lineman. How we have done this?
We have used a password based circuit breaker approach which ensures that the correct person is operating the system. In a general overview, the PIC 18fk622 microcontroller headlines the project. A keypad is used to enter the correct password and then to switch the loads on and off. It even provides the option of changing the password so security is maintained. So if the lineman wants, he can easily close a particular load from the headquarters by using this and then work on all the repairs without having any fear of being electrocuted. After the maintenance is done, he can turn it on again by using the correct password. More details on the working and operation is stated later. First lets look at the various components used in this password based circuit breaker and their details.
Password based circuit breaker components
Component Description of password based circuit breaker is given below:
Microcontroller: The brain and the powerhouse of the project. Micrcontroller can be described as a small computer which has an ALU, core, programmable peripherals and ROM. They are fundamental components of any embedded system designed today. We used the PIC microcontroller of the 18 family for our project due to its extensive applications and reasonable price. PIC microcontroller is extremely versatile and quite easy to use for even a novice. Furthermore, it has many useful functionalities and a lot of components can be easily configured with it such as the keypad.
Voltage Regulator: The 7805 IC was used as the voltage regulator. It is used to maintain fix voltage of 5V to the circuit and so the circuit is not affected by the fluctuations. If there are discrepancies in voltage values, the components may not work properly especially the voltage sensitive components such as the LCD and the magnetic relays. Furthermore, capacitors are added at the load ends to ensure less ripples.
Relay Driver: In order to avoid using transistors so that the connections can be reduced and a more refined circuit diagram can be made, ULN2003A IC was used. It is a relay driver IC, an electromagnetic switch which is used to turn the relays ON or OFF. It basically supplies a larger current to the loads so that they can work. A very handy alternative to NPN BJT.
Resistors: An essential component of any electrical circuit. It is a two terminal device which opposes the flow of current in a circuit by producing a voltage drop between its terminals (v=ir) . It is essentially used to prevent the circuit from being short circuited. A part of every practical circuit, this component is a necessity in this project.
Capacitors: Another two terminal device. Instead of opposing the flow of the current in the circuit this device actually stores the electrical current in it in form of electrical fields. Being another essential component, it stores energy between its parallel plates when potential difference is applied and so it has various applications many reducing fluctuations, preventing components to burn etc.
LCD: The main output peripheral of our project. A 14pin device which is connected to the microcontroller directly. It has its own internal configuration which is programmed with the microcontorleer initially. The output of the keypad as well as the load settings are all displayed here. It can be called the face of the project.
Keypad: Another major peripheral used in the project. However unlike the LCD, this is an input peripheral. A 4×4 Keypad is used to input the numbers or string patterns that are all displayed on the LCD. It is also connected directly to the microcontroller. The keypad settings are configured within the code which is programmed into the microcontroller. It sends a 8 bit binary value for each button pressed which is processed and converted into a character displayed on the LCD screen.
External Oscillator: In this project, we did not use the internal oscillator of the PIC18 microcontroller. Instead a quazi crystal was used as an external oscillator which was connected in parallel with 2 capacitors and connected to 2 pins of the microcontroller. The oscillator provides the clock pulses which are essential for every process that the microctroller performs as the clock signal gives the microcontroller the indication to execute the next task. Even the LCD’s are wholely dependent on the external oscillator which works due to molecules within the crystal vibrating and generating a periodic pulse smoothened by the capacitor.
EEPROM: Electronically Erasable Read Only Memory plays a major part in this project. It is a non-volatile memory which is often used to store small data for immediate uses and which must be saved when the power turns off. The EEPROM stores the password in our project which can be both read and overwritten when new password is added.
Magnetic Relay: The essential switches of the project. . It basically works as a high-voltage switch as it uses smaller voltages/current to operate high voltage/current circuits. One pin is connected to output of microcontroller whereas the other is connected to the high voltage supply which is switched accordingly
JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw