Patent ID: 8904947

Claim:
A sewing machine, comprising: a sewing portion comprising i) a needle bar, ii) a transport portion and iii) a swinging portion, the needle bar being configured to have a sewing needle on a lower end, the transport portion being configured to move a work cloth, and the swinging portion being configured to swing the needle bar in a swinging direction; a detector configured to detect ultrasonic waves; a processor; and a memory storing computer-readable instructions that instruct the processor to perform: specifying a position of a transmission source of the ultrasonic waves, based on the ultrasonic waves that are detected by the detector; specifying sewing information based on the specified position of the transmission source, the sewing information being information that pertains to sewing, the specifying the sewing information comprising specifying a swing width based on the position of the transmission source, the swing width being included in the sewing information and being a distance that the swinging portion swings the needle bar in the swinging direction; and controlling the sewing portion based on the specified sewing information, the controlling the sewing portion comprising causing the swinging portion to swing the needle bar by the specified swing width.