The invention discloses a cradle head control method based on a
mobile phone and a built-in gravity sensor. The cradle head control method comprises the following steps of: (1) establishing a three-dimensional coordinate
system for the built-in gravity sensor of the
mobile phone; (2) recording a current position of the
mobile phone and a remote cradle
head position, and establishing a corresponding relationship between the current position of the mobile phone and the remote cradle
head position; (3) setting a sampling interval, and regularly sampling a parameter value of the built-in gravity sensor; (4) calculating changes (including
horizontal and vertical angle offsets) of the current position of the mobile phone and a position of the mobile phone at a previous sampling time according to the sampling value; (5) inputting the
horizontal and vertical angle offsets into a cradle head control command generating module; (6) executing an integration calculation on each input time positionparameter of the mobile phone by the cradle head control command generating module, and generating a remote cradle head control command according to a remote cradle head control protocol; and (7) inputting the remote cradle head control command into a control command output
queue, and transmitting a control command to a remote cradle head
control unit through a network according to a command
transmission policy to realize the control. According to the cradle head control method disclosed by the invention, the mobile phone is simulated to be a remote cradle head, thus the mobile phone is controlled to realize the control of the remote cradle head.