A surgical instrument configured to detect its orientation and adjust its operation based on the detected orientation is disclosed.