0% found this document useful (0 votes)
31 views5 pages

Proj 1

The document outlines a project for designing a phase control circuit using an Arduino, a potentiometer, and an LED to control brightness through pulse-width modulation (PWM). It describes the methodology, circuit setup, and code implementation, demonstrating how adjusting the potentiometer affects the LED's brightness. The results confirm that the PWM effectively modulates brightness, achieving the intended phase control effect.

Uploaded by

195250
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views5 pages

Proj 1

The document outlines a project for designing a phase control circuit using an Arduino, a potentiometer, and an LED to control brightness through pulse-width modulation (PWM). It describes the methodology, circuit setup, and code implementation, demonstrating how adjusting the potentiometer affects the LED's brightness. The results confirm that the PWM effectively modulates brightness, achieving the intended phase control effect.

Uploaded by

195250
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Palestine Polytechnic University

College of Engineering

Electrical Department

Power Electronics Lab for Renewable Energy

Homework #1

Design and implementation of a phase control circuit.

Instructor Name: Eng. Mohammed Al-Qaisi


Student Name : Abdalsalam Alsharif
Adham Alakhras
Mahmoud Alqawasmea

7-11-2024
Description
The system describes a phase control circuit that controls the voltage applied to
an AC load by varying the AC angle progression (from 0° to 180°) using a
potentiometer. When the position of the potentiometer is changed, the timing of
the TRIAC trigger signal is adjusted at specific times, allowing the voltage across
the load to be adjusted from 0 to the total source voltage (𝑉𝑆) supervising the
position of the potentiometer.

Introduction:
Phase control circuits are widely used in power electronics to adjust the power
supplied to electrical loads by varying the phase angle of the input signal. In this
project, an Arduino is used alongside a potentiometer to control the brightness of
an LED, simulating phase control through pulse-width modulation (PWM). This
approach allows us to manage the LED’s brightness by adjusting the duty cycle of
the signal applied to it.

Objectives:
 Design a phase control circuit using Arduino and a potentiometer to control
LED brightness or (TRIAC trigger signal ).
 Understand how adjusting the potentiometer affects the duty cycle and,
consequently, the brightness of the LED.
 Verify the effectiveness of PWM for brightness control in a simple setup.

Tools and components used:


 Arduino Uno
 20kΩ Potentiometer
 LED
 Connecting wires
Methodology:
The circuit uses an Arduino Uno board connected to a potentiometer and an LED.
The potentiometer's variable resistance provides an analog input to the Arduino,
which reads this input and maps it to a PWM signal. This signal controls the LED's
brightness by changing the output's duty cycle.

The simulator:
Circuit Diagram and Schematic
The above schematic shows the Arduino Uno connected to a potentiometer on
pin A0 and an LED on digital pin 6.

Code Explanation:
int pot;
int led;
void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
pinMode(6, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
pot = analogRead(A0);
led = map(pot, 0, 1023, 0, 255);

analogWrite(6, led);
}

 pot: Stores the analog input from the potentiometer.


 led: Stores the mapped value of pot to fit the PWM range.
 analogRead(A0): Reads the analog input (0-1023) from the potentiometer.
 map(): Converts this reading to the PWM range (0-255).
 analogWrite(6, led): Sets the LED’s brightness according to the mapped value.
Results:
Upon testing, turning the potentiometer adjusts the LED’s brightness smoothly
from off (0 duty cycle) to full brightness (100% duty cycle). The PWM signal
effectively modulates the LED’s brightness by altering the duty cycle, achieving the
desired phase control effect.
The output wave :

Conclusion:
Using an Arduino with a potentiometer and an LED provides a basic yet effective
model of phase control for brightness adjustment. This project demonstrates the
capability of PWM in Arduino-based circuits for controlling power supplied to
loads.

References
1. Video Reference: Phase Control and LED Brightness Control using Arduino -
YouTube (https://www.youtube.com/watch?v=gD4vDNHkds4)
2. Arduino Documentation on PWM:
https://www.arduino.cc/en/Tutorial/Foundations/PWM

You might also like