Patent ID: 8326206

Claim:
An image forming apparatus that carries out image formation by forming an electrostatic latent image on a photosensitive drum and transferring an image produced by developing the electrostatic latent image onto a recording medium conveyed to a transfer position of the photosensitive drum, the image forming apparatus comprising: a first detection device that is disposed at a first reference position upstream from the transfer position and detects the recording medium being conveyed, said first detecting device comprising a plurality of first detecting pixels aligned in a recording medium conveying direction; a second detection device that is disposed at a second reference position upstream from the first reference position and detects the recording medium being conveyed, said second detection device comprising a plurality of second detecting pixels aligned in the recording medium conveying direction; a first memory that stores the detecting results of the plurality of first detecting pixels; a second memory that stores the detecting results of the plurality of second detecting pixels; a calculation device that calculates an error in a conveying speed of the recording medium between the first reference position and the second reference position, in accordance with a first difference in position and a second difference in position; a supplying unit that supplies first transfer signal, second transfer signal, and third transfer signal, which are identical to each other, to said first detection device, said second detection device, and said calculation device, respectively; a correcting device that corrects image write timing for forming the electrostatic latent image on the photosensitive drum based on the error in the conveying speed calculated by said calculation device, wherein the first difference in position is a difference in position between a leading edge of the recording medium detected based on detecting results of the plurality of first detecting pixels and the first reference position, wherein the second difference in position is a difference between the leading edge of the recording medium detected based on detecting results of the plurality of second detecting pixels and the second reference position wherein said first detection device and said second detection device transfer the detecting results of the plurality of first detecting pixels and the detecting results of the plurality of second detecting pixels to said first memory and said second memory respectively, in accordance with the supply of the first transfer signal and the second transfer signal from said supplying unit, and wherein said calculation device reads out the detecting results respectively stored in said first memory and said second memory, and detects the leading edge based on the read-out detecting results and the read-out other detecting results, in accordance with the supply of the third transfer signal from said supplying unit.