Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th January 2004, 01:39 PM   (permalink)
Default need some suggestions for this circuit-PIC light dimmer

ok. i have this circuit. it uses a PIC(not shown in the diagram) to drive some lamps trough a triac. the cicuit is intended to work only with exact connections for Phase and Ground. i want to make the circuit work even if the mains connections(phase and ground) are swapped. so i need to drive the triac with an optoinsulator and figure a way so that i don't have the phase connected to the PIC directly in case the mains ground and phase are swapped.
the pic is not shown in the figure. the optocoupler is used to provide syncronization with the phase for the pic. the triac is driven from the pic directly.
bogdanfirst is offline  
Old 9th January 2004, 02:12 PM   (permalink)
Default Re: need some suggestions for this circuit-PIC light dimmer

Quote:
Originally Posted by bogdanfirst
ok. i have this circuit. it uses a PIC(not shown in the diagram) to drive some lamps trough a triac. the cicuit is intended to work only with exact connections for Phase and Ground. i want to make the circuit work even if the mains connections(phase and ground) are swapped. so i need to drive the triac with an optoinsulator and figure a way so that i don't have the phase connected to the PIC directly in case the mains ground and phase are swapped.
the pic is not shown in the figure. the optocoupler is used to provide syncronization with the phase for the pic. the triac is driven from the pic directly.
I can't see a diagram anywhere!.

So, while I can't comment on the circuit, all you need to do is derive zero-crossing pulses off a bridge rectifer - this gives a zero-crossing pulse for each half cycle, independent of mains polarity.
Nigel Goodwin is online now  
Old 9th January 2004, 04:40 PM   (permalink)
Default oops. sorry for that.......

here is the diagram....
Attached Images
File Type: jpg dimmer.JPG (43.4 KB, 775 views)
bogdanfirst is offline  
Old 9th January 2004, 05:18 PM   (permalink)
Default Re: oops. sorry for that.......

Quote:
Originally Posted by bogdanfirst
here is the diagram....
Feed the input to the opto-isolator from a mains bridge rectifer, so from the positive side of the bridge to R3, and from the negative side of the bridge to bottom end of the LED - disconnecting it from ground of course.

This will give you zero-crossing pulses every half cycle, you will probably have to rewrite the PIC software to compensate.
Nigel Goodwin is online now  
Old 9th January 2004, 09:01 PM   (permalink)
Default

ok. just one more question.
how could i insulate(optoinsulate) the triac from the other circuit. lets lasy i have another circuit powered from battery wich will need to driva the triac. and i need optoinsulation.
bogdanfirst is offline  
Old 9th January 2004, 09:09 PM   (permalink)
Default

what about this modification? all i need is to drive the triac via an opto coupler. could i use the same type as the first on.
note. the optocoupler is an a.c. type. it also has a diode in reverse connected in paralel with the led.
Attached Images
File Type: gif dimmer3.GIF (15.1 KB, 760 views)
bogdanfirst is offline  
Old 10th January 2004, 07:14 AM   (permalink)
Default

Quote:
Originally Posted by bogdanfirst
what about this modification? all i need is to drive the triac via an opto coupler. could i use the same type as the first on.
note. the optocoupler is an a.c. type. it also has a diode in reverse connected in paralel with the led.
Slight mistake, you've fed the PSU for the PIC (R6 etc.) from the output of the bridge, that still needs feeding from the incoming mains (DC won't work too well with a capacitive mains dropper).

Yes, you could use the same sort of opto-coupler to feed the triac - but it would be pretty pointless as the PIC is still live! - you would need to feed the PIC from a mains transformer.
Nigel Goodwin is online now  
Old 10th January 2004, 12:35 PM   (permalink)
Default

what about now?
also i am not familiar to insulating the triac. do you have any link to a circuit that showa how to do it?
Attached Images
File Type: gif dimmer4.GIF (17.4 KB, 718 views)
bogdanfirst is offline  
Old 10th January 2004, 01:25 PM   (permalink)
Default

Quote:
Originally Posted by bogdanfirst
what about now?
also i am not familiar to insulating the triac. do you have any link to a circuit that showa how to do it?
A quick google search found this:
http://zebra.tky.hut.fi/~jap/Electronics/ExposureTimer/.
Nigel Goodwin is online now  
Old 10th January 2004, 07:59 PM   (permalink)
Default

I really don't understand, why You need an opto for sync., if the PSU not isolated from mains. See this:
Attached Images
File Type: gif dim.gif (225.4 KB, 699 views)
Sebi is offline  
Old 11th January 2004, 09:58 AM   (permalink)
Default

Quote:
Originally Posted by Sebi
I really don't understand, why You need an opto for sync., if the PSU not isolated from mains. See this:
Using a bridge rectifier gives you a zero crossing signal every half cycle, the method in the diagram only gives one every full cycle. An opto-coupler is a convenient way to generate a narrow zero-crossing pulse, every half cycle - because it's connected to the bridge rectifier, and therefore 'floating' at half mains, the opto-coupler isolates it from the full mains.
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:43 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker