Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Digital inline dimmer power supply

Status
Not open for further replies.
ericgibbs said:
Hi kybert,
I dont want to sound like a smart a*rse, but wont the actual lamp you are controlling tell you how dim the light is?;)

The bog standard light dimmers that control a triacs firing angle are quite efficient, minimal power wastage?

LOL - Yes indeed, but for visual effect, it will look good, its a secondry function for a later date prehaps.

I'm not too concerned with wasting power, 10mA is nothing, and is less than the standby light on the TV.
 
You can buy a light dimmer that has a 10 LEDs bar graph. It has up and down buttons and also has IR remote control.
 
I know - but where is the fun in that!
If i can get this PSU sorted, then i can do other things like security, auto-dim after x-seconds, etc....
 
kybert said:
In the UK, its usual to only have a 3 core wire in the switch housing. The wire carries LIVE into the switch, and the live return comes out of the switch directly to the bulb. The 3rd conductor is the earth.
OIC, the main power junction is done in the light fixture box instead of the switch box. Yes.... That is a problem.

I guess you could use a small current transformer in series with the lamp to generate voltage for the PIC when the lamp is at it's brightest and drawing max current. It does add the complication of extra inductance in the load.
Another technique would be to never bring the bulb to 100% brightness though this won't be very efficient.
 
If you make the current requirement low enough, you could connect it between the live and earth and still comply with the IEE regulations. In order to comply the capacitance must be <4n7 to earth and the resistance much be >1M to earth.

What current can you get your PIC working down to, will it work down to 200:mu:A?
 
The PIC will work, however, its going to be tricky to fire a triac at such a low current.

I need about 30mA really to do the LEDs and the triac.
 
kybert said:
The PIC will work, however, its going to be tricky to fire a triac at such a low current.

I need about 30mA really to do the LEDs and the triac.

hi,
This is one way you could get +5V for the PIC and LED's.

Consider the Triac as being OFF, non conducting.
The capacitive reactance of C1 at 50HZ will limit the current thru the Lamp/C1 and the power zener to approx 35mA.
The voltage drop across the 5V6 zener, will reduced by the forward voltage drop of the 1N4007 diode, which charges
the Cd smoothing cap, giving approx +5V, wrt to the neutral line, this will power the PIC etc.

As the Triac is switched into conduction by the trigger transformer, the current flowing thru the Triac will also flow thru the 5V6 zener
[ thats why it has to be at least a 5Watt zener], the voltage drop across the zener is 5.6V as before.

You will always have 5.6V drop on the positive half cycle of the mains supply, that shouldn't be a problem.

The problem is the Triac trigger reference, I have shown a trigger isolation transformer.

You have not said in your posts, how you intend driving the Triac from the PIC?

Where are you going to get the mains phase cross over point reference for the dimmer control?

Please look thru the drawing, any points you dont understand... ask:(
 
Last edited:
HI,

I get the phase cross over from a resistor and diode in series with each other, directly into the PIC input pin from the live wire (just after the switch).

The PIC has input over and under voltage protection diodes build into it, so i get an interrupt when the phase goes from zero to peak and another when the phase changes from peak to zero, 10ms apart, which is enough to detect the zero crossing points (there is a small error on the cross over points due to the trigger threshhold, but this is only a few uS)


I drive the triac via a MOC 3020 device, which converts a logic level into the correct levels for driving triacs.

The lamp in the drawing is in the wrong place, it should be connected between the bottom of the zener (currently the N line) and N.

L --- PSU --- LAMP --- N
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top