A method for controlling a surgical instrument comprising a body assembly, an end effector, a force sensor operable to detect a force applied to the end effector, an orientation sensor, a storage device, and a control module, wherein the body assembly comprises an ultrasonic transducer and an interface in communication with the control module, wherein the ultrasonic transducer is capable of operating at a plurality of energy settings, wherein each energy setting in the plurality of energy settings comprises one or both of a frequency or an amplitude of vibrational waves generated by the ultrasonic transducer, wherein the control module is operable to set an energy setting for the ultrasonic transducer, wherein the orientation sensor and the force sensor are communicatively coupled to the control module, wherein the end effector is coupled to the ultrasonic transducer, wherein the storage device comprises a plurality of configuration data sets, wherein each configuration data set comprises a plurality of gesture profiles and a plurality of corresponding energy settings, wherein each gesture profile of the plurality of gesture profiles is associated with a corresponding energy setting of the plurality of energy settings, wherein the control module is configured to receive data from the orientation sensor and the force sensor, the method comprising the steps of:
- (a) receiving a selection, via the interface, of a configuration data set from the plurality of configuration data sets;
- (b) receiving an output of the orientation sensor and the force sensor by the control module;
- (c) receiving the plurality of gesture profiles and the plurality of corresponding energy settings associated with the selected configuration data set from the storage device by the control module;
- and
- (d) setting the ultrasonic transducer to a first corresponding energy setting associated with the first gesture profile in response to a correlation between the first gesture profile and a combined output of the orientation sensor and the force sensor, wherein the first corresponding energy setting provides a first frequency and a first amplitude of vibrational waves generated by the ultrasonic transducer.