Drive circuit and storage device
Patent Information
- Application Number
- CN202522177789.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2035-10-15
AI Technical Summary
Type -C接口的紧凑设计与暴露的引脚结构,使其在遭遇液体侵入时,极易出现短路故障,进而导致移动存储设备(如移动硬盘)的数据丢失或硬件损坏
[0014]本申请的驱动电路在触发断电保护措施时,单片机会通过第一引脚输出控制信号控制第一三极管断开,通过第二引脚输出控制信号控制第二三极管导通,以使得储能电容的电通过第二三极管的输入端和输出端接地,将残留电能接地排出,以避免残留电能对存储设备造成损坏,本申请的驱动电路能够在检测到液体侵入Type-C输入接口的时候,实现触发断电保护措施,且能够将存储设备内的残留电能接地排出,避免残留电能损坏存储设备内的电子元器件而造成残留电能损坏。
Smart Images

Figure CN224909470U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage device security protection technology, and in particular to a drive circuit and a storage device. Background Technology
[0002] With the widespread adoption of USB Type-C interfaces in mobile storage devices, their reversible pluggability, high-speed transmission, and high-power supply have brought convenience to users, but have also raised new safety challenges. The compact design and exposed pin structure of the Type-C interface make it highly susceptible to short circuits when exposed to liquids, leading to data loss or hardware damage to mobile storage devices (such as external hard drives). Traditional solutions that use humidity sensors on mobile storage devices typically require a considerable amount of time to trigger the protection mechanism after detecting liquid intrusion, making it difficult to cut off power instantly when a short circuit occurs. This can result in residual electrical energy that cannot be dissipated in time potentially damaging the mobile storage device. Utility Model Content
[0003] The purpose of this application is to provide a driving circuit and a storage device that, by controlling the conduction and cutoff of a first transistor and a second transistor, discharges the residual electrical energy of the power supply in the storage device to the ground, so as to avoid damage to the storage device by the residual electrical energy.
[0004] This application discloses a driving circuit applied to a storage device, the storage device including a power supply and a Type-C input interface. The driving circuit includes a microcontroller, a power supply pin, a first transistor, and a second transistor. The microcontroller includes a first pin and a second pin. The power supply pin is connected to the Type-C input interface. The control terminal of the first transistor is grounded, the input terminal of the first transistor is connected to the power supply pin, the output terminal of the first transistor is connected to the power supply, and the first pin is connected to the control terminal of the first transistor. The second pin is connected to the control terminal of the second transistor, the input terminal of the second transistor is located between the output terminal of the first transistor and the power supply, and the output terminal of the second transistor is grounded. The microcontroller outputs control signals through the first and second pins to control either the first transistor or the second transistor.
[0005] Optionally, the driving circuit further includes a first resistor, the input terminal of which is disposed between the power supply pin and the input terminal of the first transistor, and the output terminal of which is disposed between the control terminal of the first transistor and the first pin.
[0006] Optionally, the driving circuit further includes an energy storage capacitor, one end of which is disposed between the output terminal of the first transistor and the power supply, and the other end of which is grounded.
[0007] Optionally, the driving circuit further includes a current-limiting resistor, the input terminal of which is connected to the output terminal of the second transistor, and the output terminal of which is grounded.
[0008] Optionally, the driving circuit further includes a second resistor, the input terminal of which is connected to the control terminal of the first transistor, and the output terminal of the second resistor is grounded.
[0009] Optionally, the resistance value of the first resistor is less than the resistance value of the second resistor.
[0010] Optionally, the resistance value of the first resistor is equal to the resistance value of the second resistor, wherein the resistance value of both the first resistor and the second resistor is 10KΩ.
[0011] Optionally, the driving circuit further includes a first protection resistor and a second protection resistor, wherein the first protection resistor is disposed between the first pin and the control terminal of the first transistor, and the second protection resistor is disposed between the second pin and the control terminal of the second transistor.
[0012] Optionally, the microcontroller is an STM32 microcontroller.
[0013] This application also discloses a storage device, which includes a storage device and a driving circuit as described in any of the above claims, the driving circuit being used to drive the storage device.
[0014] When the power-off protection measures are triggered, the microcontroller will output a control signal through the first pin to control the first transistor to disconnect and output a control signal through the second pin to control the second transistor to conduct. This allows the energy storage capacitor to be grounded through the input and output terminals of the second transistor, thus discharging the residual energy to the ground and preventing damage to the storage device. The driving circuit of this application can trigger the power-off protection measures when liquid is detected entering the Type-C input interface, and can also discharge the residual energy in the storage device to the ground, preventing damage to the electronic components in the storage device caused by the residual energy. Attached Figure Description
[0015] The accompanying drawings, which form part of the specification, are used to provide a further understanding of the embodiments of this application and illustrate the implementation methods of this application, together with the textual description, to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any creative effort. In the drawings: Figure 1 This is a schematic diagram of the structure of a storage device according to the first embodiment of this application; Figure 2 This is a schematic diagram of the circuit structure of a driving circuit according to a second embodiment of this application; Figure 3 This is a schematic diagram of the circuit structure of a driving circuit according to the third embodiment of this application.
[0016] Among them, 100 is the driving circuit; 200 is the storage device; 300 is the storage unit; Power supply; Power pin VBUS; First pin PA0; Second pin PA1; First transistor Q1; Second transistor Q2; First resistor R1; Energy storage capacitor C1; Current limiting resistor Ra; Second resistor R2; First protection resistor Rb1; Second protection resistor Rb2. Detailed Implementation
[0017] It should be understood that the terminology, specific structural and functional details used herein are merely for describing particular embodiments and are representative. However, this application may be implemented in many alternative forms and should not be construed as being limited to the embodiments set forth herein.
[0018] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating relative importance or implying the number of technical features indicated. Therefore, unless otherwise stated, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature; "multiple" means two or more. The term "comprising" and any variations thereof mean non-exclusive inclusion, where one or more other features, integers, steps, operations, units, components, and / or combinations thereof may be present or added.
[0019] In addition, terms such as “center,” “horizontal,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer” that indicate orientation or positional relationship are based on the orientation or relative positional relationship shown in the accompanying drawings. They are only for the purpose of simplifying the description of this application and do not indicate that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0020] Furthermore, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0021] The present application will now be described in detail with reference to the accompanying drawings and optional embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0022] like Figure 1 As shown in the first embodiment of this application, a storage device 300 is disclosed. The storage device 300 includes a storage device 200 and a driving circuit 100. The storage device 200 includes a power supply and a Type-C input interface. The storage device 200 is connected to a power supply through the Type-C input interface to transmit current to the power supply within the storage device 200. The Type-C input interface is provided with a CC (Configuration Channel) 1 pin and a CC2 pin. The storage device 300 also includes a capacitive humidity sensor array disposed near the CC1 pin and the CC2 pin, and a resistance sensing network connected in parallel with the CC1 pin and the CC2 pin. The capacitive humidity sensor array and the resistance sensing network are used to detect the humidity environment of the Type-C input interface in real time. It should be noted that CC1 and CC2 in the CC1 pin and the CC2 pin respectively represent the front and back of the Type-C input interface. The storage device 200 can be a portable hard drive.
[0023] When liquid enters the Type-C input interface of storage device 200, it changes the humidity environment near the Type-C input interface, which is detected by the capacitive humidity sensor array. Furthermore, the conductivity of the liquid entering the Type-C input interface causes a change in the equivalent impedance of the CC1 and CC2 pins. When liquid enters, the humidity of the Type-C input interface increases, causing the impedance to decrease and the voltage of the CC1 and CC2 pins to deviate from the normal range, resulting in a higher voltage. The resistance detection network detects the voltage fluctuations of the CC1 and CC2 pins. The storage device 300 of this application uses a dual-trigger mechanism—a capacitive humidity sensor array and a resistance detection network—to determine whether the Type-C input interface of storage device 200 has been infiltrated by liquid, thus reducing false triggering. Compared to a solution where storage device 300 uses only a single sensor for detection, this embodiment provides a more accurate determination of whether the Type-C input interface of storage device 300 has been infiltrated by liquid.
[0024] The driving circuit 100 includes a microcontroller connected to the capacitive humidity sensor array and the resistance detection network to receive the detection results output by the capacitive humidity sensor array and the resistance detection network. The microcontroller polls and reads the detection results output by the capacitive humidity sensor and the resistance detection network at a period of 1ms to determine whether the Type-C input interface has been intruded by liquid, thereby determining whether to activate the power failure protection measures. Specifically, the resistance sensing network consists of resistors with an accuracy of 5.1KΩ±1%, which are connected in parallel with the pull-down resistors in the Type-C input interface to form a voltage divider circuit. This circuit is used to monitor in real time whether the voltages of the CC1 and CC2 pins deviate from the normal range of 1.68V±0.2V. The capacitive humidity sensor array uses Honeywell HIH-4000 series capacitive humidity sensors, achieving a detection accuracy of ±3%RH and a response time of less than 50ms. The distance between the detection surface of the capacitive humidity sensor and the CC1 and CC2 pins of the Type-C input interface is controlled within 2mm, preferably within 0.5mm, to improve detection sensitivity.
[0025] In summary, the storage device 300 of this application, by setting up a capacitive humidity sensor array, a resistance detection network, and a driving circuit 100, uses a dual triggering mechanism of the capacitive humidity sensor array and the resistance detection network to determine whether the Type-C input interface of the storage device 200 has been intruded by liquid. The microcontroller in the driving circuit 100 periodically reads the detection results and determines whether to activate power-off protection measures based on the detection results, so as to achieve the functions of rapid detection of liquid intrusion and rapid power-off protection.
[0026] The dual triggering mechanism of this application is as follows: when the capacitive humidity sensor detects that the humidity exceeds 50%RH, and the resistance detection network detects that the voltage of the CC1 pin or CC2 pin deviates from the normal range for more than 5ms, the power-off protection measure is triggered. Of course, the detection threshold can also be selected and designed by the designer according to the specific conditions of the actual use location, and there is no restriction here.
[0027] like Figure 2 As shown in the second embodiment of this application, a driving circuit 100 is disclosed. The driving circuit 100 is applied to a storage device 200, which includes a power supply and a Type-C input interface. The driving circuit 100 includes a microcontroller, a power pin VBUS, a first transistor Q1, and a second transistor Q2. The microcontroller includes a first pin PA0 and a second pin PA1. The power pin VBUS is connected to the Type-C input interface of the storage device. The control terminal of the first transistor Q1 is grounded, the input terminal of the first transistor Q1 is connected to the power pin VBUS, and the output terminal of the first transistor Q1 is connected to the power supply. The first pin PA0 is connected to the control terminal of the first transistor Q1, so as to control the conduction and cutoff of the first transistor Q1 by outputting a control signal through the first pin PA0. The second pin PA1 is connected to the control terminal of the second transistor Q2. The input terminal of the second transistor Q2 is set between the output terminal of the first transistor Q1 and the power supply of the storage device. The output terminal of the second transistor Q2 is grounded. The microcontroller outputs control signals through the first pin PA0 and the second pin PA1 to control the conduction of the first transistor Q1 or the second transistor Q2. The microcontroller can be an STM32 microcontroller, and the storage device 200 can be a portable hard drive.
[0028] In this embodiment, the Type-C input interface on the storage device 200 is equipped with a humidity sensor array and a resistance detection network as described in the first embodiment to detect in real time whether the Type-C input interface is infiltrated by liquid. When the humidity sensor array or the resistance detection network detects liquid intrusion into the Type-C input interface, the microcontroller will trigger a power-off protection measure. At this time, the microcontroller will output a control signal through the first pin PA0 to control the first transistor Q1 to disconnect, so that the connection between the power supply pin VBUS and the power supply Power is disconnected, and output a control signal through the second pin PA1 to control the second transistor Q2 to conduct, so that the power supply Power is grounded through the output terminal of the second transistor Q2, and the residual power of the power supply Power is discharged to the ground to avoid damage to the storage device by the residual power.
[0029] like Figure 3 As shown in the third embodiment of this application, a driving circuit is disclosed. To prevent the power supply Power from being directly grounded and damaging the electronic components (not shown in the figure) of the storage device when the microcontroller triggers the power-off protection measure, the driving circuit 100 further includes an energy storage capacitor C1. One end of the energy storage capacitor C1 is disposed between the output terminal of the first transistor Q1 and the power supply Power, and the other end of the energy storage capacitor C1 is grounded. When the microcontroller triggers the power-off protection measure, the microcontroller outputs a control signal through the first pin PA0 to control the first transistor Q1 to disconnect, and the connection between the power supply pin VBUS and the power supply Power is disconnected. At this time, the remaining power in the power supply Power will charge the energy storage capacitor C1. After charging is completed, the second transistor Q2 is turned on through the second pin PA1 to output a control signal, so that the power of the energy storage capacitor C1 is grounded through the input and output terminals of the second transistor Q2, and the residual power is discharged to the ground. In this embodiment, the energy storage capacitor C1 can be a supercapacitor.
[0030] Furthermore, the driving circuit 100 also includes a first resistor R1. The input terminal of the first resistor R1 is located between the power supply pin VBUS and the input terminal of the first transistor Q1, and the output terminal of the first resistor R1 is located between the control terminal of the first transistor Q1 and the first pin PA0. The first resistor R1 is used to limit the current and prevent overcurrent from occurring at the control terminal of the first transistor Q1, thereby avoiding burning out the first transistor Q1. In this embodiment, the resistance value of the first resistor R1 can be 10KΩ. It should be noted that the first transistor Q1 can be a P-type MOSFET, and the second transistor Q2 can be an N-type MOSFET.
[0031] The driving circuit 100 further includes a current-limiting resistor Ra. The input terminal of the current-limiting resistor Ra is connected to the output terminal of the second transistor Q2, and the output terminal of the current-limiting resistor Ra is grounded. When the second pin PA1 outputs a control signal to control the second transistor Q2 to conduct, the energy storage capacitor C1 can discharge quickly through the current-limiting resistor Ra. The resistance of the current-limiting resistor Ra is 10Ω, and the rated power of the current-limiting resistor Ra is 2W.
[0032] The driving circuit 100 further includes a second resistor R2. The input terminal of the second resistor R2 is connected to the control terminal of the first transistor Q1, and the output terminal of the second resistor R2 is grounded. The control terminal of the first transistor Q1 is pulled down to ground through the second resistor R2 to ensure that the first transistor Q1 is in the conducting state under normal conditions (i.e., when the Type-C input interface is not infiltrated by liquid). In this embodiment, the resistance of the second resistor R2 is 10KΩ, and the resistance of the second resistor R2 is equal to the resistance of the first resistor R1. Of course, the resistance of the first resistor R1 and the resistance of the second resistor R2 can also be unequal; the resistance of the second resistor R2 can simply be set to be greater than the resistance of the first resistor R1.
[0033] The driving circuit 100 further includes a first protection resistor Rb1 and a second protection resistor Rb2. The first protection resistor Rb1 is disposed between the first pin PA0 and the control terminal of the first transistor Q1, and the second protection resistor Rb2 is disposed between the second pin PA1 and the control terminal of the second transistor Q2. The first protection resistor Rb1 and the second protection resistor Rb2 are used to protect the first pin PA0 and the second pin PA1 of the microcontroller to prevent the first pin PA0 and the second pin PA1 from being burned out by overcurrent.
[0034] In summary, when the driving circuit 100 of this embodiment is used, the microcontroller first receives the information detected by the humidity sensor array and resistance detection network set on the Type-C input interface of the storage device 300. Based on the information, it triggers a power-off protection measure. The microcontroller outputs a control signal through the first pin PA0 to control the first transistor Q1 to disconnect, so that the connection between the power supply pin VBUS and the power supply Power is disconnected. At this time, the residual power of the power supply Power will charge the energy storage capacitor C1. Then, the microcontroller outputs a control signal through the second pin PA1 to control the second transistor Q2 to conduct, so that the electricity of the energy storage capacitor C1 is grounded through the input and output terminals of the second transistor Q2, and the residual power is discharged to the ground to avoid damage to the storage device. Through the structure of the driving circuit 100 of this application, when liquid is detected to have entered the Type-C input interface, the power-off protection measure can be triggered, and the residual power in the storage device 200 can also be discharged to the ground to avoid damage to the electronic components in the storage device 200 by the residual power.
[0035] It should be noted that the limitations on each step involved in this solution are not considered as limiting the order of steps, provided that they do not affect the implementation of the specific solution. The steps listed first can be executed first, later, or even simultaneously. As long as this solution can be implemented, it should be considered to fall within the scope of protection of this application.
[0036] It should be noted that the inventive concept of this application can form many embodiments, but due to the limited space of the application documents, they cannot all be listed. Therefore, without conflict, the embodiments described above or the technical features can be arbitrarily combined to form new embodiments. After the embodiments or technical features are combined, the original technical effect will be enhanced.
[0037] The above description, in conjunction with specific optional embodiments, provides a further detailed explanation of this application and should not be construed as limiting the specific implementation of this application to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of this application, and all such modifications or substitutions should be considered within the scope of protection of this application.
Claims
1. A driving circuit applied to a storage device, the storage device including a power supply and a Type-C input interface, characterized in that, include: A microcontroller, wherein the microcontroller includes a first pin and a second pin; The power pin connects to the Type-C input interface. The first transistor has its control terminal grounded, its input terminal connected to the power supply pin, its output terminal connected to the power supply, and its first pin connected to the control terminal of the first transistor. as well as The second transistor has its second pin connected to the control terminal of the second transistor, its input terminal located between the output terminal of the first transistor and the power supply, and its output terminal grounded. The microcontroller outputs control signals through the first and second pins to control the first or second transistor.
2. The driving circuit according to claim 1, characterized in that, It also includes a first resistor, the input terminal of which is located between the power supply pin and the input terminal of the first transistor, and the output terminal of which is located between the control terminal and the first pin of the first transistor.
3. The driving circuit according to claim 1, characterized in that, It also includes an energy storage capacitor, one end of which is disposed between the output terminal of the first transistor and the power supply, and the other end of which is grounded.
4. The driving circuit according to claim 1, characterized in that, It also includes a current-limiting resistor, the input terminal of which is connected to the output terminal of the second transistor, and the output terminal of which is grounded.
5. The driving circuit according to claim 2, characterized in that, It also includes a second resistor, the input of which is connected to the control terminal of the first transistor, and the output of which is grounded.
6. The driving circuit according to claim 5, characterized in that, The resistance of the first resistor is less than the resistance of the second resistor.
7. The driving circuit according to claim 5, characterized in that, The resistance value of the first resistor is equal to the resistance value of the second resistor; The resistance values of the first resistor and the second resistor are both 10KΩ.
8. The driving circuit according to claim 1, characterized in that, It also includes a first protection resistor and a second protection resistor, wherein the first protection resistor is disposed between the first pin and the control terminal of the first transistor, and the second protection resistor is disposed between the second pin and the control terminal of the second transistor.
9. The driving circuit according to claim 1, characterized in that, The microcontroller is an STM32 microcontroller.
10. A storage device, characterized in that, It includes a storage device and a driving circuit as described in any one of claims 1 to 9, the driving circuit being used to drive the storage device.