Tree Root Plays has figured out a way to create realistic looking wooden gears! Check out his video.
This is created using gates, stone wall and pistons. Pretty simple. All your doing is just dropping armor stands alternating angles in which the arms create the cogs! Pretty genius!
This would be great for some windmills, water wheels, blacksmiths and tons of other uses!