| CPC H04M 1/0237 (2013.01) [G06F 1/1624 (2013.01); G06F 1/1652 (2013.01); H04M 1/0268 (2013.01); H05K 5/0217 (2013.01)] | 23 Claims |

|
1. An electronic device comprising:
a first housing;
a second housing slidable relative to the first housing;
a contact member disposed in the first housing;
a pressure sensor disposed in the second housing, the pressure sensor facing the contact member and at least a portion of the pressure sensor contacting the contact member, the pressure sensor comprising a pair of pressure sensors disposed opposite to each other with respect to the second housing, wherein the pair of pressure sensors sense pressures different from each other;
a printed circuit board (PCB) disposed in the second housing;
an actuator configured to drive the second housing; and
a processor disposed on the PCB and being electrically connected to the pressure sensor and the actuator, the processor being configured to:
recognize a position of the second housing with respect to the first housing,
in response to the pressure sensor sensing an intensity of pressure greater than an intensity of a predetermined pressure, control the actuator to move the second housing relative to the first housing, and
in response to sensing pressure on both sides of the first housing in which at least one of the pair of pressure sensors senses pressure exceeding the predetermined pressure, automatically switch a state of the second housing from an open state, in which the second housing protrudes from the first housing, to a closed state, in which the second housing is inserted into the first housing, or from the closed state to the open state.
|