Hey guys back at it again, sorry.

I am using a standard MCP6548 Comparator to finish the first stage of my project.


simulate this circuit – Schematic created using CircuitLab

OP's schematic.


simulate this circuit

A little tidy-up to separate the rectifier and comparator functions, run R4 downwards to GND and clean up the power supply. Section labels don't hurt either. [Transistor]

The probem is the comparator isn't working when - > +, it aint staying to GND. When the input signal CH1 is Higher than CH2 it should stay to GND. Yes the output of the OPA350 is solid and working as it should.

  • 2
    \$\begingroup\$ The first two words in the datasheet say "open drain", are you familiar with the term? \$\endgroup\$ – Mike Jul 5 '18 at 20:49
  • \$\begingroup\$ I am not sorry:/, honestly first time using a comparator so I am pretty sure its operator error \$\endgroup\$ – Leoc Jul 5 '18 at 20:50
  • \$\begingroup\$ When the input signal is positive with respect to ground, where does the current go (if any is present?) How does any current sink? \$\endgroup\$ – jonk Jul 5 '18 at 20:52
  • \$\begingroup\$ oyy, kinda embarrassing for me but I have no idea. Really rusty when it comes to these type of things. I would assume @jonk It goes back to the VSS? through ground \$\endgroup\$ – Leoc Jul 5 '18 at 20:57
  • 1
    \$\begingroup\$ AHHH, I see I remember now it requires a pull up resistor from output to VCC to output high. \$\endgroup\$ – Leoc Jul 5 '18 at 21:00

I’m glad to see you got your first circuit working.

Just a little note.

First rail to rail Op Amp is a negative input wave “inverting precision peak detector” that produces a positive output at x1 gain.

Since the comparator only detects inputs greater than the reference voltage so the negative peak detector is somewhat unnecessary if you expect positive input peaks to be symmetrical.

Thus you can go directly into the comparator.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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