Watch the F1 component of the ATP Synthase molecule make ATP. The rotational force produce by the F0 component (not seen here) allows the rotation of the gamma component to move similar to a cam-shaft on an auto. This rotation allows the F1 component to open and close. The action of the opening and closing allows the ADP and Pi to enter, be brought into proximity and joined to make ATP. Watch the sequence.