An injection device comprising: a housing arranged to contain a liquid medicament or a medicament cartridge; an electrical coil arranged at the housing; a removable cap arranged to be removably engaged with an end of the housing; and a magnet arranged within the removable cap; wherein when the removable cap is disengaged from the housing, the magnet moves with respect to the electrical coil such that electrical voltage is induced in the electrical coil and a current is generated.La présente invention concerne un dispositif d'injection comprenant : un boîtier conçu pour contenir un médicament liquide ou une cartouche de médicament ; une bobine électrique disposée dans le boîtier ; un capuchon amovible conçu pour être mis en prise de manière amovible avec une extrémité du boîtier ; et un aimant disposé à l'intérieur du capuchon amovible ; quand le capuchon amovible est désolidarisé du boîtier, l'aimant se déplaçant par rapport à la bobine électrique de sorte qu'une tension électrique est induite dans la bobine électrique et qu'un courant est généré.