So i am trying to use an op amp as a comparator. I tested it with a simple 5V circuit. I have an LM324N op amp IC with a potetiometer as a voltage divider on the non-inverting input side, and 2 1K resistors for a voltage divider set at 2.5V on the inverting input.
When I turn the pot below the 2.5V of the resistors, the output of the comparator is 0V exactly as it should be, but when i turn the pot above 2.5V, setting the comparator in the HIGH state, the output voltage doesn't equal the supply voltage but instead drops to 3.65V. I measured the supply to be exactly 4.96V.
Is there supposed to be a small voltage drop like this in a comparator or am I missing something?
any help would be awesome!