A switch power generating mechanism comprising: a box for housing the components forming the switch power generating mechanism, a second movable component that rotates by a predetermined amount by transmission of a force from outside; the second movable component being a sector gear with teeth formed on at least a part of a periphery of a fan-shaped transmission wheel and being pivotally and rotatably supported around a central axis; a first movable component that rotates by a predetermined amount in conjunction with the second movable component by the rotation of the second movable component; the first movable component being a gear with teeth formed on at least a part of a periphery of a transmission wheel and being pivotally and rotatably supported around a central axis; a first deformable component that deforms by a predetermined amount by the rotation of the first movable component and is released from deformation when the first movable component rotates by a predetermined amount; the first deformable component being a coil-shaped spring with one end connected to the central axis of the second movable component and the other end connected to a part excluding a center of the first movable component; a second deformable component that is connected to the second movable component, deforms by a predetermined amount when the second movable component rotates by the predetermined amount by transmission of a force from outside, and is released from deformation by canceling the transmission of the force, the second deformable component also being a coil-shaped spring and being housed in the box with one end of the second deformable component connected to a part excluding a center of the second movable component and the other end connected to the box; a rotation transmission mechanism that transmits rotation of the first movable component to a generator that generates electricity by the transmitted rotation of the first movable component; the rotation transmission mechanism comprising a first bevel gear and a second bevel gear; the first bevel gear being pivotally supported on the central axis of the first movable component and configured to rotate with the first movable component, the second bevel gear being fixed to a shaft of the generator. a box for housing the components forming the switch power generating mechanism, a second movable component that rotates by a predetermined amount by transmission of a force from outside; the second movable component being a sector gear with teeth formed on at least a part of a periphery of a fan-shaped transmission wheel and being pivotally and rotatably supported around a central axis; a first movable component that rotates by a predetermined amount in conjunction with the second movable component by the rotation of the second movable component; the first movable component being a gear with teeth formed on at least a part of a periphery of a transmission wheel and being pivotally and rotatably supported around a central axis; a first deformable component that deforms by a predetermined amount by the rotation of the first movable component and is released from deformation when the first movable component rotates by a predetermined amount; the first deformable component being a coil-shaped spring with one end connected to the central axis of the second movable component and the other end connected to a part excluding a center of the first movable component; a second deformable component that is connected to the second movable component, deforms by a predetermined amount when the second movable component rotates by the predetermined amount by transmission of a force from outside, and is released from deformation by canceling the transmission of the force, the second deformable component also being a coil-shaped spring and being housed in the box with one end of the second deformable component connected to a part excluding a center of the second movable component and the other end connected to the box; a rotation transmission mechanism that transmits rotation of the first movable component to a generator that generates electricity by the transmitted rotation of the first movable component; the rotation transmission mechanism comprising a first bevel gear and a second bevel gear; the first bevel gear being pivotally supported on the central axis of the first movable component and configured to rotate with the first movable component, the second bevel gear being fixed to a shaft of the generator.