A method and apparatus for controlling and calibrating an end effector is described. The method may include detecting a signal in response to movement of the first tube relative to the second tube, wherein the first tube drives movement of a clamp arm of the end effector. The method may further include, based on the signal, determining a clamp arm position of the end effector relative to the ultrasonic blade of the end effector. The method may also include adjusting the power output to the ultrasonic blade of the end effector based on the clamp arm position.エンドエフェクタの制御及び較正のための方法及び装置が記載される。本方法は、第2の管に対する第1の管の移動に応答して信号を検出することを含んでもよく、第1の管は、エンドエフェクタのクランプアームの移動を駆動する。本方法は、信号に基づいて、エンドエフェクタの超音波ブレードに対するエンドエフェクタのクランプアーム位置を判定することを更に含んでもよい。本方法は、クランプアーム位置に基づいてエンドエフェクタの超音波ブレードへの電力出力を調整することも含んでもよい。