Patent ID: 8409742

Claim:
An electronic device comprising: a main body defining a receiving space to receive a battery, the receiving space comprising a bottom comprising a shaft protruding therefrom; and a battery locking mechanism mounted in the receiving space and comprising: a sliding member comprising an elastic member fixed to the main body and a sliding bar slidably connected to the main body, wherein the sliding member further comprises a plurality of contacts protruding from the sliding bar and configured to make an electrical connection between electronic components of the electronic device and the battery; and a rotatable member defining a through hole and with a hook formed at a first end thereof, rotatably connected to the sliding member at an opposite second end of the rotatable member, wherein the through hole is in a position between the opposite first and second ends of the rotatable member, the shaft extends through the through hole, allowing the rotatable member to rotate about the shaft; when mounting the battery in the receiving portion, the hook is pushed by the battery to move, causing the rotatable member rotates about the shaft, the sliding bar is driven by the rotatable member to slide, compressing the elastic member, after one end of the battery engages the hook and an opposite end of the battery resists against the sliding bar, the battery is retained within the receiving space.