Thanks Henrik. It is the heat from the resistor that I am concerned. Of course SMD need more care in the selection.
Ioannis
Thanks Henrik. It is the heat from the resistor that I am concerned. Of course SMD need more care in the selection.
Ioannis
Hi, Ioannis
as far as you do not measure mains, you can use a capacitor in series to reduce resistor dissipation ( resistor is just here to limit the current peak @ power on )
http://www.esr.co.uk/manuals/mk181.pdf
you also can try a neon bulb and a LDR or photodiode ... placed into a black shrinkable " tube"
Alain
Last edited by Acetronics2; - 17th January 2012 at 12:30.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks Alain. That was my first thought, to use a capacitor, but want to avoid it as it is large and costly.
This is going for a production device, so all matter.
Maybe I will find a low current opto and just use large enough resistors.
Will see.
Ioannis
Hi Ionnis,
There doesnt have to be too much heat dissipation. An opto like what Henrik suggested (my favourite in that category is PC814/817 for its compact 4 pin dip package) would need about 100K in series with mains. So, this resistor would dissipate slightly over half a watt; a 1 watt resistor should do fine.
Also, you arent interested in any timing issues here, just the presence or absense of the signal. So, you can afford to have a slower changing waveform per cycle on the opto's output. In which case, you can increase the 100K further, perhaps right upto 220K, to reduce the dissipation even further.
And, if you use an opto with just one diode, your series resistor would heat up even less.
Regards,
Anand Dhuru
Nah, be careful there. In that case you'll need an external diode across the LED in the isolator since the LED can only take a couple of volts (6V for the PC817) in the reverse direction and then the current going thru that diode will have to go thru the resistor(s) as well. That's the main reason I suggested the dual LED isolator.And, if you use an opto with just one diode, your series resistor would heat up even less
If the PIC is isolated you could live with a voltage divider and a zener and then direct to the PIC input.
/Henrik.
Anand: I have to make an extended research for the opto coupler that need the less current.
Henrik: unfortunately it will not be isolated. The voltage divider would be a good option in that case.
The other idea would be to use a small(?) relay with coil directly made for line voltage. But regarding the wasted power, it would be not so good one.
Ioannis
I would use a single led opto rather than a dual and put a 1N4004 diode and appropriate resistor in series with it.
Dave Purola,
N8NTA
EN82fn
Bookmarks