Patent ID: 8790026

Claim:
An image recording apparatus comprising: a body; a tray capable of holding a first recording medium having a first size and a second recording medium having a second size; a moving member movable to a first position, a second position, a third position and a reference position, wherein the moving member positions at the first position when the first recording medium is held on the tray, positions at the second position when the second recording medium is held on the tray, and positions at the third position when neither the first recording medium nor the second recording medium is held on the tray; an actuator configured to contact a top surface of the first recording medium to move the moving member to the first position when the first recording medium is held on the tray, contact a top surface of the second recording medium to move the moving member to the second position when the second recording medium is held on the tray, and move the moving member to the third position when neither the first recording medium nor the second recording medium is held on the tray; a sensor configured to output an ON signal or an OFF signal based on positions of the moving member, the positions including the first position, the second position, the third position and the reference position; a reference position moving mechanism configured to, when the first recording medium is held on the tray, move the actuator away from the first recording medium to move the moving member to the reference position, and when the second recording medium is held on the tray, move the actuator away from the second recording medium to move the moving member to the reference position; and a control unit that determines a detection position based on a detection of a sequence of change of the ON signal and the OFF signal of the sensor when the moving member is moved between the detection position and the reference position by the reference position moving mechanism, wherein the control unit determines that a recording medium held on the tray is the first recording medium when the detection position is detected to be the first position and that a recording medium held on the tray is the second recording medium when the detection position is detected to be the second position.