I want to convert rotary motion (the orange propeller) onto a square path (the dark gray path). Is this a valid way to go about it? Would it be possible to use a square peg instead of a round one (the red circle) in order to keep the peg level as it travels? If not how could I keep it level? I'm a noob.
Update 2015/11/16 - Posted another option as an answer below







