I agree with AudioGuru on the very slow rise/fall times of the LM324 op amp. It's fine for the triangle wave portion of the circuit (at up to perhaps 5kHz), but it simply doesn't have the bandwidth to approach a true square wave output.
A fast comparator would be a good choice for replacing U2A.
As I said early on in the thread, op amps should not be used as comparators; they were not designed for such duty.
If you want a much more simple (and much better) design using a 555 timer IC, we could work something up.
An LM324 "runs out of gas" at about 7kHz. 555 timers can run at 500kHz+, or over 70x faster than an LM324. 555 timers have built-in comparators. They have up to 200mA source/sink output capability (when Vcc=16v), or about 150mA with Vcc at 12v. The best the LM324 can do is around 30mA.
A fast comparator would be a good choice for replacing U2A.
As I said early on in the thread, op amps should not be used as comparators; they were not designed for such duty.
If you want a much more simple (and much better) design using a 555 timer IC, we could work something up.
An LM324 "runs out of gas" at about 7kHz. 555 timers can run at 500kHz+, or over 70x faster than an LM324. 555 timers have built-in comparators. They have up to 200mA source/sink output capability (when Vcc=16v), or about 150mA with Vcc at 12v. The best the LM324 can do is around 30mA.