An electronic a device for a firearm having a grip. The electronic device comprises a firearm element housable in a housing specifically formed in the grip of the firearm. The firearm element comprises a power supply battery and comprises a firearm interface port for access to said power supply battery. The electronic device comprises a base element engageable to the grip, housable in a firearm base that comprises a base interface port suitable to be operatively connected with the firearm interface port. In the reciprocal engagement between the firearm element and the base element through the firearm interface port and base interface port, the base element is suitable to electrically recharge the power supply battery.