Patent attributes
Disclosed herein are techniques for adjusting the interpupillary distance (IPD) of an optical device. A system for IPD adjustment includes a first nonmoving component, a sliding assembly comprising a button, and a pair of magnets, wherein a first magnet of the pair of magnets is coupled to the sliding assembly. The pair of magnets is configured to exert a magnetic force on the sliding assembly in a first direction to press the sliding assembly against the first nonmoving component to lock the sliding assembly to the first nonmoving component. The sliding assembly is configured to, when the button of the sliding assembly is pushed by a force in a second direction opposite the first direction of the magnetic force, disengage with the first nonmoving component and become slidable with respect to the first nonmoving component.