Those square springs might not be exactly what you want because they do not keep a constant slope along the flat sides of the square bar. I have attached another example with another method. If you have any questions or can't open the file I can try to put together step-by-step instructions.
These examples should help.