Abstract:
The disclosure provides a protection device including a temperature detection circuit, a switch circuit, a control circuit, and a warning circuit. The temperature detection circuit outputs temperature signal to the control circuit. The control circuit obtains the temperature signal from the temperature detection circuit, and compares the temperature signal with a preset temperature range and outputs a first control signal. The warning circuit sends warning based on the first control signal.

Description:
FIELD 
     The subject matter herein generally relates to a protection device. 
     BACKGROUND 
     When something wrong occurs in a computer and users are not alerted in time, the computer can be damaged. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       Implementations of the present technology will now be described, by way of example only, with reference to the attached figures. 
         FIG. 1  is a block diagram of an example embodiment of a protection device of the present disclosure. 
         FIG. 2  is a circuit diagram of an example embodiment of a protection device of the present disclosure. 
     
    
    
     DETAILED DESCRIPTION 
     It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrates details and features. The description is not to be considered as limiting the scope of the embodiments described herein. 
     Several definitions that apply throughout this disclosure will now be presented. 
     The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like. 
       FIG. 1  illustrates an embodiment of a protection device of the present disclosure. The protection device in accordance with an exemplary embodiment comprises a control circuit  10 , a temperature detection circuit  20 , a switch circuit  30 , a fan speed detection circuit  40 , a circuit board  60 , and a warning circuit  50 . In the embodiment, the temperature detection circuit  20 , the switch circuit  30 , the fan speed detection circuit  40 , the warning circuit  50 , and the circuit board  60  are coupled to the control circuit  10 . The fan speed detection circuit  40  is coupled to the circuit board  60 . In the embodiment, the circuit board  60  is a motherboard of a computer. 
       FIG. 2  illustrates that the control circuit  10  comprises a reset circuit  102 , an oscillating circuit  100 , and a micro controller U. 
     In the embodiment, the type of the micro controller U is AT89C51. A power pin VCC of the micro controller U can obtain a power supply 5V_USB from the circuit board  60 . The reset circuit  102  comprises a resistor R 1 , a capacitor C 1 , and a switch SW 1 . A reset pin RST of the micro controller U is grounded through the resistor R 1 , and electrically coupled to the power supply 5V_USB through the capacitor C 1 . The switch SW 1  is electrically coupled to the capacitor C 1  in parallel. A ground pin GND of the micro controller U is grounded. A function pin VPP of the micro controller U is electrically coupled to the power supply 5V_USB through a resistor R 9 . 
     In the embodiment, the oscillating circuit  100  comprises a crystal oscillator X 1 , a capacitor C 2 , and a capacitor C 3 . A first oscillating pin XTAL 1  of the micro controller U is electrically coupled to a first terminal of the crystal oscillator X 1 , and a second oscillating pin XTAL 2  of the micro controller U is electrically coupled to a second terminal of the crystal oscillator X 1 . The first oscillating pin XTAL 1  of the micro controller U is grounded through the capacitor C 2 . The second oscillating pin XTAL 2  of the micro controller U is grounded through the capacitor C 3 . 
     In the embodiment, the warning circuit  50  comprises light-emitting diodes (LEDs) D 1 -D 3 , resistors R 4 -R 6 . An anode of the LED D 1  is electrically coupled to the power supply 5V_USB through the resistor R 4 , and a cathode of the LED D 1  is electrically coupled to a first warning pin P2.0 of the micro controller U. An anode of the LED D 2  is electrically coupled to the power supply 5V_USB through the resistor R 5 , and a cathode of the LED D 2  is electrically coupled to a second warning pin P2.1 of the micro controller U. An anode of the LED D 3  is electrically coupled to the power supply 5V_USB through the resistor R 6 , and a cathode of the LED D 3  is electrically coupled to a third warning pin P2.2 of the micro controller U. The LEDs D 1 -D 3  respectively emitting red, yellow and blue lights. 
     In the embodiment, the temperature detection circuit  20  comprises a thermal resistor NTC, a capacitor C 4 , and a resistor R 2 . A temperature pin P0.7 of the micro controller U is grounded through the thermal resistor NTC and the capacitor C 4  is electrically coupled to the thermal resistor NTC in parallel. The temperature pin P0.7 of the micro controller U is also electrically coupled to the power supply 5V_USB through the resistor R 2 . The thermal resistor NTC is placed near a component with a high temperature in the computer. 
     The switch circuit  30  is configured to turn on and turn off the computer and can comprise a switch SW 2 , a capacitor C 5 , and a resistor R 3 . A switch input pin P1.0 of the micro controller U is grounded through the switch SW 2 , and is also electrically coupled to the power supply 5V_USB through the resistor R 3 . The power supply 5V_USB is grounded through the capacitor C 5 . 
     In the embodiment, the fan speed detection circuit  40  can communicate with a super input/output (SIO) interface of the circuit board  60  through a system management bus (SMBUS) interface. The SMBUS can comprise a clock signal bus S_SMBCLK, and a data signal bus S_SMBDATA. The fan speed detection circuit  40  is for detecting a speed of a fan in the computer and comprises resistors R 7  and R 8 . A first fan pin P3.0 of the micro controller U is electrically coupled to the clock signal bus S_SMBCLK, and is also electrically coupled to the power supply 5V_USB through the resistor R 7 . A second fan pin P3.1 of the micro controller U is electrically coupled to the data signal bus S_SMBDATA, and is also electrically coupled to the power supply 5V_USB through the resistor R 8 . 
     In the embodiment, when the switch SW 2  is turned on, the switch circuit  30  outputs a switch signal to the switch input pin P1.0 of the micro controller U, and the micro controller U outputs a boot control signal to a boot pin MB_PWS of circuit board  60 . When the boot control signal is at a low level, the computer is turned on. When the boot control signal is at a high level, the computer is turned off. 
     In the embodiment, the temperature detection circuit  20  can detect a temperature of the component and transmit a temperature signal to the temperature pin P0.7 of the micro controller U. 
     When the detected temperature is less than the minimum of a preset temperature range, the micro controller U controls the LED D 1  to turn on. When the detected temperature is within the preset temperature range, the micro controller U controls the LED D 2  to turn on. When detected temperature is greater than the maximum of the preset temperature range, the micro controller U controls the LED D 3  to turn on. 
     When the detected speed of the fan is less than the minimum of a preset speed range, the micro controller U controls the LEDs D 1 -D 3  to flash at a first frequency. When the detected speed of the fan is within the preset speed range, the micro controller U controls the LEDs D 1 -D 3  to flash at a second frequency. When the detected speed is greater than the maximum of the preset speed range, the micro controller U controls the LEDs D 1 -D 3  to flash at a third frequency. 
     In the embodiment, a CPU reset terminal of the circuit board  60  is electrically coupled to the detect pin P0.0 of the micro controller U to detect a CPU reset signal of the circuit board  60 , and to detect a working status of hardware on the circuit board  60 . When the hardware works normally, the detected reset signal is at a low level and the micro controller U controls the LEDs D 1 -D 3  to turn off. When the hardware works abnormally, the detected reset signal is at a high level and, the micro controller U controls the LEDs D 1 -D 3  to maintain the existing or original state. 
     The embodiments shown and described above are only examples. Many details are often found in the art such as the other features of the protection device. Therefore, many such details are neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, especially in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including the full extent established by the broad general meaning of the terms used in the claims. It will therefore be appreciated that the embodiments described above may be modified within the scope of the claims.