CN117032014A - Communication port multiplexing control circuit, control method and flashlight - Google Patents

Communication port multiplexing control circuit, control method and flashlight Download PDF

Info

Publication number
CN117032014A
CN117032014A CN202310898428.1A CN202310898428A CN117032014A CN 117032014 A CN117032014 A CN 117032014A CN 202310898428 A CN202310898428 A CN 202310898428A CN 117032014 A CN117032014 A CN 117032014A
Authority
CN
China
Prior art keywords
module
port
resistor
control module
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310898428.1A
Other languages
Chinese (zh)
Inventor
张文强
欧阳正良
袁小平
黄柳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Longtech Smart Control Co ltd
Original Assignee
Shenzhen Longtech Smart Control Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Longtech Smart Control Co ltd filed Critical Shenzhen Longtech Smart Control Co ltd
Priority to CN202310898428.1A priority Critical patent/CN117032014A/en
Publication of CN117032014A publication Critical patent/CN117032014A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a communication port multiplexing control circuit, a control method and a flashlight, wherein the communication port multiplexing control circuit comprises the following components: the device comprises a control module, a temperature detection module, an electric quantity detection module, a first output module and a second output module; the first port of the control module is connected with one end of the temperature detection module and one end of the electric quantity detection module respectively, the second port of the control module is connected with the other end of the temperature detection module and the first output module respectively, and the third port of the control module is connected with the other end of the electric quantity detection module and the second output module respectively so as to realize double-input analog-digital detection through three ports and double-output driving, and further solve the problem that IO ports are insufficient.

Description

Communication port multiplexing control circuit, control method and flashlight
Technical Field
The invention relates to the technical field of circuits, in particular to a communication port multiplexing control circuit, a control method and a flashlight.
Background
Many products in the market are controlled by a micro control unit chip (Microcontroller Unit; MCU), but sometimes pins of the chip are insufficient, and more MCU with pins often have to be selected to meet the functional requirements of the product. As in some circuits requiring Analog-to-digital (AD) function detection and Output control, input/Output (IO) is not a very troublesome task, and more MCUs of the IO ports have to be selected or designed with other brand models.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention aims to provide a communication port multiplexing control circuit, a control method and a flashlight, so as to solve the problem that the IO port is not enough when analog-to-digital detection and output control are required in the prior art.
The technical scheme of the invention is as follows:
a communication port multiplexing control circuit, comprising: the device comprises a control module, a temperature detection module, an electric quantity detection module, a first output module and a second output module;
the first port of the control module is respectively connected with one end of the temperature detection module and one end of the electric quantity detection module, and is used for providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a first level and stopping providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a second level;
the second port of the control module is respectively connected with the other end of the temperature detection module and the first output module and is used for acquiring battery temperature data when the first port outputs a first level; and outputting a first driving signal to the first output module when the first port outputs the second level;
the third port of the control module is respectively connected with the other end of the electric quantity detection module and the second output module, and is used for acquiring electric quantity data when the first port outputs a first level and outputting a second driving signal to the second output module when the first port outputs a second level.
According to the further arrangement of the invention, the temperature detection module comprises a first resistor and a temperature-sensitive resistor;
one end of the first resistor is connected with the first port, the other end of the first resistor is connected with one end of the temperature-sensitive resistor and the second port respectively, and the other end of the temperature-sensitive resistor is grounded.
The invention further provides that the electric quantity measuring module comprises a first triode, a first field effect transistor, a second resistor and a third resistor;
the base of the first triode is connected with a first port, the emitter of the first triode is grounded, the collector of the first triode is connected with the grid of the first field effect tube, the drain electrode of the first field effect tube is connected with battery voltage, the source electrode of the first field effect tube is connected with one end of the second resistor, the other end of the second resistor is respectively connected with one end of the third resistor and the third port, and the other end of the third resistor is grounded.
According to a further arrangement of the invention, the first output module comprises a first light emitting diode and a fourth resistor;
the positive pole of first emitting diode is connected with the second port, the negative pole of first emitting diode is connected with one end of fourth resistance, the other end ground connection of fourth resistance.
According to a further arrangement of the invention, the second output module comprises a second light emitting diode and a fifth resistor;
the positive pole of second emitting diode is connected with the third port, the negative pole of second emitting diode is connected with the one end of fifth resistance, the other end ground connection of fifth resistance.
The invention also provides a flashlight, which comprises the communication port multiplexing control circuit, a switch module, an illumination driving module, a voltage stabilizing module and a charging module;
the switch module is connected with the control module and is used for outputting a switch signal to the control module;
the illumination driving module is connected with the control module and is used for illuminating when the control module receives the switch signal;
the voltage stabilizing module is connected with the power supply voltage and the battery voltage respectively, is connected with the control module, and is used for stabilizing the power supply voltage or the battery voltage and outputting the power supply voltage or the battery voltage to the control module;
the charging module is connected with the control module and the battery and is used for controlling the charging current of the battery.
The invention further provides a main board temperature measuring module;
the main board temperature measurement module is respectively connected with the first port and the control module and is used for detecting the temperature of the main board when the first port outputs a first level and transmitting the temperature output to the control module.
The invention further provides that the illumination driving module comprises a driving unit and an illumination unit;
the driving unit is respectively connected with the control module and the lighting unit and is used for controlling the brightness of the lighting unit according to the pulse signals output by the control module.
The voltage stabilizing module comprises a first diode, a second field effect transistor, a sixth resistor and a voltage stabilizer;
the anode of the first diode is connected with a power supply voltage, and the cathode of the first diode is connected with the input end of the voltage stabilizer;
the grid electrode of the second field effect tube is connected with a power supply voltage, the drain electrode of the second field effect tube is connected with a battery voltage, and the source electrode of the second field effect tube is connected with the input end of the voltage stabilizer;
one end of the sixth resistor is connected with the grid electrode of the second field effect transistor, and the other end of the sixth resistor is grounded;
the grounding end of the voltage stabilizer is grounded, and the output end of the voltage stabilizer is connected with the control module.
The invention also provides a control method based on the communication port multiplexing control circuit, which comprises the following steps:
providing driving voltages for the temperature detection module and the electric quantity detection module when a first level is output through a first port of the control module, and stopping providing driving voltages for the temperature detection module and the electric quantity detection module when a second level is output;
acquiring temperature data through a second port of the control module when the first port of the control module outputs a first level, and outputting a first driving signal to the first output module when the first port outputs a second level;
and acquiring electric quantity through a third port of the control module when the first port of the control module outputs the first level, and outputting a second driving signal to the second output module when the first port outputs the second level.
The invention provides a communication port multiplexing control circuit, a control method and a flashlight, wherein the communication port multiplexing control circuit comprises the following components: the device comprises a control module, a temperature detection module, an electric quantity detection module, a first output module and a second output module; the first port of the control module is respectively connected with one end of the temperature detection module and one end of the electric quantity detection module, and is used for providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a first level and stopping providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a second level; the second port of the control module is respectively connected with the other end of the temperature detection module and the first output module and is used for acquiring battery temperature data when the first port outputs a first level; and outputting a first driving signal to the first output module when the first port outputs the second level; the third port of the control module is respectively connected with the other end of the electric quantity detection module and the second output module, and is used for acquiring electric quantity data when the first port outputs a first level and outputting a second driving signal to the second output module when the first port outputs a second level. According to the invention, when the first port provides driving voltage for the electric quantity detection module and the temperature detection module, the second port and the third port acquire temperature data and electric quantity data, and when the first port does not provide driving voltage, the second port and the third port serve as outputs and output driving signals to the first output module and the second output module, so that double-input analog-digital detection and double-output driving are realized through the three ports, and the problem of insufficient IO ports is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained from the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of the configuration of a communication port multiplexing control circuit in the present invention.
Fig. 2 is a circuit diagram of the power detection module and the temperature detection module in the present invention.
Fig. 3 is a circuit diagram of a first output module and a second output module in the present invention.
Fig. 4 is a schematic diagram of a flashlight of the present invention.
Fig. 5 is a circuit diagram of a control module and a switch module in the present invention.
Fig. 6 is a circuit diagram of a charging interface and a charging module according to the present invention.
Fig. 7 is a circuit diagram of a voltage regulator module according to the present invention.
Fig. 8 is a circuit diagram of an illumination driving module in the present invention.
Fig. 9 is a flowchart of a control method in the present invention.
Detailed Description
The invention provides a communication port multiplexing control circuit, a control method and a flashlight, which are used for making the purposes, technical schemes and effects of the invention clearer and more definite, and the invention is further described in detail below by referring to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the description and claims, unless the context specifically defines the terms "a," "an," "the," and "the" include plural referents. If there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Referring to fig. 1 to 3, the present invention provides a preferred embodiment of a communication port multiplexing control circuit.
As shown in fig. 1, the present invention provides a communication port multiplexing control circuit including: the device comprises a control module 100, a temperature detection module 200, an electric quantity detection module 300, a first output module 400 and a second output module 500; the first port P1 of the control module 100 is connected to one end of the temperature detection module 200 and one end of the power detection module 300, respectively, and is configured to provide a driving voltage to the temperature detection module 200 and the power detection module 300 when the first port P1 outputs a first level, and stop providing the driving voltage to the temperature detection module 200 and the power detection module 300 when the first port P1 outputs a second level; the second port P2 of the control module 100 is respectively connected to the other end of the temperature detection module 200 and the first output module 400, and is configured to obtain battery temperature data when the first port P1 outputs a first level; and outputs a first driving signal to the first output module 400 when the first port P1 outputs the second level; the third port P3 of the control module 100 is respectively connected to the other end of the power detection module 300 and the second output module 500, and is configured to obtain power data when the first port P1 outputs the first level, and output a second driving signal to the second output module 500 when the first port P1 outputs the second level.
Specifically, when the first port P1 outputs the first level, the second port P2 of the control module 100 and the third port P3 of the control module 100 are set to be in an input mode, and two analog-digital signals, that is, the battery temperature and the battery power, are detected through the second port P2 and the third port P3, respectively. When the first port P1 outputs the second level, on one hand, power supply to the temperature detection module 200 and the power detection module 300 is stopped to achieve the purpose of saving power, on the other hand, the second port P2 and the third port P3 are controlled to be converted into output modes, so that the second port P2 and the third port P3 stop detection, and simultaneously, a first driving signal is respectively output to the first output module 400 and a second driving signal is output to the second output module 500, thereby realizing dual-input analog-digital detection and dual-output driving through three ports, and further solving the problem that the IO port is not enough.
In one embodiment, as shown in fig. 2, the temperature detection module 200 includes a first resistor R1 and a temperature sensitive resistor Rx; one end of the first resistor R1 is connected with the first port P1, the other end of the first resistor R1 is respectively connected with one end of the temperature-sensitive resistor Rx and the second port P2, and the other end of the temperature-sensitive resistor Rx is grounded.
Specifically, the first level is a high level, the temperature-sensitive resistor Rx is disposed near the battery, when the first port P1 of the control module 100 outputs the first level, the first resistor R1 and the temperature-sensitive resistor Rx are powered, the voltage of the temperature-sensitive resistor Rx follows the resistance value of the temperature-sensitive resistor Rx, and the resistance value of the temperature-sensitive resistor Rx follows the temperature change of the battery, so that the second port P2 of the control module 100 is connected with one end of the temperature-sensitive resistor Rx to detect the temperature of the battery by detecting the voltage of the temperature-sensitive resistor Rx.
In one embodiment, as shown in fig. 2, the power measurement module includes a first triode K1, a first field effect transistor Q1, a second resistor R2, and a third resistor R3; the base of first triode K1 is connected with first port P1, the projecting pole ground connection of first triode K1, first triode K1's collecting electrode with first field effect transistor Q1's grid is connected, battery voltage B+ is inserted to first field effect transistor Q1's drain electrode, first field effect transistor Q1's source electrode with the one end of second resistance R2 is connected, the other end of second resistance R2 respectively with third resistance R3's one end and third port P3 are connected, third resistance R3's the other end ground connection.
Specifically, the first level is a high level, and the second level is a low level. When the first port P1 of the control module 100 outputs the first level, the voltage between the base of the first triode K1 and the emitter of the first triode K1 is greater than zero, so that the first triode K1 is turned on, and when the first triode K1 is turned on, the gate of the first field effect transistor Q1 is turned on due to the bias voltage, so that the second resistor R2 and the third resistor R3 divide the battery voltage b+. The third port P3 can detect the electric quantity of the battery at the current time by detecting the voltage value of the third resistor R3.
In one embodiment, as shown in fig. 3, the first output module 400 includes a first light emitting diode LED1 and a fourth resistor R4; the positive pole of first emitting diode LED1 is connected with second port P2, the negative pole of first emitting diode LED1 is connected with the one end of fourth resistance R4, the other end ground connection of fourth resistance R4.
Specifically, when the first port P1 of the control module 100 is at the second level, the control module 100 controls the second port P2 to switch to the output mode, and simultaneously makes the second port P2 output the first driving signal to the first light emitting diode LED1, so that the first light emitting diode LED1 performs the light emitting display. The display of the red light may be performed when the battery temperature reaches a high temperature, or the display may be performed when the electric quantity is too low, and the display is not particularly limited.
In one embodiment, as shown in fig. 3, the second output module 500 includes a second light emitting diode LED2 and a fifth resistor R5; the positive pole of the second light emitting diode LED2 is connected to the third port P3, the negative pole of the second light emitting diode LED2 is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is grounded.
Specifically, when the first port P1 of the control module 100 is at the second level, the control module 100 controls the third port P3 to switch to the output mode, and simultaneously makes the third port P3 output the first driving signal to the first light emitting diode LED1, so that the second light emitting diode LED2 performs the light emitting display. The display of the blue lamp may be performed when the battery temperature reaches a high temperature, or the display may be performed when the electric quantity is too low, and the display is not particularly limited.
The invention also provides a flashlight, as shown in fig. 4, which comprises the communication port multiplexing control circuit, a switch module 600, a lighting driving module 700, a voltage stabilizing module 800 and a charging module 900; the switch module 600 is connected to the control module 100, and is configured to output a switch signal to the control module 100; the illumination driving module 700 is connected to the control module 100, and is configured to illuminate when the control module 100 receives the switch signal; the voltage stabilizing module 800 is connected to the supply voltage VBUS and the battery voltage b+ respectively, and is connected to the control module 100, and is configured to stabilize the supply voltage VBUS or the battery voltage b+ and output the regulated supply voltage VBUS or the battery voltage b+ to the control module 100; the charging module 900 is connected to the control module 100 and the battery, and is used for controlling the charging current of the battery.
Specifically, as shown in fig. 4 to 6, when the switch SW1 in the switch module 600 is pressed, a switch signal is output to the control module 100, and the control module 100 controls the illumination driving module 700 to illuminate according to the switch signal, so as to implement an illumination function. Meanwhile, the voltage stabilizing module 800 is respectively connected with the battery and the charging interface, so as to stabilize the supply voltage VBUS output by the charging interface or the battery voltage b+ output by the battery, so as to provide two supply modes for supplying power to the control module 100, and the charging module 900 controls the battery current, so that when the electric quantity is too low, a small current is output, and the purpose of saving electricity and continuing voyage is achieved.
In one embodiment, as shown in fig. 6 and 7, the voltage stabilizing module 800 includes a first diode D1, a second field effect transistor Q2, a sixth resistor R6, and a voltage stabilizer U1; the anode of the first diode D1 is connected with a supply voltage VBUS, and the cathode of the first diode D1 is connected with the input end of the voltage stabilizer U1; the grid electrode of the first field effect tube Q1 is connected with a supply voltage VBUS, the drain electrode of the first field effect tube Q1 is connected with a battery voltage B+, and the source electrode of the first field effect tube Q1 is connected with the input end of the voltage stabilizer U1; one end of the sixth resistor R6 is connected with the grid electrode of the first field effect tube Q1, and the other end of the sixth resistor R6 is grounded; the ground of the voltage regulator U1 is grounded, and the output end of the voltage regulator U1 is connected with the control module 100.
Specifically, when the supply voltage VBUS is output from the charging interface, the first diode D1 is turned on, and at this time, whether the battery voltage b+ is connected or not, the first field effect transistor Q1 is turned off due to the supply voltage VBUS being connected to the gate, and the voltage regulator is configured to regulate the supply voltage VBUS, so as to provide the control module 100 with the stable supply voltage VCC. When the battery outputs the battery voltage b+ and no charging interface outputs the supply voltage VBUS, the first fet Q1 is turned on due to the bias voltage obtained by the gate, and the voltage regulator stabilizes the battery voltage b+ to provide a stable supply voltage VCC for the control module 100.
In one embodiment, as shown in FIG. 4, the flashlight further includes a motherboard temperature sensing module 10; the motherboard temperature measurement module 10 is respectively connected to the first port P1 and the control module 100, and is configured to detect a temperature of the motherboard when the first port P1 outputs a first level, and transmit the temperature output to the control module 100.
Specifically, the first level is a high level, and when the first port P1 outputs the first level, the control module 100 detects the temperature of the main board by detecting the voltage of the main board temperature sensing module 10.
In one embodiment, as shown in fig. 8, the lighting driving module 700 includes a driving unit 710 and a lighting unit 720; the driving unit 710 is connected to the control module 100 and the lighting unit 720, respectively, and is configured to control the brightness of the lighting unit 720 according to the pulse signal PWM output by the control module 100.
Specifically, the lighting unit 720 includes a plurality of light emitting diodes LEDx, and a plurality of light emitting diodes LEDx are serially connected in sequence. The driving unit 710 includes a dimming chip U2, an input end of the dimming chip is connected to the control module 100, an output end of the dimming chip is connected to an anode of the light emitting diode LEDx at the head, and a feedback end of the dimming chip is connected to a cathode of the light emitting diode LEDx at the tail. When the control module 100 outputs a pulse signal, the dimming chip controls the brightness variation of the light emitting diode LEDx according to the pulse signal.
As shown in fig. 9, the present invention further provides a control method based on a communication port multiplexing control circuit, including:
and S100, providing driving voltage for the temperature detection module and the electric quantity detection module when a first level is output through a first port of the control module, and stopping providing driving voltage for the temperature detection module and the electric quantity detection module when a second level is output.
S200, acquiring temperature data through a second port of the control module when the first port of the control module outputs a first level, and outputting a first driving signal to the first output module when the first port outputs a second level.
S300, acquiring electric quantity through a third port of the control module when the first port of the control module outputs a first level, and outputting a second driving signal to the second output module when the first port outputs a second level.
In summary, the present invention provides a communication port multiplexing control circuit, a control method and a flashlight, where the communication port multiplexing control circuit includes: the device comprises a control module, a temperature detection module, an electric quantity detection module, a first output module and a second output module; the first port of the control module is respectively connected with one end of the temperature detection module and one end of the electric quantity detection module, and is used for providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a first level and stopping providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a second level; the second port of the control module is respectively connected with the other end of the temperature detection module and the first output module and is used for acquiring battery temperature data when the first port outputs a first level; and outputting a first driving signal to the first output module when the first port outputs the second level; the third port of the control module is respectively connected with the other end of the electric quantity detection module and the second output module, and is used for acquiring electric quantity data when the first port outputs a first level and outputting a second driving signal to the second output module when the first port outputs a second level. According to the invention, when the first port provides driving voltage for the electric quantity detection module and the temperature detection module, the second port and the third port acquire temperature data and electric quantity data, and when the first port does not provide driving voltage, the second port and the third port serve as outputs and output driving signals to the first output module and the second output module, so that double-input analog-digital detection and double-output driving are realized through the three ports, and the problem of insufficient IO ports is solved.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (10)

1. A communication port multiplexing control circuit, comprising: the device comprises a control module, a temperature detection module, an electric quantity detection module, a first output module and a second output module;
the first port of the control module is respectively connected with one end of the temperature detection module and one end of the electric quantity detection module, and is used for providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a first level and stopping providing driving voltage for the temperature detection module and the electric quantity detection module when the first port outputs a second level;
the second port of the control module is respectively connected with the other end of the temperature detection module and the first output module and is used for acquiring battery temperature data when the first port outputs a first level; and outputting a first driving signal to the first output module when the first port outputs the second level;
the third port of the control module is respectively connected with the other end of the electric quantity detection module and the second output module, and is used for acquiring electric quantity data when the first port outputs a first level and outputting a second driving signal to the second output module when the first port outputs a second level.
2. The communication port multiplexing control circuit of claim 1, wherein the temperature detection module comprises a first resistor and a temperature sensitive resistor;
one end of the first resistor is connected with the first port, the other end of the first resistor is connected with one end of the temperature-sensitive resistor and the second port respectively, and the other end of the temperature-sensitive resistor is grounded.
3. The communication port multiplexing control circuit of claim 1, wherein the power measurement module comprises a first transistor, a first field effect transistor, a second resistor, and a third resistor;
the base of the first triode is connected with a first port, the emitter of the first triode is grounded, the collector of the first triode is connected with the grid of the first field effect tube, the drain electrode of the first field effect tube is connected with battery voltage, the source electrode of the first field effect tube is connected with one end of the second resistor, the other end of the second resistor is respectively connected with one end of the third resistor and the third port, and the other end of the third resistor is grounded.
4. The communication port multiplexing control circuit of claim 1, wherein the first output module comprises a first light emitting diode and a fourth resistor;
the positive pole of first emitting diode is connected with the second port, the negative pole of first emitting diode is connected with one end of fourth resistance, the other end ground connection of fourth resistance.
5. The communication port multiplexing control circuit of claim 1, wherein the second output module comprises a second light emitting diode and a fifth resistor;
the positive pole of second emitting diode is connected with the third port, the negative pole of second emitting diode is connected with the one end of fifth resistance, the other end ground connection of fifth resistance.
6. A flashlight, comprising the communication port multiplexing control circuit according to any one of claims 1-5, and further comprising a switch module, a lighting driving module, a voltage stabilizing module, and a charging module;
the switch module is connected with the control module and is used for outputting a switch signal to the control module;
the illumination driving module is connected with the control module and is used for illuminating when the control module receives the switch signal;
the voltage stabilizing module is connected with the power supply voltage and the battery voltage respectively, is connected with the control module, and is used for stabilizing the power supply voltage or the battery voltage and outputting the power supply voltage or the battery voltage to the control module;
the charging module is connected with the control module and the battery and is used for controlling the charging current of the battery.
7. The flashlight of claim 6, further comprising a motherboard temperature measurement module;
the main board temperature measurement module is respectively connected with the first port and the control module and is used for detecting the temperature of the main board when the first port outputs a first level and transmitting the temperature output to the control module.
8. The flashlight of claim 6, wherein the illumination drive module comprises a drive unit and an illumination unit;
the driving unit is respectively connected with the control module and the lighting unit and is used for controlling the brightness of the lighting unit according to the pulse signals output by the control module.
9. The flashlight of claim 6, wherein the voltage regulator module comprises a first diode, a second field effect transistor, a sixth resistor, and a voltage regulator;
the anode of the first diode is connected with a power supply voltage, and the cathode of the first diode is connected with the input end of the voltage stabilizer;
the grid electrode of the second field effect tube is connected with a power supply voltage, the drain electrode of the second field effect tube is connected with a battery voltage, and the source electrode of the second field effect tube is connected with the input end of the voltage stabilizer;
one end of the sixth resistor is connected with the grid electrode of the second field effect transistor, and the other end of the sixth resistor is grounded;
the grounding end of the voltage stabilizer is grounded, and the output end of the voltage stabilizer is connected with the control module.
10. A control method based on the communication port multiplexing control circuit according to any one of claims 1 to 5, characterized by comprising:
providing driving voltages for the temperature detection module and the electric quantity detection module when a first level is output through a first port of the control module, and stopping providing driving voltages for the temperature detection module and the electric quantity detection module when a second level is output;
acquiring temperature data through a second port of the control module when the first port of the control module outputs a first level, and outputting a first driving signal to the first output module when the first port outputs a second level;
and acquiring electric quantity through a third port of the control module when the first port of the control module outputs the first level, and outputting a second driving signal to the second output module when the first port outputs the second level.
CN202310898428.1A 2023-07-20 2023-07-20 Communication port multiplexing control circuit, control method and flashlight Pending CN117032014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310898428.1A CN117032014A (en) 2023-07-20 2023-07-20 Communication port multiplexing control circuit, control method and flashlight

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310898428.1A CN117032014A (en) 2023-07-20 2023-07-20 Communication port multiplexing control circuit, control method and flashlight

Publications (1)

Publication Number Publication Date
CN117032014A true CN117032014A (en) 2023-11-10

Family

ID=88628910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310898428.1A Pending CN117032014A (en) 2023-07-20 2023-07-20 Communication port multiplexing control circuit, control method and flashlight

Country Status (1)

Country Link
CN (1) CN117032014A (en)

Similar Documents

Publication Publication Date Title
US6538394B2 (en) Current source methods and apparatus for light emitting diodes
CN105960056B (en) Power subsystem and related lighting system
US8900134B2 (en) Endoscope apparatus and method of controlling endoscope apparatus
US7408384B2 (en) Drive circuit of computer system for driving a mode indicator
TW200829082A (en) LED driving circuit
CN103561527B (en) A kind of dual-function LED drive circuit
CN105163426A (en) Programming setting circuit used for setting output parameters of LED driving power supply
US7956824B2 (en) Light emitting element driver device
US20060139064A1 (en) Drive circuit of computer system for driving a mode indicator
CN117032014A (en) Communication port multiplexing control circuit, control method and flashlight
CN102364569A (en) Linear constant-current driving control circuit and light emitting diode (LED) display thereof
CN109587883B (en) Light source self-adapting device and system of light emitting diode
TWI540419B (en) Electronic device
CN110323941A (en) Low-power consumption standby circuit
CN109996378B (en) Control circuit and control method
US20240023843A1 (en) Vital-sign sensors
CN214586884U (en) Integrated expansion board based on raspberry group
CN112385316A (en) Lighting circuit and vehicle lamp
TW201342992A (en) Constant current drive circuit for LED
TWI493822B (en) Current dividing circuit
TWI288323B (en) Computer status indicator circuit and computer system having the circuit therein
CN214125579U (en) LED amplifying unit and dimming drive circuit comprising same
CN212086532U (en) LED control circuit of multiplexed output
US20210337644A1 (en) Light emitting device and light generating method
TWM376097U (en) Lightness adjustment circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination