Author Topic: Photomicrosensor slower than datasheet specs  (Read 1895 times)

0 Members and 1 Guest are viewing this topic.

Offline GreyAreaTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Photomicrosensor slower than datasheet specs
« on: January 26, 2018, 08:45:12 pm »
I'm trying to set up a circuit using the EE-SX1042 photomicrosensor/optical encoder (https://www.mouser.com/ds/2/307/sx1025-1190149.pdf).

Working through the datasheet I came up with the circuit attached.  The problem I have is that the fall time seems particularly slow (~500us) when compared to the datasheet (4us).

After noticing that the RL value of the Condition/Combination table at the bottom of page 2 was 100R, I replaced R2 with that value.  Now the high (0) signal is only 235mV and isn't usable logic levels.

So, what's wrong with my circuit?
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14192
  • Country: de
Re: Photomicrosensor slower than datasheet specs
« Reply #1 on: January 26, 2018, 08:50:41 pm »
The load resistor at the detector side is likely much larger than in the DS. They usually specify the speed the a low resistance (e.g. 50 Ohms). The main part would be to avoid the transistor to go into saturation (e.g. voltage lower than about 0.2 V).
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Photomicrosensor slower than datasheet specs
« Reply #2 on: January 26, 2018, 09:04:20 pm »
This might help -


https://www.vishay.com/docs/83590/fastswit.pdf


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline GreyAreaTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Photomicrosensor slower than datasheet specs
« Reply #3 on: January 27, 2018, 12:59:17 pm »
What a fantastic document!  Thanks all

(puts the coffee machine on)
 

Offline GreyAreaTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Photomicrosensor slower than datasheet specs
« Reply #4 on: January 27, 2018, 05:04:46 pm »
OK, so after reading the application note (I must admit the analysis theory went largely over my head) my options seem to be:

a) Reducing the emitters IF (dimmer IR LED).
b) Tuning RL to reduce the saturation capacitance at the base of the phototransistor.

I've now tried different values of RL, from 100K to 100R and it seems to make no difference to the turn off time at all, I've also reduled IL down to 10mA (R1 = 380R in my circuit).

According to the datasheet, 100R RL should be down at ~3uS but by my reckoning, I'm like 3 orders of magnitude out with Vcc at 5V.  If I was a 200-500us out, that would be fine for my application, but thousands of us just won't do.


« Last Edit: January 27, 2018, 05:26:29 pm by GreyArea »
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7733
  • Country: ca
Re: Photomicrosensor slower than datasheet specs
« Reply #5 on: January 27, 2018, 05:35:37 pm »
I'm curios, as a test, remove any obstruction from the encoder, then pulse the IR led with a square wave from a function generator & examine the speed of the waveform.
 

Offline GreyAreaTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Photomicrosensor slower than datasheet specs
« Reply #6 on: January 28, 2018, 11:22:21 pm »
Ah, that never occurred to me - I haven't even used my signal generator in anger -  until now.  It seems the issue was in fact mechanical, rather than electrical.

Using a 10K R1 I can now trigger with about a 250uS fall time which is perfectly fine for my needs.  Along the way I've learned about phototransistor base saturation and that if the detector doesn't poke into the gearbox as far as it needed to be, it won't work :)
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7733
  • Country: ca
Re: Photomicrosensor slower than datasheet specs
« Reply #7 on: January 29, 2018, 02:34:19 am »
Glad to be of inspirational help.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf