# AC power control with thyristor using pic microcontroller

AC power control with thyristor using pic microcontroller is designed to control AC power flow across load. This project is designed using PIC16F877A microcontroller and Zero crossing detection circuit. Phase angle control method is used for AC power control with thyristor. Thyristor is used as a switch to control flow of power. PIC16F877A microcontroller is used to detect zero crossing and to generate pulse signals at a specific angle for thyristor. It is used in many power electronics project. Many final year electrical projects are based on this ac power control.

### AC power control with thyristor

you may also like to read triac firing angle control circuit. Lets start with basic understanding of AC power control with thyritor.  For example if a load is connected to AC power supply through a switch as shown in figure below. Triac is used as a switch. Triac is a kind of thyrsitor. In triac two back to back thyristors are connected to each other.

The AC power flow to load can be controlled by controlling rms value of voltage appearing across load as shown in above figure. This method is also called AC voltage controller method. In AC voltage controller, rms value of voltage appearing across load is controlled by varying the firing angle of triac gate signal as shown in figure above. As you know power in AC circuits power ( Active power) is calculated by using following formula:

P = V × I × cos(θ) Where  cos(θ) is power factor

To make this project more easier we used only resistive load. By making little bit changes in code, you can also use it with inductive loads. In resistive loads power factor is always unity. So  cos(θ) = 1 and above formula becomes:

P = V × I = V × V/ R = V²/R

P= V² /R

So according to above formula, power across load is directly proportional to square of voltage. By controlling voltage across load, power can also be calculated. As I have mentioned earlier, AC voltage controllers are used to control rms value of voltage across loads. AC voltage controller circuits have many applications in industry like tap changers in transformers, induction heating, speed control of induction motor and  lights control.

### Types of AC voltage controller

Two types of AC voltage controller are used for AC power control with thyristor. Breif explanation of both of them is given below:

• Pulse skipping modulation control : In this method load is connected to ac power supply for few cycles and then supply is turned off for few cycles. AC power supply is controlled by controlling firing angle of thyristor.
• Phase angle control : In phase angle control method, loads are connected across AC supply for specific portion of positive and negative cycle. Specific portion depends on timing of thristor firing angle.

In AC power control with thyristor project, phase angle control method is used to control flow of power across load by controlling voltage. It is also used in charger devices.

### Circuit diagram of AC power control with thyristor

Circuit diagram of AC power control with thyristor using pic microcontroller.  I have also made necessary comments in figure.

PIC16F877A microcontroller is used to detect zero crossing of AC voltage and PIC16F877A microcontroller generate pulse for triac a specific delay after zero crossing detection. I have also posted a article on zero crossing detection using PIC16F877A microcontroller. For more understanding about zero crossing detection check following article:

Zero crossing detection using pic microcontroller

In this project I have used a delay of 2ms. What its means? Its means microcontroller will generate a pulse after zero crossing detection with 2ms delay. You can adjust the delay either by manually entering its value in code or you can also use variable resistor to adjust value of delay  by using analog to digital converter of PIC16F877A microcontroller.There is not too much science involve involved in above circuit diagram of ac power control with thyrsitor.  First of all microcontroller checks zero crossing detection and then fired triac angle with 2ms delay after zero crossing detection.

### AC power control with thyristor program

Code for AC power controller project is written using Mikro C pro compiler. Simply put this code in mikro C compiler after creating new project. 11.059MHz Crsytal is used for this project.

### Variable ac power control with triac and pic microcontroller

Necessary comments are also made in above code. Code for AC power contself-explanatoryanatory, but if you still feel any issue, feel free to comment on this post with your issues. This code is only for 2ms delay in firing angle. If you need code with variable firing angle control circuit using microcontroller, you can avail my project service by contact me.

1. Abiola Sunday Adewale July 13, 2015
2. BILAL Malik July 13, 2015
• Krunal Thummar January 27, 2017
3. sahithi October 8, 2015
• Bilal Malik October 8, 2015
• Abubakar March 10, 2016
• sai March 9, 2016
• BILAL Malik March 9, 2016
4. Gaurav Jain April 14, 2016
5. irfankhan May 9, 2016
6. VIPIN C V September 6, 2016
7. Mahesh Prasath November 16, 2016
8. nag December 12, 2016
9. nag December 12, 2016
10. Atish February 3, 2017
11. John kelabu February 13, 2017
12. Nikhil February 20, 2017
13. Hakimi February 23, 2017
14. akshay bedare March 25, 2017
15. sanath March 28, 2017