×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Optocupler question.

Optocupler question.

Optocupler question.

(OP)

If I have a sine AC signal (50Hz) signal going into a optocupler. How will the output look like?

 

RE: Optocupler question.

It depends on if and how the devices are biased, how the signal is coupled, and the input and output amplitudes compard to the linear ranges.

With care, you can force optocouplers to be linear. I've used them to carry audio to good success.

But if you've not made any effort to keep things linear, then the output would look like a half-rectified near squarewave.

 

RE: Optocupler question.

(OP)
I'v found something that I find interesting, a zero-cross optically isolated triac driver seems to take an AC signal into smal square pulses TTL signal, right?

RE: Optocupler question.

but triacs need there current to be above their holding current.

if you are after zero cross detector yuo can do it with especially ac coupled opto coupler (i think its HA11A1 or similar).......the transistor can then be used provide an input to a microcontroller with say a pull up resistor.

or use it to turn a transistor on or something

RE: Optocupler question.

There are a whole bunch of different types of optos.  Are you looking for a particular output for a particular input?

RE: Optocupler question.

My response (above) was addressing the simplest type of optocouplers: an LED on one side, and a phototransistor on the other.

 

RE: Optocupler question.

Yes, there are probably 20 different families of optos.  If you want a valid answer you need to be more specific.

Keith Cress
kcress - http://www.flaminsystems.com

RE: Optocupler question.

(OP)
Thanks.

This is what I want exactly:

I want to make a cleen square puls from a 0 - 220VAC 0-120HZ. The signal must be noise free. The output (Square pulse) is going into a AVR microcontroller. Then I like to calculate the frequence of the AC signal.

The positiv part of the AC sine signal must be 5VDC and the negative part 0VDC.

Any opto component for this?

RE: Optocupler question.

You are not going to get any signal at 0 V or 0 Hz. You need to make your specifications realistic.
5...230 VAC is realistic.
0.5...120 Hz is realistic.

Benta.

RE: Optocupler question.

(OP)
Ok I agree.

But the range must be as wide as possible.

1. So will an zero-cross optically isolated triac driver work in, lets say 5-230 VAC , 0.5-120 Hz?

2. Do I need to filter the signal with other components to get a clean signal?

Hans
 

RE: Optocupler question.

1: No. The Triac will turn on and stay turned on. You need a completely standard transistor output optocoupler.
2: Probably not. Choose a slow coupler (Darlington), that should be filtering enough.

You REAL challenge here is to build a circuit that will supply a constant current of, say, 20 mA to the optocoupler LED regardless of whether the input peak voltage is 5 V or 340 V (peak value of 240 VAC).

Benta.

 

RE: Optocupler question.

Hi,

The above referenced part is nice.  It has back-to-back LEDs, however, so it will turn on twice per cycle, equivalent to a full-wave rectifier.  One LED for the positive half-cycle, the other LED for the negative, or 100 Hz for 50 Hz main AC.  It also directly exposes the LEDs on the input wiring so significant circuitry will be needed to drop the AC Mains voltage to provide the maximum (not to exceed) 60 mA LED current.

Unless you're keen on routing 230 V on your PC Board, a small transformer may be a nice option to drop the 230 V to something safe like 15 before hitting the PC Board.  Otherwise some sort of safety barrier covering the tracks and opto-input makes a lot of sense.

Then some current limiting resistors. If you want to detect a wide range of AC voltage, clamp diodes will prevent overloading the LEDs.  I think that part of the prior post might have been misinterpreted.

The optocoupler output is just the transistor response to the analog input voltage/current.  For noise rejection and edge sharpening, a comparator or schmidt trigger is probably needed.  

http://en.wikipedia.org/wiki/Schmitt_trigger

It sounds like someone probably should have all this in a module.

RE: Optocupler question.

Just use any junker single LED opto.

Put in a series dropping resistor calculated to limit the LED current at the peak line voltage to 20% of Maximum Allowed Forward Current.

Put in a silicon diode in series with the opto LED to block the reverse voltage.  This cuts the power dissipation of the dropping resistor in half.(a good thing!).

So you now have a 230V AC source, running to a dropping resistor, running to a diode, running to the opto LED, returning to the 230V source.

Now add another reversed diode in parallel with the the LED.  This protects the LED from any destructive reverse voltage.


Monitor the opto's output (the logic levels).  The point at which it drops low is going to be the same place on the 230VAC waveform every cycle.  Use that as your synchronous point.

I have done this many times for SCR and TRIAC firing control.  It is pretty much the standard for this function.
You don't need to worry about the trailing edge of the logic signal.  Set up the AVR to count from the falling edge to the next falling edge.  That will give you the AC frequency to the accuracy of your counter.  If you need the frequency faster than a power line cycle set the aforementioned circuit up in both directions with two opto's. Measure the period between both falling edges. This will get you the frequency in half a line cycle.

Make sure you calculate the power dissipation of the dropping resistor/s.  It won't be ignorable.

Keith Cress
kcress - http://www.flaminsystems.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources