Patent ID: 8849133

Claim:
An image forming apparatus comprising: a main casing; a cartridge configured to be attached to and detached from the main casing and to accommodate therein developing agent; a pressed portion positioned outside of the cartridge; a detection unit positioned in confrontation with the cartridge in a confronting direction and configured to detect a position of the cartridge; and a processing unit configured to determine that a cartridge attached to the main casing is a new cartridge based on a detection of the detection unit, the cartridge comprising: a detected portion configured to be detected by the detection unit, the detected portion configured to be moved to a first position and to a second position moved from the first position in the confronting direction; a pressure member configured to press against the pressed portion and to be moved to a pressure position where the detected portion is moved to the second position by a reaction force in response to a pressure force from the pressure member against the pressed portion and to a pressure release position where the reaction force applied to the pressed portion is released to permit the detected portion to be moved to the first position; and a moving member configured to be moved in a moving direction by a predetermined moving amount, the moving member being configured to move the pressure member to the pressure position and to the pressure release position, wherein the processing unit determines that the cartridge attached to the main casing is a new cartridge if the detection unit detects a movement of the detected portion, wherein the detected portion includes a cartridge electrode configured to receive electric power from the main casing, and wherein the detection unit includes a main electrode configured to be electrically connected to the cartridge electrode and moved in the confronting direction, and wherein the processing unit determines that a cartridge attached to the main casing is a new cartridge if the main electrode is moved in accordance with the movement of the detected portion between the first position and the second position.