A method of controlling a mobile component of a prosthesis or orthosis (1), the method comprising: moving the component by means of a motor (7); characterized in that the method comprises the additional steps of: by means of an electrical apparatus: determining at what moment the movement of the component is stopped when this component is supported against a surface; and provide a plurality of electrical impulses to drive the motor (7) depending on the determination and the moment at which the movement of the component is braked to thus drive the motor (7) in order to make the component rest against the surface with greater force.Un método de controlar un componente móvil de una prótesis u ortosis (1), comprendiendo el método: mover el componente por medio de un motor (7); caracterizado por que el método comprende los pasos adicionales de: por medio de un aparato eléctrico: determinar en qué momento se frena el movimiento del componente cuando este componente se apoya contra una superficie; y proporcionar una pluralidad de impulsos eléctricos de accionamiento al motor (7) en dependencia de la determinación y del momento en el que se frena el movimiento del componente para accionar así el motor (7) a fin de hacer que el componente se apoye contra la superficie con mayor fuerza.