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.

TRIACs

Status
Not open for further replies.

AtomSoft

Well-Known Member
I have a triac here and want to use it to DIM a 125v (100W) light bulb. I want to use a PIC to control the DIM/BRIGHT-ness of the light.

Can someone post some links or general knowledge on how to accomplish this.
Ill post a link to the TRIAC i have in a minute ... have to step out fast.
 
Hi there,


One way to do this is to sync the PIC to the line frequency via an input pin, sensing near to the zero crossing of the AC line.
You can then generate a delay of length up to the time for one half cycle of the line frequency. The shorter the delay the brighter the bulb, and the longer (up to the half cycle time limit) the dimmer the bulb will be. By varying the delay time the bulb can be dimmed to just about any level. At the end of the delay the triac gate is triggered so it turns the triac on. The triac turns off by itself at the zero crossing. In this way you generate pulses who's amplitudes vary with the line sine wave but are only as wide as one half the cycle time minus the delay time.

It's somewhat important that you dont allow the delay time to ever exceed the half cycle time or you'll end up with subharmonics which may make the bulb look like it is blinking sometimes as well as end up with other undesirable effects. One way to ensure this criterion is met is to set the max delay time to something like 95 percent of the time for one half cycle.
 
Last edited:
Hello again,


Yes that looks like what i was talking about.
 
Take a look at R3.. the 1Mohm Resistor... What wattage should i use?

shema-schematics_v1-png.44705
 

Attachments

  • shema-schematics_v1.png
    shema-schematics_v1.png
    23.3 KB · Views: 1,083
@ MrAl

Could you possibly explain what needs to be done... i know you gave me a answer above but if possible to explain better it would be appreciated.

I just noticed that there is no code but only HEX files in that project, the schematic will help alot tho. But as for code wise im lost. I will of course SHARE the source with all as usual...
 
Correct me if im wrong ...

i need to use a PIC with Clamping Diodes that clamp to VDD and VSS correct?

a large resistor to drop current correct?

The pic will either be HIGH or LOW depending on if the Sign is Above Zero Crossing (1) and Below Zero Crossing (0)... correct?

so i have to detect a zero crossing then get the time it takes from a zero crossing to a zero crossing. then decide whether to close the gate ?
Am i anywhere close on what i am assuming?
 
So in the schematic from before.
shema-schematics_v1-png.44705


D1 drops it to 5.6v and creates and D2 drops 0.6v so its 5v or so... They both create a VCC/GND half way rectifier?
 
ok i dont want to kill myself doing this heh. (or blow up a pic in my face. I dont own safety goggles) can someone verify that a pic can handle 125v with a 1M ohm resistor on a pin with Clamps..

Also @ 125v a 1M resistor should drop current to about ... 0.000125 A or 125uA... correct?
 
if it helps you i use triacs for turning on/off when using ac, i generally have the pic isolated from the mains using opto isolators, i am also currently working one a pic based light dimmer using a triac as output. still trying to get my head round the sync part
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top