A surgical stapler. The surgical stapler includes a drive system, an electric motor, a battery and a control system. The drive system includes an actuation member. The electric motor is mechanically coupled to the drive system. The battery is electrically couplable to the electric motor. The control system includes an H-bridge circuit electrically couplable to the electric motor. The control system is configured to control the electric motor based on a sensed parameter associated with the electric motor, a position of the actuation member and a velocity of the actuation member.