The Philippine Electronics and Technology Forum
February 10, 2012, 03:10:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1] 2   Go Down
  Print  
Author Topic: Opto-triac  (Read 1089 times)
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« on: March 07, 2010, 11:33:12 AM »

Im trying to control 220V 16watt fluorescent bulbs with electronic ballasts through the PIC. pde po ba ang MOC3021 for this application? pano po ung set up nya? Undecided
Logged
The Philippine Electronics and Technology Forum
« on: March 07, 2010, 11:33:12 AM »

 Logged
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #1 on: March 07, 2010, 12:27:39 PM »

mas ok kung relay na lang gagamitin mo kasi gagamit ka pa nang snubber sa triac. and marami nag sasabi na unreliable sa inductive loads even with a snubber..

but yes i don't see why hindi pwede ang moc3021 as a optoisolated triac driver.

kindly read the datasheet.
Logged
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #2 on: March 07, 2010, 12:43:53 PM »

yes, i have read the data sheet. ung actual set up ko my kasamang LCD at 12vdc relay using c9013 as amplifiers.. kaso pg ng deactivate po ang relay (with 220vac 16w bulbs connected) , naapek2han ang LCD, lumalabas mga alien characters. im thinking of using something that would isolate the relay ckt from my PIC and LCD. anu po suggestions nyo?
Logged
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #3 on: March 07, 2010, 12:46:48 PM »

i think kailangan mo lang nang diode sa closest sa terminals nang relay.
back emf issue lang yan.  Grin Grin Grin
Logged
RaffT
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 95
Offline Offline

Gender: Male
Posts: 3214


more on R-n-D


WWW
« Reply #4 on: March 07, 2010, 12:48:02 PM »

or search sa internet for SOLID STATES RELAY..
Logged

Learning is CooL! BEAM robotics/DIY UCD180/PSP/AC wtmtr/digiESRmtr/PICkit™2 clone/SGTC/SSTC/DR-SSTC
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #5 on: March 07, 2010, 12:50:15 PM »

http://e-gizmo.com/wordpress/?p=195
Logged
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #6 on: March 07, 2010, 12:56:17 PM »

if you already have the "snubber" diode and the "aliens" are still appearing, then putting snubber across the load or across the relay contacts might help.
Logged
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #7 on: March 07, 2010, 12:59:00 PM »

bale eto po ung schematic ko: i changed the resistors to 330ohms.


mali po ba ang mga components na ginamit ko?
Logged
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #8 on: March 07, 2010, 01:00:58 PM »

since may relay and transistor driver kna for the relay proceed to that path. medyo mas complex pa ung triac...
aslo lagi namin sinasabi dito na please lagyan nyo nang decoupling capacitor closest sa VCC VDD nang MCU.
a 1uf or .1uf ceramic cap will do.
it adds a TON of noise protection sa mcu mo.
Logged
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #9 on: March 07, 2010, 01:12:02 PM »

meron po akong coupling caps malapit sa vdd ng PIC at isa sa LCD. actually po greater than 1uF nilagay ko. kaso electrolytic. mali po ba? LCD timer ksi ung function nya. i encounter no problems when the relays activate, only when they deactivate. my mali po ba sa circuit ko?
Logged
kinyo
Size D Battery
******

Pogi/Ganda Points: 23
Offline Offline

Posts: 313


« Reply #10 on: March 07, 2010, 01:25:51 PM »

baka makatulong lagyan ng capacitor across C-E ng transistors (1 or 0.1 uF din)
Logged
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #11 on: March 07, 2010, 01:32:25 PM »

ok po...ung ibang components ba, like the 330 ohm and the 1n4001, are they okay? how about using electrolytic caps as coupling capacitors across vcc?
Logged
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #12 on: March 07, 2010, 02:00:44 PM »

i think kailangan mo lang nang diode sa closest sa terminals nang relay.
back emf issue lang yan.  Grin Grin Grin



sir, anu po ang purpose ng 22k across the protection diode?
Logged
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 466
Offline Offline

Gender: Male
Posts: 9160


Perfection is an Illusion


WWW
« Reply #13 on: March 07, 2010, 03:02:48 PM »

meron po akong coupling caps malapit sa vdd ng PIC at isa sa LCD. actually po greater than 1uF nilagay ko. kaso electrolytic. mali po ba? LCD timer ksi ung function nya. i encounter no problems when the relays activate, only when they deactivate. my mali po ba sa circuit ko?

kailangan meron ka pa ring 0.1uF or fast capacitors malapit sa supplies. maganda 'yung malalaking capacitors to localize current loop pero pagdating sa spikes, 'di nila kayang i-absorb kaagad.

pwedeng unang subukan 'yung 0.1uF across the CE (lagyan niyo rin ng resistor papunta sa GND para lang sigurado in case na mag Hi-Z 'yung pin ng MCU).

posible ring radiated emission ang nae-encounter mo dahil merong current sa line then puputulin, magkakaroon 'to ng maraming harmonics (kapag merong spark 'yung contacts, malaki na kaagad ang radiated emission, ganito rin ang ginagamit kong pang-test ng immunity dati sa radiated emissions, self-oscillating relay circuit). pwedeng ilayo 'yung relays sa MCU, lagyan ng shielding, or mag-off ka lang sa zero crossings nung AC line (pwedeng gamitin 'yung info na makukuha sa secondary ng transformer.

to minimize radiated emission, dapat 'yung lines ng ilaw mo e as close as possible sa isa't-isa (remember twisted pair or flat wires). pwede mo ring taasan ang immunity ng circuit by also minimizing current loops sa traces ng PCB.

actually, kahit na opto + triac ang gagamitin mo, may chances pa rin na ma-encounter mo 'yung same problems. malaki tulong nung .1uF sa pins ng MCU, but just remember in future applications, nababago niyan ang slew rate nung output pin ng MCU. Wink kaya in high speed applications, mas madalas mong makikita 'yung common mode chokes in the form of clip on ferrites. Wink
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #14 on: March 07, 2010, 03:29:32 PM »

kailangan meron ka pa ring 0.1uF or fast capacitors malapit sa supplies. maganda 'yung malalaking capacitors to localize current loop pero pagdating sa spikes, 'di nila kayang i-absorb kaagad.

pwedeng unang subukan 'yung 0.1uF across the CE (lagyan niyo rin ng resistor papunta sa GND para lang sigurado in case na mag Hi-Z 'yung pin ng MCU).

posible ring radiated emission ang nae-encounter mo dahil merong current sa line then puputulin, magkakaroon 'to ng maraming harmonics (kapag merong spark 'yung contacts, malaki na kaagad ang radiated emission, ganito rin ang ginagamit kong pang-test ng immunity dati sa radiated emissions, self-oscillating relay circuit). pwedeng ilayo 'yung relays sa MCU, lagyan ng shielding, or mag-off ka lang sa zero crossings nung AC line (pwedeng gamitin 'yung info na makukuha sa secondary ng transformer.

to minimize radiated emission, dapat 'yung lines ng ilaw mo e as close as possible sa isa't-isa (remember twisted pair or flat wires). pwede mo ring taasan ang immunity ng circuit by also minimizing current loops sa traces ng PCB.

actually, kahit na opto + triac ang gagamitin mo, may chances pa rin na ma-encounter mo 'yung same problems. malaki tulong nung .1uF sa pins ng MCU, but just remember in future applications, nababago niyan ang slew rate nung output pin ng MCU. Wink kaya in high speed applications, mas madalas mong makikita 'yung common mode chokes in the form of clip on ferrites. Wink
wow...it packs a lot of info..thanks. i think im going to try first putting 1uF or .1uf as coupling caps near the vdd of the pic and lcd; as well as to the C-E of the transistors. if im going to use optocouplers + relays, there is still a chance that i would encounter the same problem?

Quote
pwedeng unang subukan 'yung 0.1uF across the CE (lagyan niyo rin ng resistor papunta sa GND para lang sigurado in case na mag Hi-Z 'yung pin ng MCU).

BTW, panu pla ung set up pg nglagay ng caps across collector to emitter? parang hnd ko ata gets. and panu po mglagay ng shielding sa mga relays?
Logged
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 466
Offline Offline

Gender: Male
Posts: 9160


Perfection is an Illusion


WWW
« Reply #15 on: March 07, 2010, 05:04:55 PM »

parallel lang. use ceramic capacitors, mas mabilis response nila, 'yung electrolytics, inductive ang behavior nun sa higher frequencies.

sa suuply mas maganda talaga mataas. sa SMD merong MLCC (multilayer ceramic capacitor), merong matataas na values pero mabilis pa rin response. pero kung wala talaga, high value electrolytic, parallel sa ceramic.

actually, 'di practical i-shield ang relay, test lang kung radiated ang problem. kuha ka lang ng de-lata na walang laman tapos itakip sa relay. Wink
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
su1c1d4l
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« Reply #16 on: March 07, 2010, 07:49:45 PM »

parallel lang. use ceramic capacitors, mas mabilis response nila, 'yung electrolytics, inductive ang behavior nun sa higher frequencies.

sa suuply mas maganda talaga mataas. sa SMD merong MLCC (multilayer ceramic capacitor), merong matataas na values pero mabilis pa rin response. pero kung wala talaga, high value electrolytic, parallel sa ceramic.

actually, 'di practical i-shield ang relay, test lang kung radiated ang problem. kuha ka lang ng de-lata na walang laman tapos itakip sa relay. Wink
i think kailangan mo lang nang diode sa closest sa terminals nang relay.
back emf issue lang yan.  Grin Grin Grin


@rdzpzycho: ganito po ba ibig nyo sabihin pag lagyan ng caps sa CE? Sir pag ng lagay aq ng 100nF caps near vdd of PIC, tatangalin ko ba ang 2200uF caps ko? or pde i-retain lg?
Logged
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 466
Offline Offline

Gender: Male
Posts: 9160


Perfection is an Illusion


WWW
« Reply #17 on: March 07, 2010, 11:14:29 PM »

hindi mo tatanggalin 'yung malaki mong capacitor. reservoir 'yun, kapag kailangan ng current nung PIC or ng any device, sa nearest capacitor muna siya kukuha dahil madalas siya ang may lowest internal resistance sa supply line. ginagamit din siya to localize current loop.

'yung smaller caps naman, para sa higher frequencies. respond sa higher frequency or kung may higher frequency component 'yung current na kailangan nung device.

yup, ganyan nga. tries to maintain the voltage flat at the input of the transistor. though pwede mo rin 'yang ilagay doon sa pin ng MCU.
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #18 on: March 07, 2010, 11:28:10 PM »

merong opto triac na may zero crossing detector para mabawasan ang noise na nagegenerate sa pagswitchon ng load specially inductive ones
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
TinTopHack
Lead Acid Battery
*******

Pogi/Ganda Points: 138
Offline Offline

Gender: Male
Posts: 702


Nothing gold can stay. - Robert Frost


« Reply #19 on: March 10, 2010, 10:49:12 AM »

Below are my comments/recommendation - hoping you will find them helpful
Ckt # 1

For this circuit, the 100 ohm resistors at the base are too low. Changing them to 330 ohms -> still too low
if you are controlling the transistors using an MCU. With 9013 transistors a base current of 1mA should be enough to drive small relays at the collector so the base resistors should be 3K3 to 4k7 in value.

You mentioned that when the lamps are connected then the relays are deactivated/activated the LCD display is affected. It would be interestign to see how you connect your LCD so we can identify possible noise entry points. In the absence of such info, please check what happens if the lamps are NOT connected and you deactivate/activate the relays. If the LCD is NOT affected this time then your problem is related to the switching currents of the lamps - being flourescent lamps as you said. CFL or flourescent lamps then being inductive are generating a lot of EMI during turn on and off so you need to put EMI filter on your AC input. You may also need to put RC snubber across your relay contacts if your lamps are CFL or flourescent otherwise your relay contacts will not last long.

You also need to review your PCB layout - proper grounding, start grounding, etc. Poor layout makes your circuit susceptible to EMI.

Ckt #2


R1 22K should be removed. It could keep your transistor turned on all the time because it supplies unwanted bias to the base. The cap at the base will only slow down the switching of the the transistor. It will not help much on solving your problem. The diode across the relay coil is enough to suppress its inductive spike and noise. If you are worried about spikes entering the MCU pin then put a 1n4148 diode (anode to MCU pin + cathode to resistor) in series with the base resistor. This diode will block any voltage higher than 5V from entering the MCU pin.

Logged

The world, as everybody knows, is analog; unless, of course, it's digitized.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Saan po ako makakabili ng CNY70 na opto-coupler????
Electrical/Electronic Parts and Suppliers
Naruto12 4 954 Last post September 19, 2008, 11:07:15 AM
by maldihtah13
opto isolator
Consumer Electronics, Appliances and Electronic Gadgets
moira 3 528 Last post February 26, 2010, 12:24:00 PM
by Simatar
opto input quetion
Absolute Beginner Technical Discussion
rage3657 7 531 Last post March 02, 2010, 04:45:05 PM
by rdpzycho
opto-isolator
Thesis and Project Proposal
ayrtonshunt 3 364 Last post March 30, 2010, 11:00:06 PM
by ayrtonshunt
How to control a high-current AC loads by DC circuit-2 (using Opto-TRIAC)
General Electronics and Technology Discussion
webscatter 1 126 Last post November 10, 2010, 03:50:53 PM
by leuer79
akira tv ct-21nk9a reg and opto missing
Television Repair
marconikz 11 210 Last post July 20, 2011, 09:55:25 AM
by Triple_D
opto isolator
Analog Electronics
coi12 2 231 Last post August 05, 2011, 08:00:20 AM
by slsiasat_14
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!