Author Topic: Window Comparator Has Strange Outputs  (Read 665 times)

0 Members and 1 Guest are viewing this topic.

Offline Scr1bbl3Topic starter

  • Contributor
  • Posts: 13
  • Country: us
Window Comparator Has Strange Outputs
« on: April 28, 2023, 10:39:07 pm »
Hi all,
I found the circuit below in the interweb and deiced to build it for giggles. I am using a dual BA4560 ic with the voltage divider resistors 10K each at 5VCC. The pull-up resistor is 5.1K. The trip points should be 1.66V and 3.33V
The outputs below 1.66 and 3.33 read 3V, not zero. Between 1.66 and 3.33, I do measure 5V. Any ideas why the circuit doesn't go to zero?
Thanks,
Scrib
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12012
  • Country: us
    • Personal site
Re: Window Comparator Has Strange Outputs
« Reply #1 on: April 28, 2023, 11:44:58 pm »
BA4560 is an opamp, not a comparator. And it actively drives the output (push/pull), while your circuit is designed for an open collector output.

You get outputs of the opamps fighting each other. One tries to drive VCC one tries to drive GND, you get the middle voltage.

While it is possible to use opamps as comparators in some cases, it is not going to work here.
« Last Edit: April 28, 2023, 11:47:34 pm by ataradov »
Alex
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1725
  • Country: au
  • Views and opinions are my own
    • AMD
Re: Window Comparator Has Strange Outputs
« Reply #2 on: April 29, 2023, 12:49:18 am »
Double posting is not permitted on these forums, please refrain from doing it again:

https://www.eevblog.com/forum/beginners/window-comparator-has-strange-outputs/msg4837664/

Locking thread.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf