Thanks for the reply. I will not open the GFCI. I only used it as an example.
I kindof need a circuit diagram because I do not know much at this point about non-mains circuits.
Later edit:
Prehaps this illustration of what I am thinking will help.
Providing the LED is bright enough, a photo-transistor will act like a normally open switch which is closed when the LED turns on. For a 5V TTL signal connect the photo-transistor's collector to +5V and the emitter to 0V via a pull down resistor, try 10k and the emitter goes to the logic input.
If you like, you can draw the circuit and I'll check it.
Thanks for the reply.
The reason for this circuit is to remotely tell if the line is live and later add a latching relay to control its on-off state. I tried X10 modules but they are not reliable.
I will try and draw it for you to check.
Could you please suggest a photo-transistor to use.
I think I can see what you're trying to do. The resistors act as a potential divider and the rectifier converts it to DC.
This will not work becuase an opto-transistor will not have a high enough voltage rating to work from the mains and even if it did, it will produce 60Hz pulses not a steady high logic signal when the photo-transistor turns on.
You need to use a separate 5V power supply to power the circuit and connect it as I described in my previous post. If you want an indicator you can still connect an LED in series with the pull-down resistor.
I recommend using a wall plug 5V power supply but you can build your own using a transformer, rectifier, smoothing capacitor and an LM7805.
My reason for the first resistor is to drop the voltage to 5 or twelve volts.
I am not sure I care if there are 60hz pulses as long as the led lights up and I can trigger a relay coil.
I could add a small bridge rect. and a cap. but did not think it would be needed.
Of course the purpose of the transistor is to isolate the output.
Thanks for the illustration. It enabled me to overcome some of the things I did not understand.
Using that information, I have come up with a revised version as shown in the following picture:
**broken link removed**
I will need a power on indicator LED as I am not using a GFCI (it was only an example of a device with one) and
have added it to the circuit.
Also I have added a second photo-transistor which is intended for isolated remote power on sensing.
Please review what I have done and make suggestions. For example, I was thinking I may be able to use a cmos package which will contain 4 opto isolators. Please suggest a package and I do not know what to use for R values in some cases.
Your first schematic was exactly what I was looking for and I only needed to add the power on LED to it which you have done in your second schematic.
Perfect.
At this point, I need to select a part number for the transistor and the photo-transistor.
(I had said opto before but I was wrong.)
Well the BJT needs to be able to carry enough current to power the relay coil, assuming it's pretty small I'd use a generic low power transistor such as the BC547, BC337, 2N2369A etc.
The photo transistor needs to be able to supply enough current when illuminated by the LED. Obviously it'll need to be shielded from ambient light. You also need to choose one in a clear package, not one with an IR filter.
The relay will turn on a computer. The computer power supply is most likely 450 watts. At 110VAC that's ( I think) about 4.5 Amps.
So, the relay will not be huge, but not tiny either.
I was thinking the photo-transistor and led were all in one package?
No, that's an opto-coupler, forget the opto-coupler.
Place the photo-transistor next to the indicator LED on the GFCI and cover with black tape so it doesn't get activated by ambient light. The relay will trigger when the LED on the GFCI turns on.
The current through the relay contacts doesn't matter, it's the coil current you need to worry about.
You have been most patient with me. Thanks.
Due to my lack of understanding, I am now thinking I may have started this thread out on the wrong foot.
First, I am not using a GFCI at all.
Second, I am basicly looking to build a remotely low voltage controlled latched relay switch where the control line and sensor lines are isolated to protect the controlling equipment.
In view of this, maybe we could use a latching relay with a AC coil and remotely trigger it through prehaps a SRC. This would keep the component count down and eliminate the need for a power supply.