http://woodgears.ca/gear_cutting/template.html
Note: Click on 'Youtube' icon in bottom right corner to see more ratchet simulation videos.
http://www.technologystudent.com/gears1/pulley7.htm