Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Controlling a 220V Power Line with 5v (TRIAC vs RELAY-Optocoupler)

Status
Not open for further replies.

io_anthony

Newbie level 1
Joined
Mar 18, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
Hello All,
I am designing a project with which I can control a 220v low power load (small light bulb or small fan) with the signal from a PC parralel port such that when the 5V from the PC parallel port is off, the 220v is shut off from the device and vice versa.
For now, let's assume that I have the 5v control signal ready from the PC.

1) What is the best way to implement this with a TRIAC)?
2) What is the best way to implement this with a relay with opto-isolator combination?
3) What are the advantages/disadvantages of each?
Thanks.
 

Hi, I'm not an expert on the subject (yet) but here are my thoughts:

First the relay, if you optically isolate the relay from your PC then you will need another power source to power the relay's coil. You can get sensitive relays quite cheap now that could be powered directly from your PC. Just check that the required current doesn't exceed the maximum current a single output from PC can provide. You'll also need to wire a diode in inverse parallel with coil to protect your PC.

There are two types of TRIACs that you could use. Some of the newer ones are designed to be able to be triggered directly from microcontrollers and other logic level circuits but require you also connect your controlling circuit to neutral. I'm not a fan of this design but that's personal preferences, not sure if it's suitable for your requirements but if you look for ACSwitch and ACSTriac on ST's website you'll find more information (sorry I can't post a link, their site requires flash and I'm on my iPad)
The other solution is to use a normal TRIAC but optically isolate it using something like a MOC3061. This would be my preferred solution and should provide the best protection for your PC. TRIACs can get tricky depending on what you are trying to power, but light bulbs and motors are common loads and there are tons of examples on the net and in datasheets.

Another option would be SSRs (Solid State Relays) which are basically a TRIAC, opto-isolator and an optional snubber in a single package. They are a little more expensive but you would only need one resistor to limit the current to the input and nothing else.

BTW, Velleman sell a kit you can assemble yourself which can do exactly this, it has four inputs and outputs and is based on TRIACs

Hope that helps to some extent
 

I can only second the idea of using SSR (solid-state-relay) ..
Easy to connect, no external power source and safe ..
See attached picture ..

Here is comprehensive revew on LPT:
Parallel port output

IanP
:wink:
 

Attachments

  • lpt_ssr.gif
    lpt_ssr.gif
    6.3 KB · Views: 144
  • Like
Reactions: DrWhoF

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top