CN214278701U - Analog signal acquisition module capable of configuring signal input type - Google Patents
Analog signal acquisition module capable of configuring signal input type Download PDFInfo
- Publication number
- CN214278701U CN214278701U CN202120421889.6U CN202120421889U CN214278701U CN 214278701 U CN214278701 U CN 214278701U CN 202120421889 U CN202120421889 U CN 202120421889U CN 214278701 U CN214278701 U CN 214278701U
- Authority
- CN
- China
- Prior art keywords
- acquisition unit
- analog signal
- voltage
- cpu
- signal input
- 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
Images
Abstract
The utility model provides a can dispose analog signal collection module of signal input type belongs to analog signal collection technical field. The technical scheme is as follows: an analog signal acquisition module capable of configuring signal input types comprises a CPU and an analog signal acquisition unit connected with the CPU; the analog signal acquisition unit comprises an analog signal input end IN, a voltage acquisition unit and a current acquisition unit, wherein the input end of the voltage acquisition unit and the input end of the current acquisition unit are connected with the analog signal input end IN, and the output end of the voltage acquisition unit and the output end of the current acquisition unit are respectively connected with the CPU; the current acquisition unit and the CPU form a control loop to control the signal input type which can be acquired by the analog signal input end IN. The utility model has the advantages that: the signal input type of the module can be configured, and different types of analog signals can be acquired at the same analog signal input end.
Description
Technical Field
The utility model relates to an analog signal gathers technical field, especially relates to a can dispose analog signal collection module of signal input type.
Background
Most of the analog signal acquisition modules in the current market can only support one type of input signals, namely, either 0-5V voltage signals, 0-10V voltage signals or 4-20mA current signals, the supported input types are determined by hardware, and the input types can not be changed after the hardware is selected. Certainly, some analog quantity acquisition modules can support various input signal types, but are realized in a dial switch mode, and manual switching is needed before use, so that the analog signal acquisition modules are various in types and poor in universality, and hardware complexity can be increased by using the dial switch. During practical use, when the analog signal acquisition module is arranged at a dispersed position or is far away from an upper computer, the manual setting of the signal input type of the analog signal acquisition module by hardware is troublesome and inflexible.
SUMMERY OF THE UTILITY MODEL
To the problem among the above-mentioned prior art, the utility model aims to provide a can dispose the analog signal collection module of signal input type, analog signal's input type can pass through software configuration, realizes the collection to the analog signal of different grade type at same input.
The utility model discloses a realize through following technical scheme: an analog signal acquisition module capable of configuring signal input types comprises a CPU and an analog signal acquisition unit connected with the CPU;
the analog signal acquisition unit comprises an analog signal input end IN, a voltage acquisition unit and a current acquisition unit, wherein the input end of the voltage acquisition unit and the input end of the current acquisition unit are connected with the analog signal input end IN, and the output end of the voltage acquisition unit and the output end of the current acquisition unit are respectively connected with different ADC pins of the CPU;
the analog signal input end IN allows a voltage or current analog signal to be input; the voltage acquisition unit isolates and adjusts the voltage signal into a voltage signal range capable of being acquired by the CPU, such as a 0-5V or 0-10V voltage signal; the current acquisition unit converts the current signal into a voltage signal, for example, a 4-20mA current signal is converted into a 1-5V voltage signal;
the current acquisition unit and the CPU form a control loop to control the signal input type which can be acquired by the analog signal input end IN. According to the input type of the analog signals, the CPU can select whether to be communicated with the current acquisition unit or not through a control loop, and selects a corresponding ADC pin to acquire the analog signals.
Further, the current collection unit comprises a controllable switch assembly, an input end of a load end of the controllable switch assembly is used as an input end of the current collection unit, and an output end of the load end of the controllable switch assembly is used as an output end of the current collection unit; the output end of the load end of the controllable switch assembly is also connected with a sampling resistor R, and the other end of the sampling resistor R is grounded; and the control end of the controllable switch component is connected with an I/O pin of the CPU. The CPU can control the on-off state of the load end of the controllable switch component by controlling the high-low level of the I/O pin; when the load end of the controllable switch assembly is closed, the CPU can acquire a current signal through the current acquisition unit; when the load end of the controllable switch assembly is disconnected, the CPU can collect voltage signals through the voltage collecting unit.
Further, the voltage acquisition unit includes the voltage follower, the input of voltage follower is regarded as the input of voltage acquisition unit, the output of voltage follower is connected with resistance bleeder circuit, resistance bleeder circuit's output is regarded as the output of voltage acquisition unit. And the analog voltage signal is isolated by the voltage follower and then is input to an ADC acquisition channel corresponding to the CPU through voltage division. And values of the sampling resistor and the divider resistor are required to ensure that the input voltage meets the voltage range which can be acquired by the CPU.
Further, the voltage follower comprises an operational amplifier, the input positive pole of the operational amplifier is the input end of the voltage follower, the input negative pole of the operational amplifier is connected with the output pole of the operational amplifier, and the output pole of the operational amplifier is used as the output end of the voltage follower.
Further, the resistance voltage division circuit is set to be two paths, the resistance voltage division circuit converts the voltage of the output end of the voltage follower into a voltage range of 0-5V and a voltage range of 0-10V respectively, and the output ends of the resistance voltage division circuit are connected to different ADC pins of the CPU respectively.
Further, the CPU also comprises a communication unit, and the CPU forms a data path with the upper computer through the communication unit. The communication unit can communicate with an upper computer, so that the CPU can receive instructions of the upper computer and upload data to the upper computer; according to the type of the analog signal to be collected, the upper computer can transmit the type of the analog signal to be collected to the CPU, the CPU controls the on-off state of the controllable switch assembly according to information obtained from the upper computer to match the input signal of the analog signal input end IN to be a voltage signal or a current signal, and the analog signal collected by the ADC pin of the CPU is selected to be transmitted to the upper computer through the communication unit.
Further, the communication unit is a TTL-to-RS 485 communication module, communicates with the CPU in a TTL level mode, and communicates with the upper computer in an RS485 serial port mode. Through the RS485 bus, the communication between a plurality of devices and an upper computer can be met, and then the effect of multi-channel signal acquisition is realized.
Furthermore, the analog signal acquisition unit is provided with a plurality of groups which are respectively connected to different ADC pins of the CPU. Under the condition that the ADC pins allow, the number of the analog signal acquisition units is expanded, the use efficiency of the device can be improved, and the number of the signals which can be acquired by the CPU and the number of the analog signal acquisition units are increased.
Further, the controllable switch assembly is set to be an optical coupling switch or a relay.
Furthermore, pins of the CPU connected with the output end of the voltage acquisition unit and the output end of the current acquisition unit are connected with a filter capacitor C, and the other end of the filter capacitor C is grounded.
Further, in order to protect the CPU and prevent the CPU from being broken down due to an excessive voltage signal, a TVS transient suppression diode matched with the acquisition voltage of the input channel is further provided between the ADC pin of the CPU and ground.
Further, the CPU is set as a single chip microcomputer integrated with an ADC acquisition channel.
The utility model has the advantages that: the signal input type of the module can be configured, and different types of analog signals can be acquired at the same analog signal input end, so that the universality of the analog signal acquisition module is improved; this device can also realize long-range configuration through configuration RS485 communication bus, and circuit structure is simple, and is high-efficient reliable.
Drawings
Fig. 1 is a block diagram of the whole circuit of the present invention.
Fig. 2 is an overall circuit diagram of the present invention.
Fig. 3 is a circuit diagram of the voltage acquisition unit.
Fig. 4 is a circuit diagram of the current collection unit.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present solution is explained below by way of specific embodiments.
Referring to fig. 1-4, the present invention is realized by the following technical solution: an analog signal acquisition module capable of configuring signal input types comprises a CPU and an analog signal acquisition unit connected with the CPU;
the analog signal acquisition unit comprises an analog signal input end IN, a voltage acquisition unit and a current acquisition unit, wherein the input end of the voltage acquisition unit and the input end of the current acquisition unit are connected with the analog signal input end IN, and the output end of the voltage acquisition unit and the output end of the current acquisition unit are respectively connected with different ADC pins of the CPU;
the analog signal input terminal IN allows input of a voltage or current analog signal; the voltage acquisition unit isolates and adjusts the voltage signal into a voltage signal range which can be acquired by the CPU, such as 0-5V or 0-10V voltage signal; the current acquisition unit converts the current signal into a voltage signal, for example, a 4-20mA current signal is converted into a 1-5V voltage signal;
the current acquisition unit and the CPU form a control loop to control the signal input type which can be acquired by the analog signal input end IN. According to the input type of the analog signals, the CPU can select whether to be communicated with the current acquisition unit or not through the control loop, and selects the corresponding ADC pin to acquire the analog signals.
Referring to fig. 3, the current collecting unit includes a controllable switch assembly, an input end of a load end of the controllable switch assembly is used as an input end of the current collecting unit, and an output end of the load end of the controllable switch assembly is used as an output end of the current collecting unit; the output end of the load end of the controllable switch assembly is also connected with a sampling resistor R, and the other end of the sampling resistor R is grounded; the control end of the controllable switch component is connected with an I/O pin of the CPU. The CPU can control the on-off state of the load end of the controllable switch assembly by controlling the high and low levels of the I/O pin; when the load end of the controllable switch assembly is closed, the CPU can acquire a current signal through the current acquisition unit; when the load end of the controllable switch assembly is disconnected, the CPU can collect voltage signals through the voltage collecting unit.
Referring to fig. 4, the voltage acquisition unit includes a voltage follower, an input end of the voltage follower serves as an input end of the voltage acquisition unit, an output end of the voltage follower is connected with a resistance voltage division circuit, and an output end of the resistance voltage division circuit serves as an output end of the voltage acquisition unit. The analog voltage signal is isolated by the voltage follower and then is input to the corresponding ADC acquisition channel of the CPU through voltage division. The values of the sampling resistor and the divider resistor are required to ensure that the input voltage meets the voltage range which can be acquired by the CPU.
The voltage follower comprises an operational amplifier, the input anode of the operational amplifier is the input end of the voltage follower, the input cathode of the operational amplifier is connected with the output electrode of the operational amplifier, and the output electrode of the operational amplifier is used as the output end of the voltage follower.
The resistance voltage division circuit is set to be two paths, the two paths of resistance voltage division circuits respectively convert the voltage of the output end of the voltage follower into a voltage range of 0-5V and a voltage range of 0-10V, and the output ends of the two paths of resistance voltage division circuits are respectively connected to different ADC pins of the CPU.
The CPU forms a data path with the upper computer through the communication unit. The communication unit can communicate with the upper computer, so that the CPU can receive instructions of the upper computer and upload data to the upper computer; according to the analog signal type to be collected, the upper computer can transmit the analog signal type to be collected to the CPU, the CPU controls the on-off state of the controllable switch assembly according to the information acquired from the upper computer to match the input signal of the analog signal input end IN to be a voltage signal or a current signal, and the analog signal collected by the ADC pin of the corresponding CPU is selected to be transmitted to the upper computer through the communication unit.
The communication unit is set as a TTL to RS485 communication module, communicates with the CPU in a TTL level mode and communicates with the upper computer in an RS485 serial port mode. Through the RS485 bus, can satisfy many this modules and host computer communication, and then realize multichannel signal acquisition's effect, can also dispose signal input type to all this modules of hanging on the RS485 bus through the host computer.
The analog signal acquisition unit is provided with a plurality of groups which are respectively connected to different ADC pins of the CPU. Under the condition that ADC pins allow, the number of the analog signal acquisition units is increased, the service efficiency of the device can be improved, and the number of the signals which can be acquired by the CPU and the number of the analog signal acquisition units can be increased.
The controllable switch assembly is set as an optical coupler switch, one end of a control end of the controllable switch assembly is connected with the power supply, and the other end of the control end of the controllable switch assembly is connected with the I/O pin of the CPU after being connected with the current-limiting resistor in series.
The controllable switch assembly may also employ a micro-relay.
The pins of the CPU connected with the output end of the voltage acquisition unit and the output end of the current acquisition unit are connected with a filter capacitor C, and the other end of the filter capacitor C is grounded.
TVS transient suppression diodes are arranged between the ADC pins connected with the output ends of the current acquisition unit and the voltage acquisition unit on the CPU and the ground, and the specifications of the TVS transient suppression diodes are matched with the highest value of the voltage range of the corresponding acquisition channel, so that the condition that the acquired voltage signal is too large, and the voltage input to the ADC pins is too large to damage the CPU is prevented.
The CPU is set as a single chip microcomputer integrated with an ADC acquisition channel, and the corresponding CPU model is selected according to the requirements of the quantity, the precision and the like of analog signals to be acquired.
When the utility model is used, when the signal to be collected is an analog voltage signal, the load end of the controllable switch assembly is controlled to be turned off, the analog voltage signal is isolated by the voltage follower and is subjected to voltage division by the voltage dividing resistor, and the analog voltage signal is converted into a voltage signal of 0-5V or 0-10V and is input into the ADC collection channel of the CPU; when the signal to be acquired is an analog current signal, for example, a 4-20mA current signal, the load end of the controllable switch assembly is controlled to be closed, the current signal flows through the sampling resistor R, and a voltage is formed on the sampling resistor R, for example, when the resistance value of the sampling resistor R is 250 ohms, the 4-20mA current signal is converted into a 1-5V voltage signal and is input to an ADC acquisition channel of the CPU; the CPU transmits signal data acquired by the corresponding ADC channel to the upper computer through the communication unit according to the type of the input signal; in addition, a field condition is considered, when a plurality of analog signals need to be acquired on the field, a local module can be arranged at each analog signal position, networking is carried out in an RS485 bus mode, and an instruction for configuring signal input types can be issued to each module through software on an upper computer, so that the modules can be changed at any time even if configuration is wrong, and the system is safe and efficient.
In the description of the present invention, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the invention, unless otherwise specified, "a plurality" means two or more.
In the description of the present invention, it should be noted that unless otherwise explicitly stated or limited, the terms "mounted," "connected," and "disposed" are to be construed broadly, e.g., as meaning fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the creation of the present invention can be understood by those of ordinary skill in the art through specific situations.
The technical features that the utility model has not been described can be realized through or adopt prior art, and no longer give unnecessary details here, and of course, the above-mentioned explanation is not right the utility model discloses a restriction, the utility model discloses also not only be limited to the above-mentioned example, ordinary skilled person in this technical field is in the utility model discloses a change, modification, interpolation or replacement made in the essential scope also should belong to the utility model discloses a protection scope.
Claims (10)
1. An analog signal acquisition module capable of configuring signal input types is characterized by comprising a CPU and an analog signal acquisition unit connected with the CPU;
the analog signal acquisition unit comprises an analog signal input end IN, a voltage acquisition unit and a current acquisition unit, wherein the input end of the voltage acquisition unit and the input end of the current acquisition unit are connected with the analog signal input end IN, and the output end of the voltage acquisition unit and the output end of the current acquisition unit are respectively connected with different ADC pins of the CPU;
the current acquisition unit and the CPU form a control loop to control the signal input type which can be acquired by the analog signal input end IN.
2. The analog signal acquisition module of configurable signal input type according to claim 1, wherein the current acquisition unit comprises a controllable switch component, an input terminal of a load terminal of the controllable switch component is used as the input terminal of the current acquisition unit, and an output terminal of the load terminal of the controllable switch component is used as the output terminal of the current acquisition unit; the output end of the load end of the controllable switch assembly is also connected with a sampling resistor R, and the other end of the sampling resistor R is grounded; the control end of the controllable switch assembly is connected with an I/O pin of the CPU, and the CPU can control the on-off state of the load end of the controllable switch assembly by controlling the high and low levels of the I/O pin.
3. The analog signal acquisition module of configurable signal input type according to claim 2, wherein the voltage acquisition unit comprises a voltage follower, an input terminal of the voltage follower is used as an input terminal of the voltage acquisition unit, an output terminal of the voltage follower is connected with a resistance voltage division circuit, and an output terminal of the resistance voltage division circuit is used as an output terminal of the voltage acquisition unit.
4. The analog signal acquisition module of claim 3, wherein the voltage follower comprises an operational amplifier, an input anode of the operational amplifier is an input terminal of the voltage follower, an input cathode of the operational amplifier is connected with an output electrode of the operational amplifier, and an output electrode of the operational amplifier is an output terminal of the voltage follower.
5. The configurable signal input type analog signal acquisition module according to claim 3, wherein the resistance voltage divider circuit is provided in two paths, the two paths of resistance voltage divider circuit respectively convert the voltage at the output end of the voltage follower into a voltage range of 0-5V and a voltage range of 0-10V, and the output ends of the two paths of resistance voltage divider circuit are respectively connected to different ADC pins of the CPU.
6. The analog signal acquisition module of a configurable signal input type according to claim 1, further comprising a communication unit through which the CPU forms a data path with an upper computer.
7. The configurable signal input type analog signal acquisition module of claim 6, wherein the communication unit is a TTL to RS485 communication module, and communicates with the CPU through a TTL level mode and communicates with an upper computer through an RS485 serial port mode.
8. The configurable signal input type analog signal acquisition module according to claim 1, wherein the analog signal acquisition unit is provided with a plurality of groups, and the groups are respectively connected to different ADC pins of the CPU.
9. The analog signal acquisition module of a configurable signal input type according to claim 2, wherein the controllable switch assembly is provided as an optocoupler switch or as a relay.
10. The configurable signal input type analog signal acquisition module according to claim 1, wherein a filtering capacitor C is connected to each of pins of the CPU connected to the output terminal of the voltage acquisition unit and the output terminal of the current acquisition unit, and the other end of the filtering capacitor C is grounded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120421889.6U CN214278701U (en) | 2021-02-25 | 2021-02-25 | Analog signal acquisition module capable of configuring signal input type |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120421889.6U CN214278701U (en) | 2021-02-25 | 2021-02-25 | Analog signal acquisition module capable of configuring signal input type |
Publications (1)
Publication Number | Publication Date |
---|---|
CN214278701U true CN214278701U (en) | 2021-09-24 |
Family
ID=77792744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202120421889.6U Active CN214278701U (en) | 2021-02-25 | 2021-02-25 | Analog signal acquisition module capable of configuring signal input type |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN214278701U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116719266A (en) * | 2023-08-09 | 2023-09-08 | 浙江国利信安科技有限公司 | Control apparatus |
CN117254810A (en) * | 2023-11-17 | 2023-12-19 | 浙江国利信安科技有限公司 | Signal acquisition system |
-
2021
- 2021-02-25 CN CN202120421889.6U patent/CN214278701U/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116719266A (en) * | 2023-08-09 | 2023-09-08 | 浙江国利信安科技有限公司 | Control apparatus |
CN116719266B (en) * | 2023-08-09 | 2023-11-03 | 浙江国利信安科技有限公司 | Control apparatus |
CN117254810A (en) * | 2023-11-17 | 2023-12-19 | 浙江国利信安科技有限公司 | Signal acquisition system |
CN117254810B (en) * | 2023-11-17 | 2024-03-05 | 浙江国利信安科技有限公司 | Signal acquisition system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN214278701U (en) | Analog signal acquisition module capable of configuring signal input type | |
CN201298739Y (en) | Battery pack voltage balancer | |
CN105807686B (en) | A kind of general isolated form On-off signal output module | |
CN111983298A (en) | Switching value acquisition circuit and method | |
CN103580671A (en) | NPN/PNP on-off signal converter | |
CN212486461U (en) | Photovoltaic power plant monitored control system | |
CN210720619U (en) | Fault indicator capable of detecting double-frequency signal | |
CN210626919U (en) | High-precision analog quantity data acquisition module based on RS-485 communication | |
CN205157644U (en) | Multiloop ammeter | |
CN102183949A (en) | Method for realization of optimally-cascaded multiplex intelligent simulation load | |
CN106300644A (en) | A kind of power supply switch circuit and automatically divide-shut brake intelligent breaker | |
CN110034989A (en) | CAN transmission circuit and CAN communication system | |
CN213186140U (en) | MBUS host computer transmitting circuit | |
CN215267678U (en) | Device for leveling and zero clearing control of power lithium battery | |
CN211505687U (en) | Residual voltage memory circuit and residual voltage detection device | |
CN204145529U (en) | A kind of master-slave mode CAN module | |
CN207424169U (en) | The communication multi-functional branch monitoring system of high voltage direct current distribution | |
CN218068639U (en) | Adjustable sampling circuit of output and switching power supply based on single chip microcomputer control | |
CN212060929U (en) | Novel input/output multiplexing equipment supporting multiple input modes | |
CN210401512U (en) | Vehicle control unit-based digital signal acquisition circuit and vehicle control unit | |
CN214380302U (en) | Shipborne electronic circuit breaker module and shipborne intelligent power distribution system | |
CN217741703U (en) | Analog signal isolation circuit and isolator | |
CN212111611U (en) | Circuit for detecting operating state of power device and cooking appliance | |
CN209148767U (en) | A kind of voltage check device | |
CN218041656U (en) | Industrial field data collector for communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |