SUMMERY OF THE UTILITY MODEL
The to-be-solved technical problem of the utility model is to provide a can show, set for and exceed waiting of rated current number of times and awaken up counter of demonstration detected voltage or electric current.
For realizing the purpose of the utility model, the utility model adopts the following technical scheme:
a counter to be awakened capable of displaying detected voltage or current comprises a power supply circuit, an MCU circuit, a current and voltage detection circuit, a setting circuit, a serial port communication circuit, a display circuit and an alarm circuit, wherein the MCU circuit adopts an HY16F188 control chip, and an AD module is integrated in the HY16F188 control chip; the power supply circuit comprises an LM1117-3.3 voltage stabilizer and is used for converting an external 5V power supply into a 3.3V working power supply and supplying power to the HY16F188 control chip; the display circuit adopts an LED digital display screen, and the LED digital display screen is connected with a first output end of the HY16F188 control chip; the serial port communication circuit comprises a UART interface, and a serial port communication end of the HY16F188 control chip is connected with the UART interface;
the current and voltage detection circuit comprises a first triode, a second triode, a first resistor, a second resistor and a third resistor, wherein a voltage detection end of an external electronic product to be detected is respectively connected with an emitting electrode of the first triode, one end of the second resistor and a first AI port of the HY16F188 control chip through the first resistor, a base electrode of the first triode is respectively connected with a collecting electrode of the first triode, a collecting electrode of the second triode and a base electrode of the second triode, an emitting electrode of the second triode is connected with the other end of the second resistor, a current end of the external electronic product to be detected is respectively connected with one end of the third resistor and a second AI port of the HY16F188 control chip, and the other end of the third resistor and a third AI port of the HY16F188 control chip are grounded;
the setting circuit comprises a first key and a second key, and the first key and the second key are respectively connected with the input end of the HY16F188 control chip; alarm circuit includes two way alarm unit, every way alarm unit all includes fourth resistance, opto-isolator and alarm device, HY16F188 control chip's second output passes through the fourth resistance with an input of opto-isolator links to each other, another input ground connection of opto-isolator, the output of opto-isolator with alarm device links to each other.
The counter to be awakened capable of displaying the detection voltage or current converts an analog voltage or current signal into a digital signal by using an AD (analog-to-digital) module in the MCU circuit, records a signal exceeding a set rated current through data processing, and can record the change of the working state of a product more visually; meanwhile, the digital tube display screen and the UART interface are used for outputting, the change can be monitored in real time, a time axis serial port is added for printing and outputting, and data of each time point in the monitoring process can be analyzed.
Detailed Description
In order to facilitate understanding of the present invention, the present invention will be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. The invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all 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. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. In the description of the present invention, "a plurality" means at least one, e.g., one, two, etc., unless specifically limited otherwise.
Referring to fig. 1, the present embodiment provides a to-be-awakened counter capable of displaying detected voltage or current, including a power circuit, an MCU circuit, a current-voltage detection circuit, a setting circuit, a serial communication circuit, a display circuit, and an alarm circuit, where the MCU circuit adopts an HY16F188 control chip U6 as a model, and an HY16F188 control chip U6 is internally integrated with an AD module; the power supply circuit comprises an LM1117-3.3 low-dropout linear regulator U4 and is used for converting an external 5V power supply into a 3.3V working power supply and supplying power to an HY16F188 control chip U6; the display circuit adopts an LED digital display screen U1, and the LED digital display screen U1 is connected with the first output ends (P1.0-P1.7 and P2.0-P2.3) of an HY16F188 control chip U6; the serial communication circuit comprises a UART interface J1, and the HY16F188 control chip U6 has serial communication ends (P2.4 and P2.5) connected with the UART interface J1.
The current and voltage detection circuit comprises a first triode Q1, a second triode Q2, a first resistor R1, a second resistor R2 and a third resistor R10, wherein a voltage detection end of an external electronic product to be tested is respectively connected with an emitter of the first triode Q1, one end of the second resistor R2 and a first AI port (AI2) of an HY16F188 control chip U6 through the first resistor R1, a base of the first triode Q1 is respectively connected with a collector of the first triode Q1, a collector of the second triode Q2 and a base of the second triode Q2, an emitter of the second triode Q2 is connected with the other end of the second resistor R2, a current end of the external electronic product to be tested is respectively connected with one end of the third resistor R10 and a second AI port (AI1) of the HY16F188 control chip U6, and the other end of the third resistor R10 and a third AI port (AI0) of the HY16F188 control chip U6 are grounded.
The setting circuit comprises a first key S1 and a second key S2, wherein the first key S1 and the second key S2 are respectively connected with input ends (P3.2 and P3.3) of a HY16F188 control chip U6; the alarm circuit comprises two alarm units, each alarm unit comprises a fourth resistor (R11 and R21), an optical coupler isolator (U2 and U3) and an alarm device (J3 and J4), the second output end of the HY16F188 control chip U6 is connected with one input end of the optical coupler isolator through the fourth resistor, the other input end of the optical coupler isolator is grounded, and the output end of the optical coupler isolator is connected with a component device. Specifically, the alarm device may be an LED lamp or a buzzer.
In the embodiment, referring to fig. 1, an external electronic product to be measured is connected through a J2 socket, wherein a 1-pin connection of the J2 socket is used for measuring voltage, voltage division is performed through R1 and R2, Q1 and Q2 function like a transient voltage suppression diode to protect a circuit, a 2-pin connection is used for measuring current, R10 is a 4.7R precision resistor, and the current passing through R10 can be measured to be accurate to 1 uA. Analog voltage or current signal detected by the current and voltage detection circuit is converted into digital signal by an AD module in an HY16F188 control chip U6, and the digital signal exceeding the set rated current is recorded by data processing and is used for controlling an LED digital display screen U1 to correspondingly display the detected current, voltage and count value. Of course, the UART interface can also be directly used for outputting the data, and long-term data tracking can be achieved on the aging test product.
Meanwhile, the circuit also comprises a setting circuit and an alarm circuit, wherein the setting circuit can correspondingly set current and voltage alarm gears through a key S1 and a key S2 and can clear the count value; the alarm circuit is used for alarming current/voltage signals reaching a set value in detection, and particularly comprises two alarm units, the two alarm units can be used for setting two-gear current or voltage alarm signal prompts, and products with interval values or multiple-gear requirements can be counted separately. In which, referring to fig. 1, the optical couplers U2 and U3 in each alarm unit play a role of isolation.
The counter to be awakened, which is capable of displaying the detected voltage or current, converts the analog voltage or current signal into a digital signal by using an AD module in the MCU circuit, records a signal exceeding a set rated current through data processing, and can record the change of the operating state of the product more intuitively; meanwhile, the digital tube display screen and the UART interface are used for outputting, the change can be monitored in real time, a time axis serial port is added for printing and outputting, and data of each time point in the monitoring process can be analyzed.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only represent some embodiments of the present invention, and the description thereof is specific and detailed, but not to be construed as limiting the scope of the present invention. It should be noted that, for those skilled in the art, without departing from the spirit of the present invention, several variations and modifications can be made, which are within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.