8
\$\begingroup\$

I have an IR LED which is switched at a rate of 32.768kHz from an oscillator circuit (relevant portion shown below). I have 10 prototype PCBs. 30% of them work while the others don't. The problem is not the oscillator itself but the output stage.

On the boards that don't work, the waveform at TP7 (base) is a very nice square wave. So, the oscillator is working just fine. Measuring across R5 (TP1 to TP6) I can see that the bad boards conduct but don't switch. In other words, the LED output does not oscillate with the input at the transistor base.

Any thoughts to what the problem might be? I am well under the maximum switching frequency for that particular BJT. Also, my base resistor should put me well into saturation.

DriverSchematic

One thing you can't tell from the information below is that this is a battery driven circuit (CR2032). Due to its relatively high internal resistance the current through the LED with a fresh battery never exceeds ~ 100mA. So, R5 really isn't necessary. It's simply there so that I can test from a power supply. The battery is also 'switched in' as noted in the second image.

BatterySchematic

Any thoughts?

EDIT:

Here is a waveform at the base of the transistor Q2:

Waveform at base of Q2

Here is a waveform across R5 on a good board:

R5 good board

Here is a waveform across R5 on a bad board:

R5 bad board

Here is the battery voltage on a good board:

Battery voltage

\$\endgroup\$
5
  • \$\begingroup\$ Hard metallic short Q! C-E on "bad pcbs. - What happens. \$\endgroup\$
    – Russell McMahon
    Mar 2, 2012 at 14:44
  • \$\begingroup\$ As a few of you indicated, I tried to short the collector and emitter of Q1. On the first board, it fired up and started oscillating. I went on to do this to all the remaining boards but had zero success. I even removed Q1, shorted TP3 to TP4, and fed the oscillator circuitry from TP8. \$\endgroup\$
    – Jason
    Mar 3, 2012 at 0:02
  • \$\begingroup\$ I uploaded some of the waveforms I am seeing. Note the battery voltage. Unloaded they are all around 3.00V. When loaded they oscillate with the LED (obviously this is a good one) and range between 1.8V and 2.4V as shown. \$\endgroup\$
    – Jason
    Mar 3, 2012 at 0:11
  • \$\begingroup\$ Swap batteries twixt good and bad boards. result = ? \$\endgroup\$
    – Russell McMahon
    Mar 3, 2012 at 0:23
  • \$\begingroup\$ Yes... forgot to mention that. I tried that as well and the behavior does NOT follow the battery. So, it seems to be circuitry. \$\endgroup\$
    – Jason
    Mar 3, 2012 at 0:36

2 Answers 2

4
\$\begingroup\$

Short: Short circuit Q1 C-E with metallic shunt on "bad" circuits.
What happens?


Review what's known:

The CR2032 is being thrashed to far beyond its usual ratings and its voltage will sag to 2.5V or less.

Q1 on/off circuit seems unnecessary - The transistor used has a high Vsat and may drop almost a volt at 100 mA. Hard to be sure from datasheet. Measuring Q1-VCE when on may be informative. I only came to that part of the ciruit after going obver the IR part so the following omits the Q1 voltage drop which may be significant. Try bridging Q1 with a metallic short to turn circuit on and see if it helps bad circuits work.

Having Q1 in series with Q2 is unnecessary. Q2 can be arranged to be very hard off with battery across it + LED at all times. Then just switch Vcc to opamp when needed. As opamp current is low you can possibly switch batt5ery directly via SW1 depending on type of switch. LED current then never goes through switch.


Apart from Q1 Vsat issue:

LED datasheet here about 1.5V at 100 mA.

CR2032 typical datasheet here = Vout at 100 mA about 2.5V - maybe less. Not intended for this sort of loading.

Attempted current = ~~~= (Vbat-VLED)/Rseries = (2.5-1.5)/6.04 =~ 160 mA.
So battery voltage will sag muchly and LED voltage rise slightly until voltages match.

FCX690 transistor datasheet here is made by Zetex so must be good ! :-).

Base drive is about (Vopamp-Vbe)/Rb = (2.5-0.6)/2200 ~= 0.85 mA.
Transistor Beta (current gain) is awesome (400 ish at high current albeit with high Vce.) so drive provided is enough to saturate transistor.

Transistor saturation is higher than some - probably about 0.9V at 100-200 mA
Still not enough to greatly change the above overall current drain estimate.

SO

It's all rather hard on the battery but it SHOULD work with a newish battery. Unknown is length of on time, actual battery voltage under load, ...

Key questions are:

  • Are all batteries new.

  • Has battery - LED - ground current path been checked to ensure no high resistance additions by mistake. Eg battery connections, R5 or R7 have some values wrong by factor of 10 or 100 or ... . (Happens)

  • What is voltage high and low of waveform at op amp output.

  • What is battery voltage before and during switching attempt and what is battery voltage trace like during switching.

  • What is on/off duty cycle, how often switched, how long on?

    -What is waveform high/low voltages at Q2 base.


.

\$\endgroup\$
1
  • \$\begingroup\$ The batteries are all new. I've checked component values over and over and have looked for bogus solder joints as well. The duty cycle is not really defined. The unit may be active for up to 5 seconds at a time. The idle time (between two consecutive activations) is not defined... whenever the user presses the button. It would be quite common for to have a duty cycle of .5Hz with a width of 1 second per. Does that make sense? \$\endgroup\$
    – Jason
    Mar 3, 2012 at 0:25
4
\$\begingroup\$

I figure I should follow up with an 'answer' since I have solved my issue. In the end, it was really quite simple and I now feel silly for not finding it early on. The key was to simply follow the current. The LED on the 'bad' boards still conducted, it just didn't oscillate. Vce on Q2 had a nice square waveform on the 'good' boards but Vce was 0V on the 'bad' boards. An ohm meter across the junction showed a short. Removing the transistor from the board and flipping the part upside down immediately showed the problem. I had placed several vias on the emitter to tie it to ground (pour on bottom layer). A few of these vias were above the emitter pad (underneath the component body). The collector pin(s) on the SOT89 package are exposed and run the width of the part. As you can see from the image the chances of bridging collector and emitter are quite high.

Layout Issue

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.