CN218546859U - Current and voltage acquisition device and acquisition system - Google Patents
Current and voltage acquisition device and acquisition system Download PDFInfo
- Publication number
- CN218546859U CN218546859U CN202221627797.4U CN202221627797U CN218546859U CN 218546859 U CN218546859 U CN 218546859U CN 202221627797 U CN202221627797 U CN 202221627797U CN 218546859 U CN218546859 U CN 218546859U
- Authority
- CN
- China
- Prior art keywords
- resistor
- circuit
- analog
- voltage
- current
- 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.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 52
- 238000004891 communication Methods 0.000 claims abstract description 38
- 239000003990 capacitor Substances 0.000 claims description 48
- 239000013078 crystal Substances 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 3
- 239000003381 stabilizer Substances 0.000 claims 7
- 238000010586 diagram Methods 0.000 description 8
- 238000000034 method Methods 0.000 description 7
- 230000000737 periodic effect Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 238000003306 harvesting Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
本实用新型公开了一种电流及电压采集装置以及采集系统,本实用新型通过电源模块与主控模块、霍尔电流传感电路、模数转换电路以及串口通信电路连接,模数转换电路与主控模块、霍尔电流传感电路以及模拟电压输入电路连接,串口通信电路与主控模块连接;串口通信电路用于与上位机连接,霍尔电流传感电路用于采集外部电流,模拟电压输入电路用于采集外部电压,当用户需要采集电流和电压时,可以通过上位机发出采集指令并通过串口通信电路传输至主控模块,使得主控模块控制模数转换电路以获取霍尔电流传感电路以及模拟电压输入电路采集的数据,采集的数据通过串口通信电路传输至上位机进行显示,实现远程采集,提高效率,可广泛应用于电子电路领域。
The utility model discloses a current and voltage acquisition device and an acquisition system. The utility model is connected with a main control module, a Hall current sensing circuit, an analog-to-digital conversion circuit and a serial port communication circuit through a power supply module, and the analog-to-digital conversion circuit is connected to the main The control module, Hall current sensing circuit and analog voltage input circuit are connected, the serial port communication circuit is connected with the main control module; the serial port communication circuit is used to connect with the host computer, the Hall current sensing circuit is used to collect external current, and the analog voltage input The circuit is used to collect external voltage. When the user needs to collect current and voltage, the user can issue a collection command through the host computer and transmit it to the main control module through the serial port communication circuit, so that the main control module controls the analog-to-digital conversion circuit to obtain the Hall current sensor. The data collected by the circuit and the analog voltage input circuit are transmitted to the host computer for display through the serial port communication circuit, realizing remote collection and improving efficiency, and can be widely used in the field of electronic circuits.
Description
技术领域technical field
本实用新型涉及电子电路技术领域,尤其是一种电流及电压采集装置以及采集系统。The utility model relates to the technical field of electronic circuits, in particular to a current and voltage acquisition device and an acquisition system.
背景技术Background technique
随着科学技术的发展,电子设备以及电子电路技术的取得了飞速的发展,电子设备、电子电路应用于各行各业,电子设备、电子电路的数量也逐渐增多。在实际应用中,为了保证电子设备、电子电路等正常运行,通常需要用户进行监控,例如采集电流、电压等相关参数进行检测以判断工作状态为正常或者异常,而通常在采集相关参数需要到达现场进行获取,而在电子设备数量较多时,效率低,操作麻烦。With the development of science and technology, electronic equipment and electronic circuit technology have achieved rapid development. Electronic equipment and electronic circuits are used in various industries, and the number of electronic equipment and electronic circuits is gradually increasing. In practical applications, in order to ensure the normal operation of electronic equipment, electronic circuits, etc., users usually need to monitor, such as collecting current, voltage and other related parameters to detect whether the working status is normal or abnormal. However, when the number of electronic devices is large, the efficiency is low and the operation is cumbersome.
实用新型内容Utility model content
为解决上述技术问题,本实用新型的目的在于:提供一种电流及电压采集装置以及采集系统。In order to solve the above technical problems, the purpose of this utility model is to provide a current and voltage acquisition device and an acquisition system.
本实用新型所采取的技术方案是:The technical scheme that the utility model takes is:
一种电流及电压采集装置,包括电源模块、主控模块、模数转换电路、霍尔电流传感电路、模拟电压输入电路以及串口通信电路;所述电源模块与所述主控模块、所述霍尔电流传感电路、所述模数转换电路以及所述串口通信电路连接,所述模数转换电路与所述主控模块、所述霍尔电流传感电路以及所述模拟电压输入电路连接,所述串口通信电路与所述主控模块连接;所述串口通信电路用于与上位机连接,所述霍尔电流传感电路用于采集外部电流,所述模拟电压输入电路用于采集外部电压。A current and voltage acquisition device, including a power module, a main control module, an analog-to-digital conversion circuit, a Hall current sensing circuit, an analog voltage input circuit, and a serial port communication circuit; the power module and the main control module, the The Hall current sensing circuit, the analog-to-digital conversion circuit and the serial port communication circuit are connected, and the analog-to-digital conversion circuit is connected to the main control module, the Hall current sensing circuit and the analog voltage input circuit , the serial port communication circuit is connected to the main control module; the serial port communication circuit is used to connect with the upper computer, the Hall current sensing circuit is used to collect external current, and the analog voltage input circuit is used to collect external Voltage.
进一步,所述电源模块包括第一稳压器以及第二稳压器,所述第一稳压器的输入端连接外部电源,所述第一稳压器的输出端连接所述第二稳压器的输入端。Further, the power module includes a first voltage regulator and a second voltage regulator, the input end of the first voltage regulator is connected to an external power supply, and the output end of the first voltage regulator is connected to the second voltage regulator input terminal of the device.
进一步,所述第一稳压器的输出端连接所述霍尔电流传感电路以及所述模数转换电路,所述第二稳压器的输出端连接所述模数转换电路、所述主控模块以及所述串口通信电路。Further, the output terminal of the first voltage regulator is connected to the Hall current sensing circuit and the analog-to-digital conversion circuit, and the output terminal of the second voltage regulator is connected to the analog-to-digital conversion circuit, the main control module and the serial port communication circuit.
进一步,所述霍尔电流传感电路包括霍尔电流传感芯片、第一电容、第二电容、第三电容以及第一电阻,所述霍尔电流传感芯片具有电源端、输出端、过滤端、接地端以及采集外部电流的电流感应端,所述电源端连接所述电源模块以及所述第一电容一端,所述接地端以及所述第一电容另一端接地,所述过滤端通过所述第二电容接地,所述霍尔电流传感芯片的输出端连接所述第一电阻一端,所述第一电阻另一端连接所述第三电容一端以及所述模数转换电路,所述第三电容另一端接地。Further, the Hall current sensing circuit includes a Hall current sensing chip, a first capacitor, a second capacitor, a third capacitor and a first resistor, and the Hall current sensing chip has a power supply terminal, an output terminal, a filter Terminal, ground terminal and current sensing terminal for collecting external current, the power supply terminal is connected to the power module and one terminal of the first capacitor, the ground terminal and the other terminal of the first capacitor are grounded, and the filter terminal passes through the The second capacitor is grounded, the output end of the Hall current sensing chip is connected to one end of the first resistor, the other end of the first resistor is connected to one end of the third capacitor and the analog-to-digital conversion circuit, and the first resistor The other end of the three capacitors is grounded.
进一步,所述模拟电压输入电路包括第二电阻、第三电阻、第四电阻以及第一二极管,所述第二电阻一端采集外部电压,所述第二电阻另一端连接所述第三电阻一端、所述第四电阻一端以及所述第一二极管的负极,所述第三电阻另一端与所述第一二极管的正极连接且接地,所述第四电阻另一端连接所述模数转换电路。Further, the analog voltage input circuit includes a second resistor, a third resistor, a fourth resistor and a first diode, one end of the second resistor collects an external voltage, and the other end of the second resistor is connected to the third resistor One end, one end of the fourth resistor and the negative pole of the first diode, the other end of the third resistor is connected to the positive pole of the first diode and grounded, the other end of the fourth resistor is connected to the Analog-to-digital conversion circuit.
进一步,所述模数转换电路包括模数转换芯片,所述模数转换芯片与所述第四电阻另一端、所述第一电阻另一端以及所述主控模块连接。Further, the analog-to-digital conversion circuit includes an analog-to-digital conversion chip, and the analog-to-digital conversion chip is connected to the other end of the fourth resistor, the other end of the first resistor, and the main control module.
进一步,所述主控模块包括控制器以及辅助电路,所述控制器与所述辅助电路、所述电源模块、所述模数转换电路以及所述串口通信电路连接;所述辅助电路包括晶振电路、复位电路以及调试下载接口。Further, the main control module includes a controller and an auxiliary circuit, the controller is connected to the auxiliary circuit, the power module, the analog-to-digital conversion circuit, and the serial port communication circuit; the auxiliary circuit includes a crystal oscillator circuit , reset circuit and debug download interface.
进一步,所述电流及电压采集装置还包括状态指示电路,所述状态指示电路与所述电源模块以及所述控制器连接。Further, the current and voltage acquisition device further includes a state indicating circuit, and the state indicating circuit is connected with the power module and the controller.
进一步,所述状态指示电路包括第一发光二极管、第二发光二极管、第三发光二极管、第四发光二极管、第五电阻、第六电阻、第七电阻以及第八电阻;所述第五电阻一端连接所述电源模块、所述第六电阻一端、所述第七电阻一端、所述第八电阻一端,所述第五电阻另一端连接所述第四发光二极管的正极,所述第四发光二极管的负极接地,所述第六电阻另一端连接所述第一发光二极管的正极,所述第七电阻另一端连接所述第二发光二极管的正极,所述第八电阻另一端连接所述第三发光二极管的正极,所述第一发光二极管的负极、所述第二发光二极管的负极、所述第三发光二极管的负极分别连接所述控制器的不同输入端。Further, the state indication circuit includes a first light emitting diode, a second light emitting diode, a third light emitting diode, a fourth light emitting diode, a fifth resistor, a sixth resistor, a seventh resistor and an eighth resistor; one end of the fifth resistor Connect the power module, one end of the sixth resistor, one end of the seventh resistor, and one end of the eighth resistor, the other end of the fifth resistor is connected to the anode of the fourth light-emitting diode, and the fourth light-emitting diode The negative pole of the sixth resistor is connected to the ground, the other end of the sixth resistor is connected to the positive pole of the first light-emitting diode, the other end of the seventh resistor is connected to the positive pole of the second light-emitting diode, and the other end of the eighth resistor is connected to the third The positive pole of the light emitting diode, the negative pole of the first light emitting diode, the negative pole of the second light emitting diode, and the negative pole of the third light emitting diode are respectively connected to different input ends of the controller.
本实用新型实施例还提供一种采集系统,包括上位机以及所述电流及电压采集装置。The embodiment of the utility model also provides an acquisition system, including a host computer and the current and voltage acquisition device.
本实用新型的有益效果是:通过电源模块与主控模块、霍尔电流传感电路、模数转换电路以及串口通信电路连接,模数转换电路与主控模块、霍尔电流传感电路以及模拟电压输入电路连接,串口通信电路与主控模块连接;串口通信电路用于与上位机连接,霍尔电流传感电路用于采集外部电流,模拟电压输入电路用于采集外部电压,当用户需要采集电流和电压时,可以通过上位机发出采集指令并通过串口通信电路传输至主控模块,使得主控模块控制模数转换电路以获取霍尔电流传感电路以及模拟电压输入电路采集的数据,主控模块将采集的数据通过串口通信电路传输至上位机进行显示,实现远程采集和监控,方便快捷,提高了效率。The beneficial effects of the utility model are: the power supply module is connected with the main control module, the Hall current sensing circuit, the analog-to-digital conversion circuit and the serial port communication circuit, and the analog-to-digital conversion circuit is connected with the main control module, the Hall current sensing circuit and the analog The voltage input circuit is connected, the serial port communication circuit is connected with the main control module; the serial port communication circuit is used to connect with the host computer, the Hall current sensing circuit is used to collect external current, and the analog voltage input circuit is used to collect external voltage. When the user needs to collect For current and voltage, the acquisition command can be issued by the host computer and transmitted to the main control module through the serial communication circuit, so that the main control module controls the analog-to-digital conversion circuit to obtain the data collected by the Hall current sensing circuit and the analog voltage input circuit. The control module transmits the collected data to the upper computer for display through the serial port communication circuit, realizing remote collection and monitoring, which is convenient and fast, and improves the efficiency.
附图说明Description of drawings
图1为本实用新型具体实施例采集系统的方框示意图;Fig. 1 is the block schematic diagram of the collection system of the specific embodiment of the present utility model;
图2为本实用新型具体实施例电源模块的示意图;Fig. 2 is the schematic diagram of the power supply module of the specific embodiment of the utility model;
图3为本实用新型具体实施例霍尔电流传感电路的示意图;Fig. 3 is the schematic diagram of the Hall current sensing circuit of the specific embodiment of the utility model;
图4为本实用新型具体实施例模拟电压输入电路的示意图;Fig. 4 is the schematic diagram of the analog voltage input circuit of the specific embodiment of the utility model;
图5为本实用新型具体实施例模数转换电路的示意图;Fig. 5 is the schematic diagram of the analog-to-digital conversion circuit of the specific embodiment of the utility model;
图6为本实用新型具体实施例主控模块的示意图;Fig. 6 is the schematic diagram of the main control module of the specific embodiment of the utility model;
图7为本实用新型具体实施例状态指示电路的示意图;7 is a schematic diagram of a state indicating circuit of a specific embodiment of the present invention;
图8为本实用新型具体实施例串口通信电路的示意图。FIG. 8 is a schematic diagram of a serial port communication circuit of a specific embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”等仅用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。The terms "first", "second", "third" and the like in the specification and claims of the present application and the drawings are only used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
下面结合说明书附图和具体实施例对本实用新型作进一步解释和说明。The utility model will be further explained and illustrated below in conjunction with the accompanying drawings and specific embodiments of the specification.
参照图1,本实用新型实施例提供了一种电流及电压采集装置,包括电源模块、主控模块、模数转换电路、霍尔电流传感电路、模拟电压输入电路、串口通信电路以及状态指示电路。本实用新型实施例中,串口通信电路用于与上位机连接从而实现主控模块与上位机的通信,霍尔电流传感电路用于采集外部电流,模拟电压输入电路用于采集外部电压;电源模块与主控模块、霍尔电流传感电路、模数转换电路以及串口通信电路连接,模数转换电路与主控模块、霍尔电流传感电路以及模拟电压输入电路连接,串口通信电路与主控模块连接。Referring to Fig. 1, the embodiment of the utility model provides a current and voltage acquisition device, including a power module, a main control module, an analog-to-digital conversion circuit, a Hall current sensing circuit, an analog voltage input circuit, a serial port communication circuit and a status indication circuit. In the embodiment of the utility model, the serial port communication circuit is used to connect with the host computer so as to realize the communication between the main control module and the host computer, the Hall current sensing circuit is used to collect external current, and the analog voltage input circuit is used to collect external voltage; The module is connected with the main control module, the Hall current sensing circuit, the analog-to-digital conversion circuit and the serial port communication circuit, the analog-to-digital conversion circuit is connected with the main control module, the Hall current sensing circuit and the analog voltage input circuit, and the serial port communication circuit is connected with the main Control module connection.
参照图2,本实用新型实施例中,电源模块包括第一稳压器U1、第二稳压器U2以及第一电路,第一稳压器U1的输入端连接外部电源,第一稳压器的输出端连接第二稳压器U2的输入端。可选地,第一电路包括连接+12V的外部电源的电源端子P1、保险丝F1、二极管D1、二极管D10、电容C1、电容C2、电容C3、电容C4、电容C5、电容C6、电容C7、电容C8以及电阻R1。需要说明的是,第一稳压器U1的输出端用于输出5V电源(VCC 5V),第二稳压器U2的输出端用于输出3V电源(VCC 3V3);第一稳压器U1的型号包括但不限于BD450M5WFPJ,第二稳压器U2的型号包括但不限于LM1117IMPX-3.3/NOPB。本实用新型实施例中,第一稳压器的输出端连接霍尔电流传感电路以及模数转换电路,第二稳压器的输出端连接模数转换电路、主控模块以及串口通信电路。Referring to Fig. 2, in the embodiment of the utility model, the power module includes a first voltage regulator U1, a second voltage regulator U2 and a first circuit, the input end of the first voltage regulator U1 is connected to an external power supply, and the first voltage regulator U1 The output terminal of is connected to the input terminal of the second regulator U2. Optionally, the first circuit includes a power terminal P1 connected to an external power supply of +12V, a fuse F1, a diode D1, a diode D10, a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, a capacitor C5, a capacitor C6, a capacitor C7, and a capacitor C8 and resistor R1. It should be noted that the output terminal of the first voltage regulator U1 is used to output a 5V power supply (
参照图3,本实用新型实施例中,霍尔电流传感电路包括霍尔电流传感芯片U6、第一电容C33、第二电容C32、第三电容C34、第一电阻R32以及接头P6,霍尔电流传感芯片U6具有电源端(引脚8)、输出端(引脚7)、过滤端(引脚6)、接地端(引脚5)以及采集外部电流的电流感应端,电流感应端(引脚1-4)通过接头P6采集外部电流。其中,电源端连接电源模块以及第一电容C33一端,接地端以及第一电容C33另一端接地,过滤端通过第二电容C32接地,霍尔电流传感芯片U6的输出端连接第一电阻R32一端,第一电阻R32另一端连接第三电容C34一端以及模数转换电路,第三电容C34另一端接地GND。本实用新型实施例中,将流经霍尔电流传感芯片U6的电流成正比地转化为电压信号,控制器测量输出的电压值即可换算得到电流值(换算方法基于现有技术水平),当切换不同量程的但引脚兼容的霍尔电流传感芯片U6时,即可分别得到-5A至+5A、-10A至+10A、-20A至+20A的电流输入范围。可选地,霍尔电流传感芯片U6的型号包括但不限于ACS724。Referring to Fig. 3, in the embodiment of the present utility model, the Hall current sensing circuit includes a Hall current sensing chip U6, a first capacitor C33, a second capacitor C32, a third capacitor C34, a first resistor R32 and a connector P6. The current sensing chip U6 has a power supply terminal (pin 8), an output terminal (pin 7), a filter terminal (pin 6), a ground terminal (pin 5), and a current sensing terminal for collecting external current. (Pins 1-4) Harvest external current through connector P6. Wherein, the power end is connected to the power module and one end of the first capacitor C33, the ground end and the other end of the first capacitor C33 are grounded, the filter end is grounded through the second capacitor C32, and the output end of the Hall current sensing chip U6 is connected to one end of the first resistor R32 , the other end of the first resistor R32 is connected to one end of the third capacitor C34 and the analog-to-digital conversion circuit, and the other end of the third capacitor C34 is grounded to GND. In the embodiment of the utility model, the current flowing through the Hall current sensing chip U6 is proportionally converted into a voltage signal, and the voltage value output by the controller can be converted to obtain the current value (the conversion method is based on the prior art level), When switching the pin-compatible Hall current sensor chip U6 with different ranges, the current input ranges of -5A to +5A, -10A to +10A, and -20A to +20A can be obtained respectively. Optionally, the model of the Hall current sensing chip U6 includes but is not limited to ACS724.
参照图4,本实用新型实施例中,模拟电压输入电路包括第二电阻R28、第三电阻R30、第四电阻R50以及第一二极管D6,第二电阻R28一端采集外部电压(ANALOG IN1),第二电阻R28另一端连接第三电阻R30一端、第四电阻R50一端以及第一二极管D6的负极,第三电阻R30另一端与第一二极管D6的正极连接且接地GND,第四电阻R50另一端连接模数转换电路。需要说明的是,外部电压以及外部电流可以为待测量的电路、装置或者系统等。可选地,模拟电压输入电路接受外部-10V至+10V的电压信号输入,并将信号进行滤波、衰减等调理。With reference to Fig. 4, in the utility model embodiment, analog voltage input circuit comprises second resistor R28, the 3rd resistor R30, the 4th resistor R50 and the first diode D6, the second resistor R28 one end collects external voltage (ANALOG IN1) The other end of the second resistor R28 is connected to one end of the third resistor R30, one end of the fourth resistor R50 and the cathode of the first diode D6, the other end of the third resistor R30 is connected to the anode of the first diode D6 and grounded to GND, the second The other end of the four resistors R50 is connected to an analog-to-digital conversion circuit. It should be noted that the external voltage and the external current may be circuits, devices or systems to be measured. Optionally, the analog voltage input circuit accepts an external -10V to +10V voltage signal input, and performs conditioning on the signal such as filtering and attenuation.
参照图5,本实用新型实施例中,模数转换电路包括模数转换芯片U9以及第二电路,模数转换芯片与电源模块、第二电路、第四电阻另一端、第一电阻另一端以及主控模块连接。可选地,模数转换芯片U9的型号包括但不限于AD7606;第二电路包括电容C11、电容C41、电容C44、电容C42、电容C43、电容C45、电容C46、电容C10、电阻R73、电阻R64。其中,模数转换电路将输入的模拟电压信号转换为数字信号以方便主控模块处理,具体地将输入的模拟电压信号转换为相应的数值存储在内部的寄存器中,供主控模块读取。With reference to Fig. 5, in the utility model embodiment, analog-to-digital conversion circuit comprises analog-to-digital conversion chip U9 and the second circuit, analog-to-digital conversion chip and power supply module, second circuit, the other end of the fourth resistance, the other end of the first resistance and Main control module connection. Optionally, the model of the analog-to-digital conversion chip U9 includes but is not limited to AD7606; the second circuit includes capacitor C11, capacitor C41, capacitor C44, capacitor C42, capacitor C43, capacitor C45, capacitor C46, capacitor C10, resistor R73, resistor R64 . Wherein, the analog-to-digital conversion circuit converts the input analog voltage signal into a digital signal to facilitate processing by the main control module, specifically converts the input analog voltage signal into a corresponding value and stores it in an internal register for the main control module to read.
参照图6,本实用新型实施例中,主控模块包括控制器U3以及第三电路,第三电路包括辅助电路,控制器U3与第三电路、电源模块、模数转换电路以及串口通信电路连接。可选地,辅助电路包括晶振电路、复位电路(未图示)以及调试下载接口,复位电路连接RST,晶振电路包括晶振Y1、电容C19以及电容C20,复位电路完成了每次上电后自动将系统复位的操作,为系统的正常运行提供正确的初始条件;调试下载接口为系统应用程序的开发、调试、下载提供服务。其中,第三电路还包括电阻R18、电阻R19、电阻R13、电阻R44、电阻R42、电阻R21、电阻R43、电阻R20、电阻R5、电阻R4。可选地,控制器U3的型号包括但不限于STM32F105VBT6。本实用新型实施例中,控制器接收上位机下发的指令,解析指令并执行对应的任务,对读取的数据进行分析、处理、封装、输出,并且输出状态或控制信号,进行电流、电压采集以及状态指示电路的控制,并将采集的数据传输至上位机中。Referring to Fig. 6, in the utility model embodiment, main control module comprises controller U3 and the 3rd circuit, and the 3rd circuit comprises auxiliary circuit, and controller U3 is connected with the 3rd circuit, power module, analog-to-digital conversion circuit and serial port communication circuit . Optionally, the auxiliary circuit includes a crystal oscillator circuit, a reset circuit (not shown) and a debugging download interface. The reset circuit is connected to RST. The crystal oscillator circuit includes a crystal oscillator Y1, a capacitor C19, and a capacitor C20. The reset circuit automatically resets the The operation of system reset provides correct initial conditions for the normal operation of the system; the debugging and downloading interface provides services for the development, debugging and downloading of system application programs. Wherein, the third circuit further includes a resistor R18, a resistor R19, a resistor R13, a resistor R44, a resistor R42, a resistor R21, a resistor R43, a resistor R20, a resistor R5, and a resistor R4. Optionally, the model of the controller U3 includes but not limited to STM32F105VBT6. In the embodiment of the utility model, the controller receives the instructions issued by the host computer, analyzes the instructions and executes the corresponding tasks, analyzes, processes, packages, and outputs the read data, and outputs status or control signals, and performs current and voltage Acquisition and control of the status indication circuit, and transmit the collected data to the host computer.
参照图7,本实用新型实施例中,状态指示电路与电源模块以及控制器连接,状态指示电路包括第一发光二极管D3、第二发光二极管D4、第三发光二极管D5、第四发光二极管D2、第五电阻R14、第六电阻R15、第七电阻R16以及第八电阻R17;第五电阻R14一端连接电源模块、第六电阻R15一端、第七电阻R16一端、第八电阻R17一端,第五电阻R14另一端连接第四发光二极管D2的正极,第四发光二极管D2的负极接地,第六电阻R15另一端连接第一发光二极管D3的正极,第七电阻R16另一端连接第二发光二极管D4的正极,第八电阻R17另一端连接第三发光二极管D5的正极,第一发光二极管D3的负极、第二发光二极管D4的负极、第三发光二极管D5的负极分别连接控制器的不同输入端,具体为LED2、LED1、LED0。示例性地,第一发光二极管D3、第二发光二极管D4、第三发光二极管D5可以采用红、黄、绿三种颜色的LED灯,通过长亮和闪烁分别表示系统当前所处的状态。Referring to Fig. 7, in the embodiment of the utility model, the state indicating circuit is connected with the power supply module and the controller, and the state indicating circuit includes a first light emitting diode D3, a second light emitting diode D4, a third light emitting diode D5, a fourth light emitting diode D2, The fifth resistor R14, the sixth resistor R15, the seventh resistor R16 and the eighth resistor R17; one end of the fifth resistor R14 is connected to the power module, one end of the sixth resistor R15, one end of the seventh resistor R16, one end of the eighth resistor R17, and the fifth resistor The other end of R14 is connected to the positive pole of the fourth light emitting diode D2, the negative pole of the fourth light emitting diode D2 is grounded, the other end of the sixth resistor R15 is connected to the positive pole of the first light emitting diode D3, and the other end of the seventh resistor R16 is connected to the positive pole of the second light emitting diode D4 , the other end of the eighth resistor R17 is connected to the anode of the third light-emitting diode D5, the cathode of the first light-emitting diode D3, the cathode of the second light-emitting diode D4, and the cathode of the third light-emitting diode D5 are respectively connected to different input terminals of the controller, specifically LED2, LED1, LED0. Exemplarily, the first light-emitting diode D3, the second light-emitting diode D4, and the third light-emitting diode D5 can use red, yellow, and green LED lights, which respectively indicate the current state of the system by being on and blinking.
参照图8,本实用新型实施例中,串口通信电路具有MAX232芯片U4和第四电路。可选地,MAX232芯片与控制器U3连接,第四电路包括电阻R22、电阻R24、电阻R23、电阻R25、电容C25、电容C27、电容C23、电容C24、电容C26、电容C28以及用于连接上位机的接头JI DB9。Referring to Fig. 8, in the embodiment of the utility model, the serial port communication circuit has a MAX232 chip U4 and a fourth circuit. Optionally, the MAX232 chip is connected to the controller U3, and the fourth circuit includes a resistor R22, a resistor R24, a resistor R23, a resistor R25, a capacitor C25, a capacitor C27, a capacitor C23, a capacitor C24, a capacitor C26, and a capacitor C28, and is used to connect the upper Machine connector JI DB9.
本实用新型实施例还提供一种采集系统,包括上位机以及上述电流及电压采集装置。The embodiment of the utility model also provides an acquisition system, including a host computer and the above-mentioned current and voltage acquisition device.
下面对本实用新型实施例采集系统的具体工作过程进行说明:The specific working process of the acquisition system of the utility model embodiment is described below:
系统可工作于两种模式:1、基于命令模式和2、周期性上传模式,其中基于命令模式可以包括电流采集命令、电压采集命令和系统命令,系统上电即默认工作在基于命令模式。The system can work in two modes: 1. Command-based mode and 2. Periodic upload mode. The command-based mode can include current acquisition commands, voltage acquisition commands and system commands. The system works in command-based mode by default when it is powered on.
1)、当上位机下发电流采集命令后,RS232电平的命令字符串通过串口通信电路转换为TTL电平后,被控制器接收,控制器解析该命令,进而控制模数转换电路开始采集霍尔电流传感电路的电流(引脚1-4的四个通道的一个或者多个)所对应的转换后的电压信号,该输出的输出电压即表征了采集电流的大小。然后,模数转换电路将采集到的电压信号转化为16位的数据并存储在模数转换芯片U9的内部寄存器,当数据准备好后,发出信号通知控制器,控制器通过其SPI通信接口将数据从模数转换电路读取到控制器的内部存储器,控制器将读取的数据处理后通过其TXD往外发送,当数据发送完毕后,控制器控制状态指示电路的电流采集状态LED灯(例如D3)长亮0.5秒后熄灭,表明电流采集命令已执行完毕,控制器发送的数据经过串口通信电路转换后到达上位机,上位机(9)将电流数据显示给用户,从而实现远程的电流采集。1) After the host computer sends the current acquisition command, the command string of RS232 level is converted to TTL level through the serial port communication circuit, and then received by the controller, the controller analyzes the command, and then controls the analog-to-digital conversion circuit to start collecting The current of the Hall current sensing circuit (one or more of the four channels of pins 1-4) corresponds to the converted voltage signal, and the output voltage of the output represents the magnitude of the collected current. Then, the analog-to-digital conversion circuit converts the collected voltage signal into 16-bit data and stores it in the internal register of the analog-to-digital conversion chip U9. When the data is ready, it sends a signal to notify the controller. The data is read from the analog-to-digital conversion circuit to the internal memory of the controller. The controller processes the read data and sends it out through its TXD. When the data is sent, the controller controls the current acquisition status LED of the status indication circuit (for example D3) lights up for 0.5 seconds and then goes off, indicating that the current acquisition command has been executed, the data sent by the controller is converted by the serial communication circuit and then reaches the host computer, and the host computer (9) displays the current data to the user, thereby realizing remote current acquisition .
2)、当上位机下发电压采集命令后,RS232电平的命令字符串通过串口通信电路转换为TTL电平后,被控制器接收,控制器)解析该命令,进而控制模数转换电路开始采集模拟电压输入电路所输入的外部电压信号,模数转换电路将采集到的外部电压信号转化为16位的数据并存储在模数转换芯片U9的内部寄存器,当数据准备好后,发出信号通知控制器,控制器通过其SPI通信接口将数据从模数转换电路读取到控制器的内部存储器,控制器将读取的数据处理后通过其TXD往外发送,当数据发送完毕后,控制器控制状态指示电路的电压采集状态LED灯(例如D4)长亮0.5秒后熄灭,表明电压采集命令已执行完毕。控制器发送的数据经过串口通信电路转换后到达上位机,上位机将电压数据显示给用户。2) After the host computer sends the voltage acquisition command, the command string of RS232 level is converted to TTL level through the serial port communication circuit, and then received by the controller, the controller) parses the command, and then controls the analog-to-digital conversion circuit to start Collect the external voltage signal input by the analog voltage input circuit, the analog-to-digital conversion circuit converts the collected external voltage signal into 16-bit data and store it in the internal register of the analog-to-digital conversion chip U9, when the data is ready, send a signal to notify Controller, the controller reads the data from the analog-to-digital conversion circuit to the internal memory of the controller through its SPI communication interface, the controller processes the read data and sends it out through its TXD, when the data is sent, the controller controls The voltage acquisition status LED (such as D4) of the status indication circuit is on for 0.5 seconds and then goes out, indicating that the voltage acquisition command has been executed. The data sent by the controller is converted by the serial port communication circuit and then reaches the upper computer, and the upper computer displays the voltage data to the user.
周期性上传模式:当上位机下发周期性上传电流的命令后,RS232电平的命令字符串通过串口通信电路转换为TTL电平后,被控制器接收,控制器解析该命令,立即控制状态指示电路的系统工作模式LED灯从常灭变成常亮(例如D5),表明系统进入了周期性上传模式。随后控制器控制模数转换电路开始采集霍尔电流传感电路的所有端口的通道的电流信号,当4个通道的电流数据都采集完成后,主控制器(5)将4个通道的电流数据一并处理和打包并通过其TXD往外发送,当数据发送完毕后,控制器控制状态指示电路的电流采集状态LED(例如D3)灯长亮0.5秒后熄灭,表明一个周期的电流采集任务已执行完毕。控制器(5)发送的数据经过串口通信电路转换后到达上位机,上位机将所有通道的电流数据显示给用户。在周期性上传电流模式下,系统工作模式LED常亮(例如D2),控制器每隔1秒自动采集电流数据并上传至上位机,电流采集状态LED灯(例如D5)以1Hz的频率闪烁,上位机每隔1秒更新电流数据。Periodic upload mode: After the upper computer issues the command to upload the current periodically, the command string of RS232 level is converted to TTL level through the serial port communication circuit, and is received by the controller. The controller parses the command and immediately controls the state The system working mode LED of the indicating circuit changes from off to on (for example, D5), indicating that the system has entered the periodic upload mode. Then the controller controls the analog-to-digital conversion circuit to start collecting the current signals of the channels of all ports of the Hall current sensing circuit. Process and pack together and send out through its TXD. When the data is sent out, the current acquisition status LED (such as D3) of the controller control status indication circuit is on for 0.5 seconds and then goes out, indicating that a cycle of current acquisition tasks has been executed. complete. The data sent by the controller (5) reaches the host computer after being converted by the serial port communication circuit, and the host computer displays the current data of all channels to the user. In the periodic current upload mode, the system working mode LED is always on (such as D2), the controller automatically collects current data every second and uploads it to the host computer, and the current collection status LED (such as D5) flickers at a frequency of 1Hz. The upper computer updates the current data every 1 second.
以上是对本实用新型的较佳实施进行了具体说明,但本实用新型并不限于实施方式,熟悉本领域的技术人员在不违背本实用新型精神的前提下还可做作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the utility model, but the utility model is not limited to the implementation, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the utility model , these equivalent modifications or replacements are all within the scope defined by the claims of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202221627797.4U CN218546859U (en) | 2022-06-27 | 2022-06-27 | Current and voltage acquisition device and acquisition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202221627797.4U CN218546859U (en) | 2022-06-27 | 2022-06-27 | Current and voltage acquisition device and acquisition system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN218546859U true CN218546859U (en) | 2023-02-28 |
Family
ID=85267572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202221627797.4U Active CN218546859U (en) | 2022-06-27 | 2022-06-27 | Current and voltage acquisition device and acquisition system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN218546859U (en) |
-
2022
- 2022-06-27 CN CN202221627797.4U patent/CN218546859U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205318192U (en) | Industry monitored control system based on ethernet | |
CN112491698B (en) | An IoT gateway for multi-point temperature monitoring | |
CN205879554U (en) | Monitor terminal device that motor train unit axletree temperature is wireless | |
CN101309193A (en) | A Microprocessor-Based USB-Flexray Bus Adapter | |
CN218546859U (en) | Current and voltage acquisition device and acquisition system | |
CN113238081A (en) | Intelligent electric meter terminal | |
CN103439370B (en) | The temperature/humiditydetection detection system of drying course | |
CN103049984B (en) | Combustible gas alarm instrument based on Wireless HART communication technology | |
CN213842416U (en) | Long-distance power transmission line online temperature measurement system based on LoRa communication | |
CN107037188A (en) | A kind of water quality monitoring system | |
CN211504617U (en) | Photoelectric acquisition terminal unit circuit for remotely detecting state of three-color lamp | |
CN111190359A (en) | Logging parameter simulator | |
CN207926639U (en) | An elevator protocol conversion device and an elevator Internet of Things system | |
CN103616478A (en) | Self-diagnosis ethylene sensor for coal mine and self-diagnosis method | |
CN211783910U (en) | Temperature detection and alarm protection system for charging pile | |
CN212322080U (en) | Logging parameter simulator | |
CN212322079U (en) | Parameter simulator | |
CN213239038U (en) | Environmental parameter acquisition circuit suitable for greenhouse | |
CN210426826U (en) | Multi-channel high-temperature sensor resistance and temperature detection equipment based on multiple communications | |
CN103559800A (en) | Communication type traffic signal red light detector | |
CN2582057Y (en) | Main circuit board based on field bus for temp/pressure sensor | |
CN114964373A (en) | Data acquisition method, temperature and humidity recorder and storage medium | |
CN112665729A (en) | Long-distance power transmission line online temperature measurement system based on LoRa communication | |
CN216695274U (en) | Indoor and outdoor illuminance detection system based on NB-IoT | |
CN206892616U (en) | A kind of 4G wireless trains security information transmitting device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 511434 speaker workshop, building 3, lishengxiangyuan, Mingjing village, Hualong Town, Panyu District, Guangzhou City, Guangdong Province Patentee after: Guangzhou Huawang Semiconductor Technology Co.,Ltd. Address before: Plant No. 3, Hanlin Industrial Park, Hualong Town, Panyu District, Guangzhou City, Guangdong Province, 511400 Patentee before: GUANGZHOU HUAWANG AUTOMOBILE ELECTRONIC Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of utility model: A current and voltage acquisition device and acquisition system Effective date of registration: 20231124 Granted publication date: 20230228 Pledgee: Industrial and Commercial Bank of China Limited Guangzhou Development Zone Branch Pledgor: Guangzhou Huawang Semiconductor Technology Co.,Ltd. Registration number: Y2023980067436 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20230228 Pledgee: Industrial and Commercial Bank of China Limited Guangzhou Development Zone Branch Pledgor: Guangzhou Huawang Semiconductor Technology Co.,Ltd. Registration number: Y2023980067436 |
|
PC01 | Cancellation of the registration of the contract for pledge of patent right |