Patent attributes
A MEMS device includes a substrate, a moving part including a magnetic material and configured to tilt relative to the substrate, a first magnetic pole and a second magnetic pole configured to apply a magnetic field to the magnetic material, and a magnetic field detector configured to detect the magnetic field of the magnetic material. In the MEMS device, the first magnetic pole and the second magnetic pole are disposed on one side of the moving part, the one side being a side on which the magnetic material is located. The magnetic field detector is disposed between the first magnetic pole and the second magnetic pole. A distance between the first magnetic pole and the second magnetic pole is shorter than a length of the moving part in a direction from the first magnetic pole toward the second magnetic pole.