Disclosure of utility model
The utility model provides a carbon dioxide detector detection execution circuit, which solves the problem that a key input detection module cannot operate under the control of a control module in the prior art.
In order to achieve the above purpose, the present utility model adopts the following technical scheme:
The utility model discloses a carbon dioxide detector detection execution circuit which comprises a control module, a power supply module, a key input detection module and a carbon dioxide sensor, wherein the power supply module comprises a rechargeable battery, a battery charging unit and a power supply execution unit, the battery charging unit is connected to the rechargeable battery, the power supply execution unit is connected to the output end of the power supply execution unit through a charging battery connecting column, the first output end of the power supply execution unit is connected to the voltage input end of the key input detection module, the second output end of the power supply execution unit is connected to the voltage input end of the control module, the third output end of the power supply execution unit is connected to the voltage input end of the carbon dioxide sensor, the output end of the carbon dioxide sensor is connected to the first communication connection end of the control module, the key input detection module comprises a key switch driving unit, a key detection execution unit and a key part, the control end of the key switch driving unit is connected to the first output end of the control module, the positive end of the key switch driving unit is connected to the voltage input end of the key input detection module, the negative end of the key switch driving unit is grounded, the voltage output end of the key switch driving unit is connected to the voltage input end of the key detection execution unit, the input end of the key detection execution unit is connected to the key detection execution unit, the input end is connected to the key part, the output end of the key detection execution unit is connected to the key output end of the key detection execution unit is connected to the first communication end and the key input end of the key detection execution unit.
Preferably, the key switch driving unit comprises a resistor R9, a triode Q4 and a resistor R10, wherein one end of the resistor R10 is the positive end of the key switch driving unit, the other end of the resistor R10 is connected to the collector electrode of the triode Q4, the emitter electrode of the triode Q4 is grounded, the base electrode of the triode Q4 is connected to one end of the resistor R9, the other end of the resistor R9 is the control end of the key switch driving unit, and the collector electrode of the triode Q4 is the voltage output end of the key switch driving unit.
Preferably, the KEY detection execution unit comprises a KEY detection chip U1, a capacitor C4, a resistor R11 and a capacitor C5, wherein the KEY detection chip U1 is a SUM7323 type chip, the KEY end of the KEY detection chip U1 is an input end of the KEY detection execution unit, the KEY end of the KEY detection chip U1 is connected to the positive electrode of the capacitor C4, the negative electrode of the capacitor C4 is grounded, the VSS end of the KEY detection chip U1 is grounded, the OUT end of the KEY detection chip U1 is an output end of the KEY detection execution unit, the LS end of the KEY detection chip U1 is grounded, the SET end of the KEY detection chip U1 is connected to one end of the resistor R11, the other end of the resistor R11 is connected to the VDD end of the KEY detection chip U1, the VDD end of the KEY detection chip U1 is connected to the positive electrode of the capacitor C5, the negative electrode of the capacitor C5 is grounded, and the VDD end of the KEY detection chip U1 is a voltage input end of the KEY input detection module.
The battery charging unit comprises a wiring assembly chip U2, an electrostatic diode D1, a resistor R12, a resistor R13, a resistor R14, a resistor R15, a resistor R16, a resistor R17, an electrolytic capacitor C6, a capacitor C7, a capacitor C8 and a charging management chip U3, wherein the wiring assembly chip U2 is used for being connected with an external charger, a GND pin of the wiring assembly chip U2 is grounded, a VCC pin of the wiring assembly chip U2 is connected to a USB-5V output end of the charger, the VCC pin of the wiring assembly chip U2 is grounded through the electrostatic diode D1, a CC1 pin of the wiring assembly chip U2 is grounded through the resistor R12, a CC2 pin of the wiring assembly chip U2 is grounded through the resistor R13, the charging management chip U3 adopts a TP4056 type chip, a USB-5V output end of the charger is connected with one end of the resistor R15, the other end of the resistor R15 is connected to the positive electrode of the electrolytic capacitor C6, a GND pin of the charging management chip U3 and a CE pin of the charging management chip U3, the VCC pin of the charging management chip U3 and the VCC pin of the charging management chip are both grounded, the VCC pin of the electrolytic capacitor C3 and the VCC pin of the GND 3 are grounded, the CC1 pin of the CC1 is grounded through the resistor R12 and the CC2 pin of the resistor R2 is connected to the positive electrode C7 and the negative electrode of the resistor C17, and the negative electrode of the charging management chip C7 is connected to the positive electrode C7 and the negative electrode of the charging management chip C7 is connected to the negative electrode C7.
Preferably, the power supply execution unit comprises a wiring voltage direct-in module, a first controllable switch module, a second controllable switch module, a third controllable switch module, a first current-limiting module, a second current-limiting module, a third current-limiting module, a fourth current-limiting module, a voltage-stabilizing module, a first voltage-reducing voltage-stabilizing module and a second voltage-stabilizing module, wherein the positive electrode of the rechargeable battery is connected to the positive electrode of the first controllable switch module, the control end of the first controllable switch module is connected to the output end of the wiring voltage direct-in module, the input end of the wiring voltage direct-in module is connected to the USB-5V output end of an external charger, the negative electrode of the first controllable switch module is connected to the positive electrode of the second controllable switch module, the negative electrode of the second controllable switch module is a power supply output end, the positive electrode of the second controllable switch module is connected to the output end of the second current-limiting module, the input end of the second current-limiting module is connected with the output end of the first current-limiting module to form a plug-in output end, the input end of the first current-limiting module is used for being connected to the output end after the USB plug-in, the control end of the second controllable switch module is connected to the output end of the third current-limiting module, the control end of the second controllable switch module is connected to the output end of the third current-limiting module, the input end of the third controllable switch module is connected to the fourth current-limiting module is connected to the output end of the external charger, the output end of the second controllable switch module is connected to the output end of the second current-limiting module, the output end of the first buck voltage stabilizing module is a second output end of the power supply executing unit, the negative electrode of the second controllable switch module is connected to the input end of the second buck voltage stabilizing module, and the output end of the second buck voltage stabilizing module is a third output end of the power supply executing unit.
Compared with the prior art, the utility model has the following beneficial effects:
The application firstly designs a battery charging unit to charge the rechargeable battery, then utilizes the power supply executing unit to adjust the voltage output by the rechargeable battery into different voltages, and then designs a key switch driving unit to control the whole key detection executing unit to work if and only if the control module controls the key switch driving unit to be closed, thereby realizing that the key detection executing unit operates under control by matching with the control module, and detecting the voltage change after the key is pressed by using the key detection executing unit, thereby having higher detection precision.
Additional advantages, objects, and features of the utility model will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the utility model.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement of the purpose and the effect of the present utility model more clear and easy to understand, the present utility model is further described below with reference to the accompanying drawings and the detailed description:
The utility model discloses a carbon dioxide detector detection execution circuit which comprises a control module, a power module, a key input detection module and a carbon dioxide sensor, wherein the power module comprises a rechargeable battery, a battery charging unit and a power supply execution unit, the battery charging unit is connected to the rechargeable battery, the rechargeable battery is connected with an output end of the power supply execution unit, a first output end of the power supply execution unit is connected to a voltage input end of the key input detection module, a second output end of the power supply execution unit is connected to the voltage input end of the control module, a third output end of the power supply execution unit is connected to a voltage input end of the carbon dioxide sensor, an output end of the carbon dioxide sensor is connected to a first communication connection end of the control module, the key input detection module comprises a key switch driving unit, a key detection execution unit and a key part, a control end of the key switch driving unit is connected to a first output end of the control module, a positive end of the key switch driving unit is a voltage input end of the key input detection module, a negative end of the key switch driving unit is grounded, a voltage output end of the key switch driving unit is connected to a voltage input end of the key detection execution unit, a third output end of the key detection execution unit is connected to the voltage input end of the key detection execution unit, and the key detection execution unit is connected to the output end of the control module.
The key switch driving unit comprises a resistor R9, a triode Q4 and a resistor R10, wherein one end of the resistor R10 is the positive end of the key switch driving unit, the other end of the resistor R10 is connected to the collector of the triode Q4, the emitter of the triode Q4 is grounded, the base of the triode Q4 is connected to one end of the resistor R9, the other end of the resistor R9 is the control end of the key switch driving unit, and the collector of the triode Q4 is the voltage output end of the key switch driving unit. The triode Q4 is a controllable switch function, and is switched on and off under the control of the control module.
The KEY detection execution unit comprises a KEY detection chip U1, a capacitor C4, a resistor R11 and a capacitor C5, wherein the KEY detection chip U1 is a SUM7323 type chip, the KEY end of the KEY detection chip U1 is an input end of the KEY detection execution unit, the KEY end of the KEY detection chip U1 is connected to the positive electrode of the capacitor C4, the negative electrode of the capacitor C4 is grounded, the VSS end of the KEY detection chip U1 is grounded, the OUT end of the KEY detection chip U1 is an output end of the KEY detection execution unit, the LS end of the KEY detection chip U1 is grounded, the SET end of the KEY detection chip U1 is connected to one end of the resistor R11, the other end of the resistor R11 is connected to the VDD end of the KEY detection chip U1, the VDD end of the KEY detection chip U1 is connected to the positive electrode of the capacitor C5, the negative electrode of the capacitor C5 is grounded, and the VDD end of the KEY detection chip U1 is a voltage input end of the KEY input detection module. The key detection chip U1 detects voltage change at the key part, and the triode Q4 controls a circuit for supplying power to the key detection chip U1.
The battery charging unit comprises a wiring assembly chip U2, an electrostatic diode D1, a resistor R12, a resistor R13, a resistor R14, a resistor R15, a resistor R16, a resistor R17, an electrolytic capacitor C6, a capacitor C7, a capacitor C8 and a charging management chip U3, wherein the wiring assembly chip U2 is used for being connected with an external charger, the GND pin of the wiring assembly chip U2 is grounded, the VCC pin of the wiring assembly chip U2 is connected to the USB-5V output end of the charger, the VCC pin of the wiring assembly chip U2 is grounded through the electrostatic diode D1, the CC1 pin of the wiring assembly chip U2 is grounded through the resistor R12, the CC2 pin of the wiring assembly chip U2 is grounded through the resistor R13, the charging management chip U3 adopts a TP4056 type chip, the USB-5V output end of the charger is connected with one end of the resistor R15, the other end of the resistor R15 is connected to the positive electrode of the electrolytic capacitor C6, the GND pin of the charging management chip U3 and the CE pin of the charging management chip U3, the EP pin of the electrolytic capacitor U3 and the GND pin are grounded, the VCC pin of the electrolytic capacitor C6 and the VCC pin of the electrolytic capacitor C6 are grounded, the CC pin of the CC2 is connected with the positive electrode C6 and the negative electrode C7 and the negative electrode of the charging management chip C8 is connected to one end of the positive electrode of the capacitor C7 and the positive electrode C8 and the negative electrode of the capacitor C7 is connected to the positive electrode C8 and the negative electrode of the positive electrode C7 and negative electrode of the charging module, and one end of the charging module is connected to the positive electrode C7 and negative electrode C7 is connected to the negative electrode C7 and negative electrode of the positive electrode C7 and negative electrode C7 is connected to negative electrode C7. The wiring assembly chip U2 realizes interface connection with an external charger. The charge management chip U3 controls the charge voltage to the rechargeable battery, and the charge management chip U3 can operate under the control of the control Mo Kui.
The power supply execution unit comprises a wiring voltage direct-in module, a first controllable switch module, a second controllable switch module, a third controllable switch module, a first current-limiting module, a second current-limiting module, a third current-limiting module, a fourth current-limiting module, a voltage-stabilizing module, a first voltage-reducing voltage-stabilizing module and a second voltage-stabilizing module, wherein the positive electrode BATZ of the rechargeable battery is connected to the positive electrode of the first controllable switch module, the control end of the first controllable switch module is connected to the output end of the wiring voltage direct-in module, the input end of the wiring voltage direct-in module is connected to the USB-5V output end TYPV of the external charger, the negative electrode of the first controllable switch module is connected to the positive electrode of the second controllable switch module, the negative electrode of the second controllable switch module is a power supply output end BATQB, the positive electrode of the second controllable switch module is connected to the output end of the second current-limiting module, the input end of the second current-limiting module is connected with the output end of the first current-limiting module to form a plug-in output end USBON, the input end of the first current-limiting module is used for being connected to the USB plug-in output end USBV, the control end of the second controllable switch module is connected to the output end of the third current-limiting module, the control end of the second controllable switch module is connected to the positive electrode of the third controllable switch module is connected to the third current-limiting module, the output end of the third voltage-limiting module is connected to the output end of the third current-limiting module, the voltage-limiting module is connected to the output end of the plug-limiting module, the output end of the first step-down voltage stabilizing module (which converts the voltage into the standard 3.3v voltage) is used as the second output end of the power supply executing unit, the negative electrode of the second controllable switch module is connected to the input end of the second step-down voltage stabilizing module, and the output end of the second step-down voltage stabilizing module is used as the third output end of the power supply executing unit.
The power supply control circuit has the following functions that firstly, when power is supplied from a wiring voltage direct-in module, a MOS tube Q1 in a first controllable switch module is closed, the input end of the wiring voltage direct-in module is connected with a USB-5V output end of an external charger, the USB-5V output end of the external charger is power supply at a TYP-C interface, the TYP-C interface is provided with power supply, the MOS tube Q1 is closed, and a source electrode of the MOS tube Q1 is provided with voltage output, so that the positive electrode of a second controllable switch module is provided with voltage input, and the function of detecting whether the TYP-C interface is normally powered or not is achieved. And when the external key circuit is pressed by a key, the external key circuit outputs a low level, and because the control end of the second controllable switch module is connected with the positive electrode of the second controllable switch module through a load, the external key circuit is required to provide a low level, so that the control end of the second controllable switch module has a lower voltage, the second controllable switch module is closed and electrified, when the second controllable switch module is electrified, the control module starts to work, the output end of the control module outputs a high level, the control end of the third controllable switch module is connected with a driving voltage, the third controllable switch module is closed and conducted, and at the moment, a current flow condition is provided for the load between the negative electrode of the second controllable switch module and the control end of the second controllable switch module, namely, the control end of the second controllable switch module is also connected to the low voltage, so that the control end of the second controllable switch module always has the low voltage, and even if the key in the external key circuit is disconnected, the second controllable switch module can be always kept on under the control of the output end of the control module. Third, when the control module output end does not output high level and when the key circuit does not output low voltage either, only when USB is inserted in TYP-C interface, the input end of the first current limiting module can output high voltage, so that the output end of the first current limiting module outputs high level to the input end of the fourth current limiting module, the third controllable switch module is conducted, and the load between the control end of the second controllable switch module and the negative electrode can conduct current, thereby realizing automatic power supply after USB is inserted. Therefore, the automatic control after USB insertion, the automatic control after key closing in the key circuit and the active control of the control module are realized, and the first current limiting module, the second current limiting module, the third current limiting module and the fourth current limiting module are arranged between the two modules, so that the interference among different control modes is avoided, and all the controls can realize the control of the output voltage of the power supply output end.
The output end of the third current limiting module is connected to the output end of a fifth current limiting module, and the input end of the fifth current limiting module is connected to the signal input end KEYIN of the control module. The signal input end KEYIN of the control module is used for detecting the output state of the key circuit so as to detect whether keys in the key circuit are closed or not.
The power supply output end is connected to the input end of the first step-down voltage stabilizing module, and the output end of the first step-down voltage stabilizing module is used for being connected to the voltage input end of the control module. The working voltage of the control module is 3.3v, and the voltage of the power supply output end is not the voltage, and most probably the voltage value of 2.5v and the like, so the first step-down voltage stabilizing module is designed to meet the working voltage requirement of the control module.
The power supply output end is connected to the input end of the second step-down voltage stabilizing module, and the output end of the second step-down voltage stabilizing module is used for being connected to the voltage input end of the carbon dioxide detection circuit. The working voltage of the carbon dioxide detection circuit is 5v, and the voltage of the power supply output end is not the voltage, and most probably is 2.5v and other voltage values, so that the second step-down voltage stabilizing module is designed to meet the working voltage requirement of the carbon dioxide detection circuit.
The first current limiting module, the second current limiting module, the third current limiting module, the fourth current limiting module and the fifth current limiting module comprise current limiting diodes, anodes of the current limiting diodes are input ends of the first current limiting module, the second current limiting module, the third current limiting module, the fourth current limiting module or the fifth current limiting module, and cathodes of the current limiting diodes are output ends of the first current limiting module, the second current limiting module, the third current limiting module, the fourth current limiting module or the fifth current limiting module. The characteristic that the current of the current-limiting diode can only flow from the anode to the cathode is utilized, so that the input voltage of various control modes is not interfered.
The wiring voltage direct-in module comprises a resistor R1 and a resistor R2, wherein one end of the resistor R1 is an input end of the wiring voltage direct-in module, the other end of the resistor R1 is grounded through the resistor R2, and the joint of the resistor R1 and the resistor R2 is an output end of the wiring voltage direct-in module. The resistor R1 and the resistor R2 have the voltage dividing function, so that the working requirement of the MOS tube Q1 can be met after the voltage is connected.
The first controllable switch module comprises a MOS tube Q1 and a capacitor C1, wherein the grid electrode of the MOS tube Q1 is the control end of the first controllable switch module, the drain electrode of the MOS tube Q1 is the positive electrode of the first controllable switch module, the source electrode of the MOS tube Q1 is the negative electrode of the first controllable switch module, the drain electrode of the MOS tube Q1 is connected to the positive electrode of the capacitor C1, and the negative electrode of the capacitor C1 is grounded. The capacitor C1 acts as a voltage regulator.
The second controllable switch module comprises a MOS tube Q2, a capacitor C2, an electrolytic capacitor C3 and a resistor R8, wherein the grid electrode of the MOS tube Q2 is the control end of the second controllable switch module, the drain electrode of the MOS tube Q2 is the positive electrode of the second controllable switch module, the source electrode of the MOS tube Q2 is the negative electrode of the second controllable switch module, the drain electrode of the MOS tube Q2 is connected to the positive electrode of the capacitor C2, the negative electrode of the capacitor C2 is grounded, the source electrode of the MOS tube Q2 is connected to the positive electrode of the electrolytic capacitor C3, and the negative electrode of the electrolytic capacitor C3 is grounded. Both the capacitor C1 and the electrolytic capacitor C3 are voltage stabilizing. The resistor R8 is a load between the negative electrode of the second controllable switch module and the control end.
The third controllable switch module comprises a triode Q3 and a resistor R3, wherein one end of the resistor R3 is the positive electrode of the third controllable switch module, the other end of the resistor R3 is connected to the collector electrode of the triode Q3, the emitter electrode of the triode Q3 is the negative electrode of the third controllable switch module, and the base electrode of the triode Q3 is the control end of the third controllable switch module.
And the cathode of the current-limiting diode in the fifth current-limiting module is connected to the output end of the third current-limiting module through a resistor R7.
In the fourth current limiting module, the anode of the current limiting diode is connected to one end of a resistor R6, and the other end of the resistor R6 is grounded.
The voltage stabilizing module comprises a resistor R4 and a resistor R5, wherein one end of the resistor R4 is connected to the plugging output end USBON, the other end of the resistor R4 is connected to the control end of the third controllable switch module and one end of the resistor R5, and the other end of the resistor R5 is grounded.
Finally, it is noted that the above embodiments are only for illustrating the technical solution of the present utility model and not for limiting the same, and although the present utility model has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the technical solution of the present utility model, which is intended to be covered by the scope of the claims of the present utility model.