To highly accurately perform motor needle stop despite being inexpensive.
This sewing machine includes: a main spindle 14 for transmitting a vertical movement driving force of a sewing needle; a sewing machine motor 11; a motor control device 10; deceleration phase detection means 13, 16 and 17 detecting that the main spindle is in the deceleration phase; immediately-before-stopping phase detection means 12, 16 and 17 detecting that the main spindle is at a phase immediately before stopping; and stop phase detection means 13 and 17 detecting that the main spindle is at the stop phase; wherein the motor control device has a deceleration control part 50 for decelerating the sewing machine motor by the detection of the deceleration phase, a temporary stop control part 51 temporarily stopping the sewing machine motor by the detection of the immediately-before-stopping phase, and a needle stop correction control part 52 re-starting the sewing machine motor, and stopping the rotation of the motor when the stopping phase is detected and further the stopping phase is not detected after the temporary stop.
荒船 良男