An autonomous intracorporeal capsule comprises a body containing electronic circuits and an energy harvesting module. The energy harvesting module comprises a moveable surface on the body of the capsule, subjected to pressure variations and to produce a mechanical stress under the effect of the pressure variations, and a transducer comprising a deformable piezoelectric component configured as a beam adapted to be forced to bend. The piezoelectric component has a recessed end integral with the capsule and a free end. A mechanical connection couples the free end of the piezoelectric component to the actuator. The mechanical connection may provide a degree of freedom in rotation between a main direction of the beam and the direction of application of the mechanical stress.