This paper studies the development of piezoelectric energy harvesting for self-powered leadless intracardiac pacemakers. The energy harvester fit inside the battery compartment, assuming that the energy harvester would replace the battery with a smaller rechargeable battery capacity. The power output analysis was derived from the three-dimensional finite element analysis and in vivo heart measurements. A Doppler laser at the anterior basal in the right ventricle directly measured the heart's kinetic motion. Piezoceramics in the cantilevered configuration were studied. The heart motion was periodic but not harmonic and shock-based. This study found that energy can be harvested by applying periodic bio-movements (cardiac motion). The results also showed that the energy harvester can generate 1.1 V voltage. The effect of various geometrical parameters on power generation was studied. This approach offers potential for self-powered implantable medical devices, with the harvested energy used to power devices such as pacemakers.