How to calculate triac angle to set desired RMS voltage

Click For Summary

Discussion Overview

The discussion revolves around calculating the triac angle necessary to achieve a desired RMS output voltage when using a microcontroller-based voltage regulator. Participants explore the relationship between the triac angle and the output voltage, particularly in the context of dimming light bulbs.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a formula to calculate the triac angle based on a desired RMS output voltage, noting the challenge of deducing the angle from existing formulas.
  • Another participant questions the application of the chopped waveform, asking what type of load will be driven by the triac.
  • Some participants point out that the relationship between light bulb voltage, power, and luminosity is not necessarily linear, complicating the calculation of the desired lighting level.
  • A suggestion is made to create a table of fire angles corresponding to desired brightness levels, which could be used for control by the microcontroller.
  • One participant attempts to solve for the triac angle using a mathematical approach and shares their findings from Wolfram Alpha.
  • Another participant emphasizes the need for a formula applicable beyond just light bulbs, expressing interest in finding a more universal solution.
  • There is a mention of rearranging the existing equation into a solvable form, with a suggestion for visualizing the solution.

Areas of Agreement / Disagreement

Participants express differing views on the feasibility of calculating the triac angle directly from the desired RMS voltage. While some propose practical solutions like creating a lookup table, others emphasize the need for a mathematical formula. The discussion remains unresolved regarding the best approach to calculate the triac angle.

Contextual Notes

There are limitations related to the assumptions about the linearity of light bulb brightness and the compatibility of different types of lighting with triac dimming. The mathematical steps involved in deducing the triac angle from the existing formula are also not fully resolved.

Urrys
Messages
5
Reaction score
0
Hi,

I would like to implement voltage regulator based on microcontroller + triac.
I am able to calculate source RMS voltage by sampling signal using ADC, but don't know how to calculate triac angle to set desired RMS voltage.
For example i have 250v source RMS voltage and i need to calculate triac angle to set output RMS 100v. Desired voltage might be any thirefore i need some formula to make possible recalculate triac angle in runtime.

I have found formula to calculate RMS by using triac angle:
https://www.physicsforums.com/threa...e-from-triac-phase-angle.572668/#post-3737599

But i need to calculate angle by using desired RMS output voltage. The problem that i can not to deduce angle from this formula - angle in sinus argument and also it is outside sinus.

Could you help to make a formula to calculate triac angle by using desired RMS voltage?
Or probably some other method is better to calculate triac angle ?
 
Engineering news on Phys.org
Welcome to the PF. :smile:

What are you going to be driving with this chopped-up waveform? An incandescent light bulb? What is the application?
 
berkeman said:
Welcome to the PF. :smile:

What are you going to be driving with this chopped-up waveform? An incandescent light bulb? What is the application?

I want to create regulator to make possible set light bulb lighting level in percentage (or in voltage).
E.g. Set 30% of lighting, controller should calculate angle and set correct delay to open triac.
 
Urrys said:
I want to create regulator to make possible set light bulb lighting level in percentage (or in voltage).
E.g. Set 30% of lighting, controller should calculate angle and set correct delay to open triac.

Light bulb voltage, power, and luminosity are not necessarily linearly related, so 30% of what?

Light dimmer circuits are common, but it is unusual to require advance calibration like this.
 
anorlunda said:
Light bulb voltage, power, and luminosity are not necessarily linearly related, so 30% of what?

30% of source voltage.
Original question was to find out triac angle.
 
Using the equation linked in #3, I put the following into Wolfram Alpha "solve 0.3=sqrt((2pi-2X+sin(2X))/4pi) for x" and it gives me about 2.7 radians for X. X is triac angle.
 
Last edited:
Urrys said:
Set 30% of lighting,
As @anorlunda says, 30% of Vrms input does not necessarily mean 30% brightness for the lighting. First of all, is this incandescent or LED or CF or some other type of lighting? Some types of lights are not compatible with triac dimming.

Second, the best way to do this is just to use a simple triac dimmer and measure the fire angles that give you the % brightness that you want. Then make a table with those numbers to put into your control microcontroller (uC). You could make the table have 10% increments, and use the uC to interpolate between those entries for the other % settings, for example.
 
Creating table this is one of the way. But still I am interested to find formula which can be used to calculate angle, just to find common solution which can be applicable not only for light bulb.
 
  • #10
Did you read the thread linked to by @Svein in post #3? :smile:
 
  • #11
berkeman said:
Did you read the thread linked to by @Svein in post #3? :smile:

Yes i already mentioned this thread in my first post. There is formula to calculate RMS by using triac angle. But i need to deduce triac angle from this formula. It looks like impossible or hard to simplify this formula to make it like TriacAngle= ...
 
  • #12
Urrys said:
Yes i already mentioned this thread in my first post.
Oops, sorry, I missed that.

It looks like you can rearrange that equation into a form similar to x + sin(x) = <a number>

If so, then there are ways to visualize the solution and also solve for it. See for example this:

http://mathcentral.uregina.ca/QQ/database/QQ.09.99/grover1.html

Others with more math background can probably be of more help.
 

Similar threads

Replies
10
Views
5K
  • · Replies 9 ·
Replies
9
Views
38K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
13
Views
4K
  • · Replies 23 ·
Replies
23
Views
4K
Replies
38
Views
7K
  • · Replies 34 ·
2
Replies
34
Views
6K
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
3
Views
3K