Hi,
What triac circuit were you referring to?
All microcontrollers support floating point, if you dont need super fast response. You use a floating point library.
Do you have any idea what the fastest response you need is?
Triac phase control is very simple in principle. The triac is not turned on until some time after the zero crossing. For example, say we want about 50 percent power which would mean slowing a motor down. Here we would not turn on the triac until the voltage wave reached 90 degrees, and then it would turn on, then later turn off near 180 degrees assuming a mostly resistive load. Then we also turn it back on at 270 degrees (the half way point of the negative half cycle) and later it would turn off at 360 degrees. We then repeat that.
If we wanted more power, we would turn it on sooner, like say at 45 degrees and again at 180+45 degrees. If we wanted less power then we would turn it on say at 120 degrees and then later again at 180+120 degrees.
So we do the same for both half cycles, and change the delay according to what speed we want. If we detect the zero crossing then the delay is the same for both half cycles so that makes it a little easier.
When you turn the triac completely on and off then you dont have to generate a delay. This means you turn it on for a rather lengthy time, then turn it off for a good amount of time too. That's when you dont need speed control of the motor.
You might call this pulse skipping modulation.
It depends how the rest of the system works. If the vacuum builds up slowly then you would have to keep the motor on for some time anyway, so you would not need phase control of the triac. The motor would run for several seconds and then turn off and stay off for several seconds typically.
What triac circuit were you referring to?
All microcontrollers support floating point, if you dont need super fast response. You use a floating point library.
Do you have any idea what the fastest response you need is?
Triac phase control is very simple in principle. The triac is not turned on until some time after the zero crossing. For example, say we want about 50 percent power which would mean slowing a motor down. Here we would not turn on the triac until the voltage wave reached 90 degrees, and then it would turn on, then later turn off near 180 degrees assuming a mostly resistive load. Then we also turn it back on at 270 degrees (the half way point of the negative half cycle) and later it would turn off at 360 degrees. We then repeat that.
If we wanted more power, we would turn it on sooner, like say at 45 degrees and again at 180+45 degrees. If we wanted less power then we would turn it on say at 120 degrees and then later again at 180+120 degrees.
So we do the same for both half cycles, and change the delay according to what speed we want. If we detect the zero crossing then the delay is the same for both half cycles so that makes it a little easier.
When you turn the triac completely on and off then you dont have to generate a delay. This means you turn it on for a rather lengthy time, then turn it off for a good amount of time too. That's when you dont need speed control of the motor.
You might call this pulse skipping modulation.
It depends how the rest of the system works. If the vacuum builds up slowly then you would have to keep the motor on for some time anyway, so you would not need phase control of the triac. The motor would run for several seconds and then turn off and stay off for several seconds typically.
Last edited: