How do self-winding watches work by winding themselves?

Self-winding watches wind themselves by using a little pendulum that swings when you move your arm.

A few hours of natural arm movement will wind a self-winding watch enough that it can go for thirty-six hours without further winding.