Here is my homemade function generator that can produce a square, triangle, and sign wave. This is all done with a few bucks worth of parts. The heart of the function generator is a LM324N quad OpAmp. I got the schematic off of a site where they were also selling kits to build the signal generator.