Component Details .1 Variable Transformer Programming Development .1 Programming in Micro C for PIC16F788 Project Prototype 3.10 Summary of Project Methodology Hardware Results .1 Voltage Sensor Output

CHAPTER CONTENTS PAGE 3 PROJECT METHODOLOGY 3.1 Introduction 3.2 Project Planning 3.2.1 Flow of Project 3.2.2 Sequence of Circuit Operation 3.3 System Design 3.3.1 Overview 3.4 Component Details 3.4.1 Variable Transformer 3.4.2 Voltage Sensor Circuit Designed 3.4 3 Microcontroller SK40C 3.4.4 LCD Display 3.4.5 LM393 Comparator 3.4.6 Other Components 3.5 Software Programming 3.5.1 Flow Chart of Software Programming 3.6 Simulation Design 3.6.1 Schematic Diagram 3.6.1.1 Complete Schematic Voltage Sensor 3.6.1.2 Complete PIC16F788 Simulation 3.7 Hardware Circuit Implementation 3.7.1 Voltage Sensor Circuit Implementation 3.7.2 Soldering 3.8 Programming Development 3.8.1 Programming in Micro C for PIC16F788 3.8.2 Brief of Initialization Ports and Pins 3.8.3 Main Programming 3.8.4 Proteus 7 Professional

3.9 Project Prototype 3.10 Summary of Project Methodology

22 22 24 24 25 26 26 27 27 28 29 30 32 33 34 35 36 36 36 37 38 38 39 40 40 40 42 44 45 46 4 RESULT AND DISCUSSION 4.1 Overview 4.2 Simulation Results 4.2.1 Voltage Sensor Output 4.2.2 Simulation from PIC16F788 and LCD 4.3 Hardware Results 4.3.1 Voltage Sensor Output 4.3.2 Output from PIC Microcontroller and LCD 4.4 Analysis for Hardware Implementation and Simulation 4.4 Gain Knowledge from Result 47 47 48 48 50 52 52 54 58 61 CHAPTER CONTENTS PAGE 5 CONCLUSION AND RECOMMENDATION 5.1 Conclusion 5.2 Recommendation 62 62 63 REFERENCES 64 LIST OF FIGURES FIGURE TITLE PAGE 2.1 Structure of RTU 8 2.2 Under voltageovervoltage lockout block diagram 11 2.3 Under voltageovervoltage lockout circuit schematic 12 2.4 RJ11 jack 13 2.5 Complete circuit voltage measurement 14 2.6 Under voltage relay base diagram 15 2.7 Circuit with filters and regulators 16 2.8 Potential divider circuits 17 2.9 Half wave rectifier 19 2.10 Half-wave rectifier with a capacitor 20 2.11 Full wave rectifier 20 3.1 Flow chart of project 24 3.2 Flow chart for sequence project 25 3.3 Block diagram of the system 26 3.4 Variable Transformer 27 3.5 Voltage Sensor 28 3.6 SK40C Basic Elements Overview 29 3.7 LCD 2x16 Green Backlight 30 3.8 Pin Diagram for LCD 30 3.9 Flowchart description of the software system 35 3.10 Complete Schematic Voltage Sensor Circuit 36 3.11 Complete PIC Microcontroller Circuit 37 3.12 Voltage Sensor Circuit Hardware 38 3.13 Soldering Implementation 39 3.14 Configure Input and Output Port 40 3.15 Output Voltage Calculation 42 FIGURE TITLE PAGE 3.16 Looping Process of Coding 43 3.17 Project Prototype 45 4.1 Input versus output voltage from simulation 49 4.2 Measured Output Voltage 49 4.3 Overvoltage Fault Condition 50 4.4 Normal Condition 50 4.5 Under Voltage Fault Condition 51 4.6 Input versus output from hardware 53 4.7 Overvoltage Fault 54 4.8 Normal Voltage 55 4.9 Under Voltage Fault 56 LIST OF TABLE TABLE TITLE PAGE 3.1 Pin Description for LCD 31 3.2 List of Other Components 33 4.1 Simulation Output Voltage 58 4.2 Hardware Output Voltage 52 4.3 Analysis Result from Simulation 58 4.4 Analysis Result from Hardware 59 CHAPTER 1 INTRODUCTION

1.1 Project Background