A medical device with a self-sustaining power source is disclosed herein. The medical device includes a pump and at least one mechanical activation mechanism for engaging the pump to cause a dose event. An energy generator coupled to the activation mechanism generates energy each time the activation mechanism is actuated. The generated energy is supplied to a dose counter of the infusion device.