Background
In the prior art, a terminal with computer processing capability in a single machine form, namely a complete machine, is increasingly widely used. Compared with a traditional computer, the single-machine type complete machine has the advantages that the size is greatly reduced, a plurality of components such as a processor, a memory, a display screen and the like are integrated in the complete machine with small size, the requirement on heat dissipation is high during operation, a fan is generally arranged below the complete machine for heat dissipation, but the fan can continuously be in a full-load state when the fan is operated at high speed all the time, and the service life is short.
Disclosure of Invention
The invention provides a rotatable whole machine, a fan driving method, a fan driving device and a storage medium, which are used for setting different fan rotating speeds corresponding to different heat dissipation requirements and improving the service life of a fan.
In a first aspect, an embodiment of the present invention provides a rotatable overall machine, including a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host comprises a gravity sensor, a controller and a fan arranged below the host;
the gravity sensor is used for detecting an included angle between the host and a horizontal plane;
the input end of the controller is connected with the output end of the gravity sensor, and the output end of the controller is connected with the fan; the controller is used for outputting a corresponding control signal to drive the fan to rotate at a rotating speed which is in a negative correlation relation with the included angle according to the included angle between the host and the horizontal plane.
In a second aspect, an embodiment of the present invention further provides a method for driving a fan, including:
acquiring an included angle between a host and a horizontal plane, which is detected by a gravity sensor in the host of a rotatable complete machine; the rotatable complete machine comprises a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host comprises a gravity sensor and a fan arranged below the host;
and outputting a corresponding control signal to drive the fan to rotate at a rotating speed which is in a negative correlation with the included angle according to the included angle between the host and the horizontal plane.
In a third aspect, an embodiment of the present invention further provides a driving apparatus for a fan, including:
the acquisition module is used for acquiring an included angle between a host and a horizontal plane, which is detected by a gravity sensor in the host of the rotatable whole machine; the rotatable complete machine comprises a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host comprises a gravity sensor and a fan arranged below the host;
and the output module is used for outputting a corresponding control signal to drive the fan to rotate at a rotating speed which is in a negative correlation relation with the included angle according to the included angle between the host and the horizontal plane.
In a fourth aspect, an embodiment of the present invention further provides a rotatable whole machine, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for driving the fan according to any embodiment of the present invention.
In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the driving method of the fan provided in any embodiment of the present invention.
According to the embodiment of the invention, the rotating mechanism is arranged on the base of the whole machine, so that the main machine can rotate, a user can conveniently watch a display interface of the whole machine from different included angles, the rotating included angle can be detected by arranging the gravity sensor, the rotating speed of the fan is adjusted according to the rotating included angle, the rotating speed of the fan and the included angle between the main machine and the horizontal plane are in a negative correlation relationship, the rotating speed of the fan is higher when the main machine rotates to the horizontal plane, the heat dissipation channel of the fan below the main machine is blocked, the rotating speed of the fan can be reduced when the main machine is vertical, the problem that the fan in the prior art is low in service life when the.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic structural diagram of a rotatable complete machine according to an embodiment of the present invention. The rotatable complete machine comprises a base 200 and a main machine 100; the base 200 includes a rotation mechanism (not shown); the host 100 is connected with the base 200 through the rotating mechanism; the main body 100 includes a gravity sensor 110, a controller 120, and a fan 130 disposed below the main body. The host 100 in the rotatable whole machine can be an intelligent interactive tablet and can also be a host in other forms. The intelligent interactive flat panel integrates the mainboard, the display and the touch device into a whole, and is installed and connected with the base 200 through the rotating mechanism, so that a user can watch the display interface from different angles.
The gravity sensor 110 is used for detecting an angle between the host 100 and a horizontal plane. As shown in fig. 2, fig. 2 is a schematic diagram illustrating an included angle between the main body 100 and a horizontal plane in the rotatable whole machine according to an embodiment of the present invention. Wherein, the angle α is the angle between the rotatable whole machine 100 and the horizontal plane.
The input end of the controller 120 is connected with the output end of the gravity sensor 110, and the output end of the controller 120 is connected with the fan 130; the controller 120 is configured to output a corresponding control signal to drive the fan 130 to rotate at a rotation speed that is in a negative correlation with the included angle α according to the included angle α between the host and the horizontal plane, that is, the rotation speed of the fan increases as the included angle α decreases.
In specific implementation, the corresponding relationship between the included angle α and the rotation speed may be determined by a pre-stored corresponding list, or may be determined by a pre-set algorithm rule. The controller 120 may adjust the rotation speed of the fan 130 by adjusting the voltage or current amplitude of the control signal, or may adjust the rotation speed of the fan 130 by adjusting the duty ratio of the PWM signal with the PWM signal as the control signal.
The working principle of the rotatable complete machine is as follows: the base 200 of the rotatable whole machine is provided with a rotating mechanism, so that the main machine 100 can rotate relative to the base 200, when the base 200 is placed on a desktop and the main machine 100 rotates around the base 200, the gravity sensor 110 can detect an included angle α between the main machine and the horizontal plane, and the controller 120 outputs a corresponding control signal to drive the fan 130 to rotate at a corresponding rotating speed according to the included angle α. When the included angle α decreases, the rotation speed increases, so that when the main unit 100 rotates toward the desktop and the heat dissipation channel of the fan 130 below the main unit 100 is blocked, the rotation speed of the fan 130 increases to ensure good heat dissipation; when the host 100 is in the vertical direction, the heat dissipation channel is gradually increased, and the rotation speed of the fan 130 is reduced, so that the fan 130 does not always work under full load, and the service life of the fan 130 is improved.
On the basis of the above technical solutions, the present embodiment provides a preferable specific solution for adjusting the rotation speed of the fan. In the preferred scheme, the control signal is a PWM signal, and the rotating speed is adjusted by adjusting the duty ratio of the PWM signal. The fan speed is regulated by using voltage, when the power supply voltage is too small, the fan cannot be started to operate, the rotation speed of the fan cannot be regulated from zero to the set maximum value, the rotation speed is regulated by using a PWM signal, the voltage amplitude is always enough to start the fan, and the rotation speed of the fan can be regulated from zero to the set maximum value by regulating the duty ratio, so that the uniform regulation of the rotation speed of the fan corresponding to the whole rotatable main machine between a horizontal plane and a vertical plane can be realized, the balance between the improvement of the heat dissipation effect and the improvement of the service life of the fan is better.
Further, the duty ratio of the PWM signal is
Wherein, alpha is an included angle between the host and the horizontal plane, and P is a preset maximum value of the duty ratio of the PWM signal.
As shown in fig. 2, 90- α is an included angle β between the main machine and the vertical plane, in the above further scheme, the duty ratio of the PWM signal is in direct proportion to the included angle β, so that the duty ratio of the PWM signal increases in the same proportion as β increases, and the rotation speed has a uniform amplitude as the angle is adjusted. In other embodiments, the duty ratio formula of the PWM signal may also be set or adjusted according to the position height of the fan in the host, so that when the host rotates to the vicinity of the region with the maximum blocking effect on the heat dissipation channel of the fan, the rotation speed of the fan may be rapidly increased.
The maximum value of the duty ratio of the PWM signal may be adjusted according to the performance of the driving circuit, and is preferably 50%. The fan speed corresponding to the maximum value of the duty ratio of the PWM signal is preferably 250 r/s.
To sum up, the technical scheme of this embodiment, make the host computer can rotate through setting up rotary mechanism on the complete machine base, can not only convenience of customers watches complete machine display interface from different contained angles, can also detect rotatory contained angle through setting up gravity sensor, adjust the fan rotational speed according to rotatory contained angle, make the fan rotational speed and the contained angle of host computer and horizontal plane be the negative correlation, then the host computer leads to the heat dissipation passageway of fan below the host computer to the horizontal plane rotation when being blocked fan rotational speed is higher, the fan rotational speed can reduce when the host computer is perpendicular, solve prior art fan high-speed operation low in service life problem always, realize corresponding different heat dissipation requirements and set up different fan rotational speeds, improve the effect of fan life-span.
Example two
Fig. 3 is a flowchart of a fan driving method according to a second embodiment of the present invention, where the present embodiment is applicable to a case of adjusting a rotation speed of a fan of a rotatable whole machine, and the method may be executed by a controller that connects a gravity sensor and a cooling fan that are built in the rotatable whole machine, and specifically includes the following steps:
and 310, acquiring an included angle between a host and a horizontal plane, which is detected by a gravity sensor in the host capable of rotating the whole machine.
The rotatable complete machine comprises a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host computer includes gravity sensor and sets up in the fan of host computer below.
And step 320, outputting a corresponding control signal to drive the fan to rotate at a rotating speed which is in a negative correlation relation with the included angle according to the included angle between the host and the horizontal plane.
The working principle of the method is as follows: the base in the rotatable complete machine is provided with a rotating mechanism, the host can rotate relatively, when the base is placed on a desktop and the host rotates around the base, the controller acquires an included angle alpha between the host and the horizontal plane, which is detected by the gravity sensor, and outputs a corresponding control signal to drive the fan to rotate at a corresponding rotating speed according to the included angle alpha. When the included angle alpha is reduced, the rotating speed is increased, so that when the host rotates towards the desktop direction and the heat dissipation channel of the fan below the host is blocked, the rotating speed of the fan is increased, and good heat dissipation is ensured; when the host computer is towards vertical direction, heat dissipation channel progressively increases, and the fan rotational speed reduces for the fan need not work under full load all the time, improves the fan life-span.
On the basis of the above technical solution, step 320, outputting a corresponding control signal to drive the fan to rotate at a rotation speed having a negative correlation with the included angle according to the included angle between the host and the horizontal plane, specifically including:
according to the included angle alpha between the host and the horizontal plane, the output duty ratio is
The fan is driven to rotate at a rotating speed corresponding to the PWM signal by the PWM signal, wherein P is the maximum value of the preset PWM signal.
The method for driving the fan provided by the embodiment may be executed by a controller connecting the gravity sensor and the cooling fan, which are built in the rotatable complete machine, and specifically, the rotatable complete machine may be the rotatable complete machine provided by the first embodiment of the present invention, so that the method for driving the fan provided by the embodiment may be adjusted accordingly according to the technical features of the rotatable complete machine provided by the first embodiment, and the same beneficial effects are achieved. It should be noted that the driving method of the fan provided in this embodiment may be executed by a controller in the host that connects the gravity sensor and the fan, or may be executed by an external controller.
To sum up, the technical scheme of this embodiment, make the host computer can rotate through setting up rotary mechanism on the complete machine base, can not only convenience of customers watches complete machine display interface from different contained angles, can also detect rotatory contained angle through setting up gravity sensor, adjust the fan rotational speed according to rotatory contained angle, make the fan rotational speed and the contained angle of host computer and horizontal plane be the negative correlation, then the host computer leads to the heat dissipation passageway of fan below the host computer to the horizontal plane rotation when being blocked fan rotational speed is higher, the fan rotational speed can reduce when the host computer is perpendicular, solve prior art fan high-speed operation low in service life problem always, realize corresponding different heat dissipation requirements and set up different fan rotational speeds, improve the effect of fan life-span.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a fan driving device according to a third embodiment of the present invention. The driving device of the fan comprises:
an obtaining module 410, configured to obtain an included angle between a host and a horizontal plane, where the included angle is detected by a gravity sensor in the host of a rotatable whole machine; the rotatable complete machine comprises a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host comprises a gravity sensor and a fan arranged below the host;
and the output module 420 is configured to output a corresponding control signal according to an included angle between the host and the horizontal plane to drive the fan to rotate at a rotation speed that is in a negative correlation with the included angle.
Further, the output module 420 includes:
a calculation and adjustment unit for outputting a duty ratio of
The fan is driven to rotate at a rotating speed corresponding to the PWM signal by the PWM signal, wherein P is the maximum value of the preset PWM signal.
Further, the rotatable complete machine is provided by any embodiment of the invention.
Preferably, the host is an intelligent interactive tablet.
The fan driving device provided by the embodiment of the invention can execute the fan driving method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic structural diagram of a rotatable whole machine according to a fourth embodiment of the present invention, as shown in fig. 5, the rotatable whole machine includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the rotatable whole machine can be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, memory 520, input device 530, and output device 540 in the rotatable machine may be connected by a bus or other means, such as by a bus connection in fig. 5.
The memory 520, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the driving method of the fan in the embodiment of the present invention (for example, the obtaining module 410 and the output module 420 in the driving apparatus of the fan). The processor 510 executes various functional applications and data processing of the rotatable whole machine by executing software programs, instructions and modules stored in the memory 520, that is, the driving method of the fan is realized.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to the rotatable whole machine over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the rotatable machine. The output device 540 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for driving a fan, and the method includes:
acquiring an included angle between a host and a horizontal plane, which is detected by a gravity sensor in the host of a rotatable complete machine; the rotatable complete machine comprises a base and a host; the base comprises a rotating mechanism; the host is connected with the base through the rotating mechanism; the host comprises a gravity sensor and a fan arranged below the host;
and outputting a corresponding control signal to drive the fan to rotate at a rotating speed which is in a negative correlation with the included angle according to the included angle between the host and the horizontal plane.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for driving the fan provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the driving apparatus for a fan, the units and modules included in the driving apparatus for a fan are merely divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.