Use a NAND Gate to get a square wave oscillator. Typically, the 4093 is used due to it being a Schmitt Trigger and there being 4 of them in the IC package. The potentiometer allows for user-adjustable frequency control. Lots of uses for this circuit building block.
4093 NAND Gate Oscillator
