Technically it's a pulse wave not a perfectly square wave as the pulse width will be modulated, however, it's just not square enough (see attachment below). What I've got is the top picture, what I would like is something more like the bottom one.

What circuits would you use to make a square wave squarer?
To aid your decision here are some simple specs; The voltage I'm operating at is 8 volts however I can go as low as 5, square wave peak to peak is (almost) equal to supply voltage. Frequency is in the audio range (20Hz to 20KHz)

I'd like a low parts count and simple circuit but lets see whatever inventions you can conceive.

I would use a 555 timer to make a PWM and then send that through a schmitt trigger. Only problem is that the common schmitt trigger is an inverter so just "re" invert the signal (because it will be the invert of the original signal) and you "should" have a near perfect square wave

If the OP is sending Audio in I don't think you need a PWM. You can un-invert with the same configuration on another 555 or use a 556.

Click to expand...

I do need a PWM if what I want to hear is pulse width modulation I've got a handful of 556's so I can use one of them, or recombobulate a bit of the other circuitry to make the audio PWM wave upsidedown, or rather the right way up for the schmitt trigger to turn back to the right way around... I often worry that I don't make sense.

It's at times like this I wish I had a dual trace oscilloscope, I have four single trace oscilloscopes but 3 are valve based and not very good or broken. It would just make looking at these waves so much easier as one could compare the inversion/more square with the original directly.

Anyways, thanks chaps, me and the schmitt trigger are going to get along very well

The 40106 is a 4000 series CMOS logic IC that has six Schmitt-trigger inverters.

The 4093 is one of the most useful of the whole series; a quad Schmitt-trigger 2-input NAND gate. By connecting NAND gates various ways, you can create the functionality of any other gate. This also can be done using NOR gates, but the 4093 and the 40106 are the only two 4000-series that I'm aware of that have Schmitt-trigger inputs.
See this Wikipedia entry:http://en.wikipedia.org/wiki/NAND_logic