Patent attributes
A portable electronic device includes a camera module and a main body. The camera module includes a housing, a lens received in the housing, an image sensor received in the housing for capturing an image of an object, a first ferromagnetic or magnetic element fixed to the housing, a plurality of metallic connecting pins electrically connected to the image sensor and exposed at an opposite side of the image sensor to the lens. The main body includes a printed circuit board, and a second ferromagnetic or magnetic element. The camera module is detachably coupled to the main body in a manner that the first ferromagnetic or magnetic element is magnetically attached to the second ferromagnetic or magnetic element, and the metallic connecting pins are electrically coupled to the printed circuit board.