Is it possible to make a comparator controller with hysteresis using an LM324 Opamp. If possible i would be very thank full if you guys could share a sample diagram on how to build a such setup.
Yes you can do it but it wont be extremely fast because the LM324 and similar parts are fairly slow to change their output. Typical slew rate is 0.5v/us so if your output has to change from 0 to 10v it will take at least 20us to do that, and another 20us back down from 10v to 0v. This is also true going from -5v to +5v, and if it has to go from -10v to +10v it will take 40us.