Author Topic: Need a LM393 with a non-inverting output.  (Read 11831 times)

0 Members and 1 Guest are viewing this topic.

Offline Hootis TigglebitsTopic starter

  • Contributor
  • Posts: 37
  • Country: us
Need a LM393 with a non-inverting output.
« on: January 09, 2024, 11:20:07 pm »
I have an IR detection board that I'm running 5VDC to.  When nothing is sensed the output of the LM393 is high and when something is sensed the output is low.  I need the output to be the opposite of the way it currently is.  How can I find out if there's a replacement for the LM393 in an 8-SOIC package that uses the same input pins and has a non-inverting output?  I know I could just use a NOT gate at the output, but I'd rather do this correctly.

 

Online mawyatt

  • Super Contributor
  • ***
  • Posts: 3916
  • Country: us
Re: Need a LM393 with a non-inverting output.
« Reply #1 on: January 09, 2024, 11:36:37 pm »
Swap the LM393 Inputs.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 20767
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Need a LM393 with a non-inverting output.
« Reply #2 on: January 09, 2024, 11:39:28 pm »
Try swapping pins 2 and 3.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6262
  • Country: de
Re: Need a LM393 with a non-inverting output.
« Reply #3 on: January 10, 2024, 12:40:41 am »
Bad design, BTW.
Both inputs to the comparator can be forced outside their operating voltage range.
 

Offline pqass

  • Frequent Contributor
  • **
  • Posts: 920
  • Country: ca
Re: Need a LM393 with a non-inverting output.
« Reply #4 on: January 10, 2024, 02:04:57 am »
If you can't swap the input pins 2 and 3, then the next best thing is to invert the output with a transistor (rather than a NOT gate).

Just add an NPN; existing D output to NPN base, emitter to ground, collector is your new output.  Note that his arrangement only allows you to "sink" current from the new output.  If you need to "source" current, then use a PNP instead; existing D output to PNP base (through a series 1K resistor), emitter to Vcc, collector is your new output.

You could implement either via lifiting the pin(s) and "air wiring" a transistor[+resistor].  I doubt you'll find a '393 equivalent with swapped inputs or inverted output.

See below and here for the simulator.

Note: quirk of the sink driver has the on-board LED always on.
« Last Edit: January 10, 2024, 02:34:01 am by pqass »
 

Offline Hootis TigglebitsTopic starter

  • Contributor
  • Posts: 37
  • Country: us
Re: Need a LM393 with a non-inverting output.
« Reply #5 on: January 12, 2024, 07:02:28 pm »
Thank you!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf