Home     Contact     Forum     Projects     Chopshop&Experiments     Circuits     Theory     BLOG     Services     Terms of services    Privacy policy  
 Home     Contact     Forum     Projects     Chopshop&Experiments     Circuits     Theory     BLOG     Services   

1 January 2010
Author: Giorgos Lazaridis
Voltage Controlled AC Light Dimmer
IMPORTANT
DANGER OF ELECTRIC SHOCK!
Read this before taking any further action!!!
Precautions to avoid electric shock


The circuit on the testing bench, assembled on a breadboard

A friend of mine asked me for this circuit. He plans to make an automations with PLC in his house, and he wants to have a couple of dimmers for his lights. The challenge was to control those dimmers with an analog PLC output. He asked me for a simple - microcontroller free circuit to do the job.



The control signal

The circuit is designed to work from an analog output of a PLC. Here you can see the Mitsunishi ALPHA with an I/O emulator connected to the circuit

The first thing that comes to someone's mind when thinks of a dimmer, is a potentiometer that controls the light intensity. If a potentiometer is used, things can be very easy. Tons of different circuits can be found around the net. Others are very precise, others are not so stable. But the control of this dimmer is a DC voltage level.

The specific PLC that he will use has 4 analog outputs. Each output can be programmed to deliver any voltage between 0 and 10 VDC, with 0.01 voltage step. He plans to have a mimic program with 4 slide bars or buttons displayed on a touch screen connected to this PLC, and control the lights from there.

The first thing that came to my mind was a comparator circuit. I would have the mains power through a transformer transformed to 9VAC, and then full rectify this signal. Then, using a comparator, i would compare this signal with the control signal from the PLC. Whenever the 9V signal was higher than the control signal, the output of the comparator would go high and it would drive the gate of the TRIAC (through an optocoupler of-course). Although this sounds a good idea, it is actually completely false approach. Look what will happen:




The control voltage is minimum

The control voltage is maximum


When the control signal is minimum, the comparator's output will send the trigger pulse to the TRIAC's gate at the very beginning of the waveform. This will send full power to the light. As the control voltage is increased, the trigger will delay more and more and the light will gradually dim. Until here everything looks normal. But when the control voltage is at maximum, the trigger pulse can only be located at the middle of the waveform, as is shown on the right image above! The triggering pulse will never delay more than half a semi-period. This means that the light will never dim less than half of the power. The triggering circuit needs to be completely different!




A more advanced triggering idea

The 555 will generate a pulse, with a delay. This delay will start count from the time a zero-cross detection pulse is occurred, and the delay time is set from the DC voltage level applied on pin 5 of the 555.

I have a really good zero-cross detection circuit posted in the dimmer theory page. This circuit will generate a clean rectangular positive pulse whenever the waveform crosses the zero-point. The only thing i had to find out, was how to make a delay-ON circuit that would start counting from this pulse. Moreover, this delay circuit had to be controlled from a DC voltage level.

To tell you the truth, the on-delay circuit was not very hard for me to find one. Actually, my mind went directly to the 555 timer connected as monostable circuit. The trigger input of the 555 (pin 2) would be connected to an inverted output of the zero cross detection circuit. A properly selected RC net would create a fixed delay.

And right here comes another challenge. The delay of the 555 must be variable and controlled with a DCV signal. The 555 timer is not the most common and most used chip ever just by luck. If you look at the 555 theory page, there is the internal diagram of the chip. You will notice that the upper comparator has it's reverse-input pin coupled with a chip-pin, and this pin is the pin number 5. Actually, the pin's name is pretty much self-explanatory. It is named "Control Voltage". If you apply voltage to this pin, then the voltage level of the reverse-input of the upper comparator, and the level of the non-reverse-input of the lower comparator is affected. When the 555 is connected as monostable multivibrator, the upper comparator will monitor the capacitor's voltage. By changing it's reverse-input voltage level, this affects on the delay of the timer!

In other simple words, the input voltage is coupled (through a limiting resistor) directly to the pin 5 of the 555 timer. The higher the voltage, the more the delay from the 555.




The Circuit

The circuit is as follows:





The mains AC voltages is transformed to 9VAC through the transformer. the signal is rectified with a full-wave bridge rectifier. Immediately after the rectifier, the signal is driven to the zero-cross detection circuit. A large capacitor (C1) is used to smooth a part of the rectifier's output power. This will be used as the power supply of the rest of the circuit. The diode D1 is very important. Without this diode, the signal that is drivern to the zero-cross detection would be smoothed as well, and the zero-cross detection would be impossible.

The output of the zero-cross detection is directly sent to the trigger input of the 555 timer. The control voltage is driven to teh input 5 of the 555 timer. The rheostat R9 is used to control the maximum delay of the 555 timer, so that with maximum control voltage, it will NOT exceed the length of a semi-period, otherwise the light will be turned into a crazy-disco-light.

The output is then inverted with the transistor T3 and the signal is driven to the P gate of the optocoupler. the optocoupler is used to have complete galvanic isolation between the control circuit and the power circuit. The power circuit uses a BT136 TRIAC to control the load. This TRIAC is capable of driving a 4 amperes load at 600 volts. Feel free to use a more powerful TRIAC.




A Test-Run

As always, the circuit is tested in the PCB Heaven techlabs. We present you a series of images from the circuit in operation. Notice the intensity of the 600 Watt lamp, and the oscilloscope's screen. The green waveform is the output of the bridge rectifier. The blue pulses comes directly from the output of the zero-cross detection circuit. These pulses are driven to the trigger pin of the 555. Finally, the yellow line is the triggering pulse generated from the 555 timer:









For this demonstration, the control voltage was generated from a 5K potentiometer. Actually, any kind of DC voltage level generator can be used to control this circuit. It could come from an LDR voltage divider, from a potentiometer, from a PLC etc etc etc.

This video demonstrates the circuit in operation. The control DC voltage is generated with a 5K potentiometer. The whole operation looks like a normal dimmer:





The following video demonstrates this circuit, interfaced to the Mitsubishi ALPHA PLC. The up/down control is currently made with toggle switches:








Bill Of Materials
Resistors
R1Resistor 10 KOhm 1/4 Watt 5% Carbon Film 
R2Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
R3Resistor 4.7 KOhm 1/4 Watt 5% Carbon Film 
R4Resistor 100 KOhm 1/4 Watt 5% Carbon Film 
R5Resistor 10 KOhm 1/4 Watt 5% Carbon Film 
R6Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
R7Resistor 4.7 KOhm 1/4 Watt 5% Carbon Film 
R8Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
R9100 KOhm Linear Potentiometer
R10Resistor 1.5 KOhm 1/4 Watt 5% Carbon Film 
R11Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
R12Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
R13Resistor 1 KOhm 1/4 Watt 5% Carbon Film 
Capacitors
C11000 uF 16V Electrolytic Capacitor
C20.1 nF Ceramic Capacitor
C31 uF 16V Electrolytic Capacitor
Diodes
D11N4001 General Purpose Diode Rectifier 
B12W10M Single Phase 2 Amps Silicon Bridge Rectifier 
Transistors - TRIACs
T1-3BC548 Switching and Applications NPN Epitaxial Transistor 
T4BT136D Sensitive gate TRIAC 
ICs
IC1555 Timer 
OK1MOC3021 Random Phase Optoisolator TRIAC Driver Output 




Relative pages
  • 555 timer basic circuits
  • 555 theory of operation
  • The TRIAC theory
  • Learn how dimmers work
  • The SCR (Silicon Control Rectifiers) theory
  • How to make an Ambient Light Level Equalizer
  • How to make a light / dark activated switch - 3 different circuits under the microscope
  • Dr.Calculus: 555 Monostable calculator
  • Opto-isolator IC Pinouts



  •  Rate this article!



    Comments

  • At 4 February 2010, 15:39:52 user Kammenos wrote:
    • I would really like to see the circuit you describe and host it in my circuit pages. It is very interesting.
      I made this circuit about a month ago in a hurry, and worked fine. I told you that from the PLC i used 5 to 10VDC. If i wanted to have 0-10 from the PLC, then YES, i need buffering. I do not remember having ANY trouble adjusting the circuit at all. I am waiting some components and i will make a project with a 4-channel dimmer, that will be this exact circuit multiplied by 4. You need to follow a specific procedure to adjust it,NOT difficult at all, but specific. Unfortunately, i did not post this procedure on the first time, stupid of me. If i am remember correct though, you set the MAX DC voltage input, and then using the R9 you go to the point that you have max luminosity and no flickering. That's all. With the PLC for example, i set it to 10 VDC and then adjusted R9 to have steady max light. Then, reducing the PLC voltage, i found out that from 5 volts and bellow i had no luminosity.


  • At 4 February 2010, 15:12:02 user arturos wrote:
    • I have eventually given up on this circuit. The control circuitry feeding R13 needs buffering due to the input configuration of the 555, and setting up via R9 over the range of control voltages proved impossible.
      A much simpler and stable circuit is to use the zero-crossing detect circuit to control a one-transistor sawtooth generator (of twice mains frequency). This and the d.c. control voltage are applied to the inputs of an op-amp, whose output is fed to the buffer of the opto-triac.
      Whichever circuit is used, a snubber network (100 ohm resistor in series with 100nF capacitor) connected across MT1 and MT2 of the triac will prevent rate-effect mis-firing.


  • At 4 February 2010, 15:09:56 user arturos wrote:
    • I have eventually given up on this circuit. The control circuitry feeding R13 needs buffering due to the input configuration of the 555, and setting up via R9 over the range of control voltages proved impossible.
      A much simpler and stable circuit is to use the zero-crossing detect circuit to control a one-transistor sawtooth generator (of twice mains frequency). This and the d.c. control voltage are applied to the inputs of an op-amp, whose output is fed to the buffer of the opto-triac.
      Whichever circuit is used, a snubber network (100 ohm resistor in series with 100nF capacitor) connected across MT1 and MT2 of the triac will prevent rate-effect mis-firing.


  • At 24 January 2010, 18:13:10 user Kammenos wrote:
    • You are right about the control voltage. The min and max levels have nothing to do with VCC. I test it with 5-10vdc from a PLC output, and 0 to 12V with a potentiometer. R9 was correctly adjusted! With R9 you set the max level. Beyond this, the delay of the 555 is longer than the semi-period of the ACV and funny things may happen.

      R8 is 1KOhm and usually should not be changed. Changing R8 will not hurt anyone though. R9 may indeed need to be changed for the ease of adjustments. It has to do mainly with the control voltage level.

      Did you enjoy the circuit anyway?


  • At 24 January 2010, 17:47:27 user arturos wrote:
    • To set up the circuit, I set R9 to minimum value, with the control voltage at maximum (which might not necessarily be equal to Vcc). I then increased R9 for maximum stable pulse-width. Beyond this point the waveform \"flipped\" to a regular 1:1 m/s ratio pulse-train.
      In my hook-up, for some reason, I needed a value for R8+R9 of only 3.5kΩ so I used R8=2.7kΩ and R9=1kΩ.


     

    Name:
    Email (Shall NOT be published):

    Write your comments below:

          
    Subscribe and receive email notification for new comments! Learn more...
    Login if you already have an account, or create one now!



    Subscribe to our newsletter

    Random Circuits!
     PIC 3-Wire Fan RPM Controller
     Electronic Dice

    Relevant suggestions:
      Dr.Calculus: 555 Monostable calculator
      The SCR (Silicon Control Rectifiers) theory








     Home     Contact     Forum     Projects     Chopshop&Experiments     Circuits     Theory     BLOG     Services   

    Site design: Giorgos Lazaridis
    © Copyright 2008
    Please read the Terms of services and the Privacy policy