1. Technical Field
The present disclosure relates to electronic devices and methods and, particularly, to an electronic device with motion sensor function and a method for executing predetermined functions based on the movement of the electronic device.
2. Description of the Related Art
For small-sized electronic devices, it is difficult for users to press keys and/or touch a touch screen to input information correctly to execute functions by the devices.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic device with motion sensor functions and a method for executing predetermined functions based on the movement of the electronic device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout multiple views.
Referring to
The storage unit 20 stores multimedia files.
The input unit 10 is configured to generate signals for controlling the operation of the electronic device 100 in response to user input.
The volume adjusting unit 30 is configured to adjust the volume of an opened audio file in response to user input.
The display unit 40 is configured to display information.
Referring to
The processing unit 60 determines which of the three axes the electronic device 100 is rotated around and whether the rotation angle of the electronic device 100 reaches a predetermined angle based on the sensed movement, and executes a predetermined function if the angle reaches the predetermined angle.
In this embodiment, the processing unit 60 executes a first function if the rotation angle of the electronic device 100 is rotated around the first axis 101 to reach a first predetermined angle. For instance, the processing unit 60 rotates a currently displayed image a predetermined degree, such as 90 degrees, toward a predetermined direction, such as opposite to the rotation direction of the electronic device 100.
The processing unit 60 executes a second function if the rotation angle of the electronic device 100 is rotated around the second axis 102 clockwise or counterclockwise to reach a second predetermined angle. then executes a third function if the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach a third predetermined angle. In this embodiment, the third predetermined angle is larger than the second predetermined angle. The processing unit 60 flips a single page of a currently displayed file forward or backward if the rotation angle of the electronic device 100 is rotated around the second axis 102 to reach the second predetermined angle. The processing unit 60 flips multiple pages of the currently displayed file forward or backward if the rotation angle of the electronic device 100 is rotated around the second axis 102 to reach the third predetermined angle.
The processing unit 60 executes a fourth function if the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach a fourth predetermined angle. Then executes a fifth function if the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach a fifth predetermined angle. In this embodiment, the fifth predetermined angle is greater than the fourth predetermined angle. The processing unit 60 controls the volume adjusting unit 30 to decrease or increase a unit of the volume of a currently opened multimedia file if the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach the fourth predetermined angle. The processing unit 60 controls the volume adjusting unit 30 to continuously decrease or increase the volume of the currently opened multimedia file if the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach the fifth predetermined angle.
Referring to
In step S201, the motion sensor 50 senses the movement of the electronic device 100 according to a predetermined coordinate system. In this embodiment, the predetermined coordinate system is a 3D coordinate system OXYZ, and the longitudinal direction of the electronic device 100 is the X axis, the wide direction is the Y axis, and the height direction is the Z axis. The electronic device 100 can be rotated around three axes. A first axis 101 is perpendicular to XOY plane, a second axis 102 is parallel to the Y axis, and a third axis 103 is parallel to the X axis.
In step S202, the processing unit 60 determines which one of three axes of the electronic device 100 is rotated around according to the sensed movement.
In step S203, the processing unit 60 determines whether the rotation angle of the electronic device 100 is rotated around the determined axis to reach a predetermined angle based on the sensed movement.
In step S204, the processing unit 60 executes a predetermined function if the angle reaches the predetermined angle.
If the processing unit 60 determines the rotation angle of the electronic device 100 is rotated around the first axis 101 to reach a first predetermined angle, the processing unit 60 rotates a currently displayed image a predetermined degree, such as 90 degrees, toward a predetermined direction, such as opposite to the rotation direction of the electronic device 100. If the rotation angle of the electronic device 100 is rotated around the second axis 102 to reach a second predetermined angle, the processing unit 60 flips a single page of a currently displayed file forward or backward. If the rotation angle of the electronic device 100 is rotated around the second axis 102 to reach, a third predetermined angle, the processing unit 60 flips multiple pages of the currently displayed file forward or backward. If the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach a fourth predetermined angle, the processing unit 60 controls the volume adjusting unit 30 to decrease or increase a unit of the volume of a currently opened multimedia file. If the rotation angle of the electronic device 100 is rotated around the third axis 103 clockwise or counterclockwise to reach a fifth predetermined angle, the processing unit 60 controls the volume adjusting unit 30 to continuously decrease or increase the volume of the currently opened multimedia file.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 201010121366.6 | Mar 2010 | CN | national |