Problem with I/R sensor / OP Amp

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
I built this I/R sensor circuit a while back. I had everything working perfectly till I had a tragic accident with my CNC machine (it was to be the RPM sensor for the machine). So I had to rebuild the thing from scratch.

Now I am not getting a transition at all on pin on of the LM2903.

My supply is +5V. I have verified supply is at pin 8 of the op amp

Pin 1 sits at a solid 0.975V no change reflecting or not reflecting.

Pin 3 is at 0.495 volts.

The strangest thing is on Pin 2. Not reflecting it is at around 4 volts but then I see these periodic transitions to around a few milli volts. Sometimes it stays there for less than a second. Other times it stays there for several seconds.

I have turned off any potential source of I/R like my florescent light.

Reflected pin 2 is just a few milli volts.

I was able to capture one transition right in the middle of the transition and included it below.

If the op amp is pulled out of the circuit then pin 2 (of the socket) stays at just a little over 3V not reflected and goes to just a few milli volts when it is reflected.

I have tried 2-3 opamps all with the same result.

This is very frustrating since I already had the thing working.

My only difference between what I have now and what I had working is I am fairly certain R1 used to be a 20k. I don't know why I did it but I salvaged the old board for parts. It was stupid. Somehow I thought it would be easier swapping out parts. I should have left everything intact.

The other change was R6 was originally left out of the design. After realizing my mistake I simply soldered a 10K from pin 1 of J1 to pin 1 of J2. I then updated the pcb design in the event I was going to make more boards. But I can't see how that could cause an issue.

But could too high of a value for R1 cause those strange oscillations?


upload_2017-11-8_21-25-19.png

upload_2017-11-8_22-0-52.png
 

crutschow

Joined Mar 14, 2008
38,504
You appear to have some sort of intermittent connection or cold solder joint.

Do you have a good power and ground connection to U2?
 

jjw

Joined Dec 24, 2013
823
The voltage at comparators + pin is quite low < 0.5V
Will the opto output go below it?
You could increase R1 to 1K.

Edit. should be: increase R4
 
Last edited:

AlbertHall

Joined Jun 4, 2014
12,625
The connections to U2.2 are weird. The output is grounded. That might be interfering with the other amplifier. Connect the output only to the inverting input and connect the non-inverting input either to ground or to the 0.5V reference.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
The connections to U2.2 are weird. The output is grounded. That might be interfering with the other amplifier. Connect the output only to the inverting input and connect the non-inverting input either to ground or to the 0.5V reference.
As per the datasheet.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
All input pins of any unused comparators should be tied to the negative supply.

I might be wrong but I thought I also read the output pin should be tied to ground too.

But there is a clarification here.

https://e2e.ti.com/support/amplifiers/etc_amplifiers__other_linear/f/18/t/608157
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
What I meant was if inputting into a Picmicro, a comparitor could be used.
Is it a OPB609 or a CNY70 for e.g.?
Max.

It is a pic. I decided to go this route. I will have to look into using comparitors on the pic in the future. I wanted to exteriment with opamps anyway so this was a good exercise.


I got it working. Swapped out R1 for a 30K and went over all my solder joints. It is working like a champ now.

My only issue now is a software glitch. I have am RPM percentage graph that isn't working right. Need to look into that one of these days. ;)
 

Audioguru

Joined Dec 20, 2007
11,248
It is OK to ground the output of a comparator because it is open collector and without a pullup resistor it will never go high.
Why is the +5V wire of J1 labelled GND?
 
Top