| CPC H05K 7/1487 (2013.01) | 16 Claims |

|
1. A detection mechanism applied in an electronic device, the electronic device comprising a cover, the detection mechanism comprising:
a mounting rack defining a receiving room and an opening communicated with the receiving room;
a door assembly rotatably connected to the mounting rack, the door assembly configured to rotate relative to the mounting rack to cover or uncover the opening;
a first movable rack movably connected to the mounting rack and the door assembly, the first movable rack configured to move forward or return along a first direction or a counter direction of the first direction when the door assembly rotates;
a second movable rack movably connected to the first movable rack, the second movable rack configured to move forward or return along a second direction or a counter direction of the second direction when the first movable rack moves forward or return along the first direction or the counter direction of the first direction, wherein the second direction is perpendicular to the first direction; and
a detection assembly connected to the second movable rack, the detection assembly configured to detect whether the cover is away from the mounting rack, the detection assembly further configured to move with the second movable rack to detect whether the opening is not covered by the door assembly;
wherein the first movable rack comprises a first slide slot extended along the first direction, the mounting rack comprises a first slide piece, the first slide piece is inserted into the first slide slot, the first slide piece is slidable along the first slide slot and movable relative to the first movable rack;
the second movable rack comprises a second slide slot, at least a part of an extended direction of the second slide slot forms an angle with the first direction, the angle is less than 90 degrees, the first slide piece is inserted through the first slide slot and inserted into the second slide slot, the first slide piece is capable of slidable along the second slide slot and movable relative to the second movable rack.
|