Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Variable Phase shift control circuit for PWM circuit

Amr Wael

Member level 4
Joined
Jul 13, 2020
Messages
78
Helped
0
Reputation
0
Reaction score
1
Trophy points
8
Activity points
733
Hello ,
I am designing a circuit for controlling the phase angle (Firing angle) of a TRIAC. I don't want to use a microcontroller.
I am have a circuit that generates a PWM signal. I want to design a circuit that introduces a variable phase shift to this PWM signal from 0 to 180 degrees for example
, this variable signal is going to be the control signal of the TRIAC.

I found many ways but all of them use zero cross detection and a microcontroller to adjust the firing angle.
I just want to do it in analog way. I Tried using an All-pass filter that worked perfectly for shifting Sinusoidal signals but it didn't work when phase shifting a square signal .
My AC source frequency is just 50 Hz so the firing pulses need to be the same frequency.

Thank you very much in advance.
Best Regards ,
Amr Wael
 

danadakk

Advanced Member level 5
Joined
Mar 26, 2018
Messages
1,866
Helped
295
Reputation
606
Reaction score
412
Trophy points
83
Activity points
8,361
Use an all pass to shift a sine followed by a comparator to convert it to a square wave.....

Why not a micro ? Here is what it takes to do code for a pot to pulse width generator -

1656928955537.png


The code on the right is generated by the blocks you drag and drop onto a canvas
and configure. 6 year olds are using it in class to program robots.

1656929056339.png



1656929464126.png



Regards, Dana.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
50,090
Helped
14,509
Reputation
29,288
Reaction score
13,454
Trophy points
1,393
Location
Bochum, Germany
Activity points
287,727
I Tried using an All-pass filter that worked perfectly for shifting Sinusoidal signals but it didn't work when phase shifting a square signal .
My AC source frequency is just 50 Hz so the firing pulses need to be the same frequency.
Isn't the AC source a 50 Hz sine? Why can't you use an all-pass to delay it?
The usual solution is of course a RC time delay, starting with the typical dimmer circuits (variable R, C, diac). You didn't however clearly describe your intention. What's the control source?
 

danadakk

Advanced Member level 5
Joined
Mar 26, 2018
Messages
1,866
Helped
295
Reputation
606
Reaction score
412
Trophy points
83
Activity points
8,361
A PWM edge can be moved to create a phase shift relative to its clock.

So a 50 Hz clock, x N for some resolution, can create an output whose
phase is adjustable while maintaining same period as source.

Dana.
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,726
Helped
1,155
Reputation
2,322
Reaction score
1,236
Trophy points
1,393
Location
California, USA
Activity points
31,229
without seeing your PWM circuit, it’s impossible to suggest how to control its phase shift. But, as Klaus says, the mixing of phase control and PWM is a bit muddled. What are you trying to do?
 

danadakk

Advanced Member level 5
Joined
Mar 26, 2018
Messages
1,866
Helped
295
Reputation
606
Reaction score
412
Trophy points
83
Activity points
8,361
OP wants to shift phase of a 50 Hz signal. So we have two signals, one
50 Hz considered reference signal, so its phase is ZERO.

Take a PWM, feed it a clock of 5000 Hz, set its duty cycle at 50 %, its now
creating a signal same as reference. Now change the comparator register
for duty cycle, freq stays the same, edge moves, eg, PHASE CHANGE.
This is used extensively for all kinds of phase related generation/clocking.
In fact one can do a strictly software PWM and preserve duty cycle while
shifting phase. I think I have seen PWMs that even have register control
over both edges to effect duty cycle preservation.

Easy to implement synchronous designs as well.

But as I originally posted, I think this meets his analog only criteria -

Use an all pass to shift a sine followed by a comparator to convert it to a square wave.....


Regards, Dana.
 
Last edited:

    d123

    Points: 2
    Helpful Answer Positive Rating

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top