Control panel IO port detection system

By integrating the main processor and current detection circuit on the tooling board, and using MOSFETs and sampling resistors to detect the I/O port current, the problem of cumbersome and error-prone I/O port detection on the control board is solved, achieving efficient and accurate I/O port detection, reducing labor costs and device damage.

CN222070797UActive Publication Date: 2024-11-26CHANGGUANGXI INTELLIGENT MFG (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420525031.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2024-11-26
Estimated Expiration
2034-03-18

AI Technical Summary

Technical Problem

In the existing technology, the fault detection process of the control board IO port is cumbersome and prone to errors, and may damage the IO port devices, affecting the normal operation of the robotic arm.

Method used

A control board IO port detection system was designed. The system integrates a main processor, a drive circuit, and a current detection circuit on a tooling board. The IO port current is detected by a MOSFET and a sampling resistor. The detection results are transmitted to the host computer using the main processor and a communication module, achieving real-time and efficient detection.

Benefits of technology

It enables efficient and accurate detection of the control board's I/O ports, reduces labor costs, avoids damage to I/O ports, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222070797U_ABST
    Figure CN222070797U_ABST
Patent Text Reader

Abstract

The utility model discloses a control panel IO port detection system, which relates to the field of circuits and comprises a tool plate, and a main processor, a driving circuit and a current detection circuit are integrated on the tool plate. The main processor on the tool plate is externally connected with a communication module, and the communication module is connected to an upper computer. The driving circuit is externally connected with an IO port of the control panel; the external control board comprises at least 16 paths of IO ports, and the driving circuit is connected to the at least 16 paths of IO ports; the drive circuit comprises MOS tubes corresponding to at least 16 IO ports and a sampling resistor R, and the current detection circuit is connected to the two ends of the sampling resistor to detect sampling voltage. The main processor is connected with the current detection circuit, obtains a current sampling value and sends the current sampling value to the upper computer through the communication module. According to the scheme, the high and low levels of the IO port of the control panel can be rapidly detected in real time through the tool plate, and finally data are transmitted to the upper computer, so that errors are not easy to occur, the efficiency can be ensured, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of circuits, and in particular to a control board IO port detection system. Background Art

[0002] With the rapid development of industry, more and more intelligent devices are put into production, which significantly improves productivity. As an intelligent device to assist production, collaborative robots have been more and more widely used. Generally, collaborative robots mainly consist of two parts: a controller and a robotic arm. The controller is responsible for the motion control of the robotic arm, and collects and receives the status information of the tool end, and issues corresponding control instructions according to the status information of the tool end; the robotic arm is mainly responsible for moving the tool end to the specified position according to the path planned by the controller.

[0003] In the related art, the control board connected to the robot arm has many IO ports outside. The fault detection and testing of these IO ports requires the use of a multimeter voltage range to perform high and low level detection on each external IO port. This detection scheme will inevitably consume a lot of time, and the components of the IO port may be permanently damaged by the multimeter probe or static electricity, affecting the normal operation of the robot arm. Utility Model Content

[0004] The embodiment of the present application provides a control board IO port detection system to solve the problem that the control board IO port detection process is cumbersome and error-prone.

[0005] The control board IO port detection system comprises a tooling board, on which a main processor, a driving circuit and a current detection circuit are integrated; the main processor on the tooling board is externally connected to a communication module, and the communication module is connected to a computer host computer; the driving circuit is externally connected to the control board IO port; the external control board includes at least 16 IO ports, and the driving circuit is connected to at least 16 IO ports;

[0006] The driving circuit includes MOS tubes and sampling resistors R corresponding to at least 16 IO ports, and the current detection circuit is connected to both ends of the sampling resistor to detect the sampling voltage;

[0007] The main processor is connected to the current detection circuit and obtains the current sampling value, and sends it to the computer host computer through the communication module.

[0008] Specifically, the voltage output detection end of the main processor is connected to the gate of the MOS tube Q1 in the driving circuit, the source of Q1 is connected to the control board IO port, the drain is connected to one end of the sampling resistor R, and the other end of the sampling resistor R is connected to the tooling board power supply voltage VCC.

[0009] Specifically, the voltage output detection end of the main processor is connected to one end of the current limiting resistor R1, and the other end of the current limiting resistor R1 is connected to the gate of the MOS tube Q1; the source of Q1 is connected to the control board IO port, the drain is connected to one end of the sampling resistor R, and the other end of the sampling resistor R is connected to the tooling board power supply voltage VCC.

[0010] Specifically, a protection resistor R2 is connected in parallel between the gate and the source of the MOS transistor Q1 , and a protection capacitor C1 is connected in parallel between both ends of the protection resistor R2 .

[0011] Specifically, the MOS tube Q1 is an N-type field effect transistor. When the gate voltage is higher than the source voltage and greater than the turn-on voltage, Q1 is turned on.

[0012] Specifically, the current detection circuit includes a current detection amplifier AD8418 and an operational amplifier, the output pin OUT of the current detection amplifier is connected to the positive input of the operational amplifier, and the output of the operational amplifier is fed back to the negative input;

[0013] The output of the current detection amplifier is connected to the signal receiving terminal of the main processor to obtain the current sampling value.

[0014] Specifically, the first reference pin VREF1 and the power pin VS of the current detection amplifier are connected to the power supply VBB, and the second reference pin VREF2 and the ground pin GND are grounded;

[0015] The +in and -in pins of the current detection amplifier are connected to the two ends of the sampling resistor R for differential voltage input.

[0016] Specifically, the output pin of the current detection amplifier is connected to one end of the resistor R3, the other end of R3 is respectively connected to the positive electrode of the filter capacitor C2 and the positive input of the operational amplifier, and the negative electrode of the filter capacitor C2 is grounded.

[0017] Specifically, the output of the operational amplifier is connected to one end of the resistor R4, the other end of R4 is connected to the positive electrode of the filter capacitor C3, and the current sampling value is derived, and the negative electrode of the filter capacitor C3 is grounded.

[0018] Specifically, when the IO port channel is turned on, a low level is output, and when the channel is turned off, a high level is output; when the MOS tube Q1 in the driving circuit is turned on, after sampling by the current detection circuit, the output current sampling value is input to the main processor;

[0019] When the host computer detects that the main processor pin becomes high level, the green light of the corresponding control board IO port channel lights up.

[0020] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least: the present application sets a tooling board, and sets a driving circuit and a current detection circuit matching the IO port of the control board on the tooling board. Since the MOS tube is connected in the driving circuit, the on-state of the MOS tube is determined by the main processor detection signal and the level of the IO port of the control board, and the voltage drop generated on the sampling resistor can be detected by the current detection circuit and sent back to the main processor, and the on-off state is directly determined by the host computer. Compared with the method of using a multimeter to detect the voltage of the IO port one by one, this design detects the high and low levels of the IO port of the control board in real time through the tooling board, and finally transmits the data to the host computer. This is not only not prone to errors, but also ensures efficiency and reduces labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a structural diagram of a control board IO port detection system provided in an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of the connection between the drive circuit, the main controller and the control board IO port circuit;

[0023] Figure 3 is the circuit diagram of the current detection circuit;

[0024] Figure 4 This is a schematic diagram of the control board IO port detection light. DETAILED DESCRIPTION

[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0026] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0027] Figure 1It is a structural schematic diagram of the control board IO port detection system provided in an embodiment of the present application, including a tooling board 1, on which a main processor 2, a drive circuit 3 and a current detection circuit 5 are integrated. The tooling board 1 provides voltage input and circuit components that support the main processor 2, the drive circuit 3 and the current detection circuit 5. The main processor 2 on the tooling board 1 is externally connected to a communication module 6, and the communication module 6 is connected to a computer host computer 7. The drive circuit 3 is further connected to the control board IO port 4 after being led out of the tooling board 1. In the embodiment of the present application, the external control board for the industrial robot arm includes at least 16 IO ports, and the drive circuit 3 internally includes a circuit structure that can support at least 16 IO port tests, and is connected to at least 16 IO ports.

[0028] The driving circuit 3 includes MOS tubes and sampling resistors R corresponding to at least 16 IO ports, and the current detection circuit 5 is connected to both ends of the sampling resistor to detect the sampling voltage. The main processor 2 is connected to the current detection circuit 5 and obtains the current sampling value, which is sent to the computer host 7 through the communication module 6.

[0029] Figure 2 The circuit diagram for detecting one IO port is shown. The main controller 2 is provided with a voltage output detection terminal OUTPUT, which is responsible for outputting a detection signal. The port is connected to the gate of the corresponding MOS tube Q1 in the driving circuit 3, and the source of Q1 is connected to the IO port of the control board, and the drain of Q1 is connected to one end of the sampling resistor R, and the other end of the sampling resistor R is connected to the power supply voltage VCC of the tooling board. The sampling resistor R is mainly used to detect whether there is a voltage drop at the IO port.

[0030] In some embodiments, in order to reasonably limit the current of the circuit and reduce burrs, a current limiting resistor R1 can also be connected between the main processor 2 and the MOS tube, that is, the voltage output detection end of the main processor 2 is connected to one end of the current limiting resistor R1, and the other end of the current limiting resistor R1 is connected to the gate of the MOS tube Q1. The source of Q1 is connected to the IO port of the control board, and the drain of Q1 is connected to the power supply voltage VCC of the tooling board 1.

[0031] In some embodiments, because there are many circuit structures arranged on the tooling board 1, and the main processor 2 and the control board IO port 4 also need to pass through the driving circuit 3, an electrostatic protection circuit can also be added at both ends of the MOS tube. That is, a protection resistor R2 is connected in parallel between the gate and source of the MOS tube Q1, and a protection capacitor C1 is connected in parallel at both ends of the protection resistor R2. Under the action of R2 and C1, the voltage fluctuation caused by the static electricity of the circuit can be effectively eliminated.

[0032] Figure 3: is a circuit diagram of a current detection circuit, the current detection circuit 5 includes a current detection amplifier AD8418 and an operational amplifier AD8606, the output pin OUT of the current detection amplifier is connected to the positive input of the operational amplifier, and the output of the operational amplifier is fed back to the negative input to form a voltage follower. The output of the current detection amplifier is connected to the signal receiving end of the main processor 2 to obtain the current sampling value I_ADC.

[0033] In some embodiments, for the design of the current detection amplifier chip, it is specifically necessary to connect the first reference pin VREF1 and the power pin VS of the current detection amplifier to the power supply VBB, and the second reference pin VREF2 and the ground pin GND to the ground. Sampling requires the +in and -in pins of the practical chip, and the +in and -in pins are respectively connected to the two ends of the sampling resistor R for acquisition and differential voltage input.

[0034] Similarly, the current detection circuit also needs to be filtered to ensure the stability of the circuit. For example, an RC circuit can be connected between the current detection amplifier and the operational amplifier, specifically, one end of the resistor R3 is connected to the output pin of the current detection amplifier, the other end of R3 is respectively connected to the positive electrode of the filter capacitor C2 and the positive input of the operational amplifier, and the negative electrode of the filter capacitor C2 is grounded. For the output side of the operational amplifier, an RC circuit is also set, specifically, the output of the operational amplifier is connected to one end of the resistor R4, the other end of R4 is connected to the positive electrode of the filter capacitor C3, and the current sampling value is drawn, and the negative electrode of the filter capacitor C3 is grounded.

[0035] In particular, in the embodiment of the present application, the MOS tube Q1 in the driving circuit 3 is designed as an N-type field effect transistor, that is, an NMOS tube. When the gate voltage is higher than the source voltage and greater than the turn-on voltage, Q1 is turned on.

[0036] In this design, when the IO port channel is turned on, it outputs a low level, and when the channel is closed, it outputs a high level. When the MOS tube Q1 in the driving circuit 3 is turned on, after sampling by the current detection circuit 5, the output current sampling value is input to the main processor 2. When the host computer 7 detects that the pin of the main processor 2 becomes a high level, the green light of the corresponding control board IO port channel lights up.

[0037] See also Figure 4 It is the lighting status of the IO port channel of the control board. The specific operating principle is as follows:

[0038] 1. The main processor 2 on the tooling board 1 sends a high-level signal (OUTPUT outputs a high level) to the GPIO of the 16-way control board IO port 4 in turn. Each GPIO will only be pulled high once in a cycle, and the cycle continues.

[0039] 2. When the control board is just powered on, all IO ports 4 of the control board default to high level (DO output high level), and all red lights on the interface of the host computer 7 are on. Wait for 3 seconds, if a green light is on, it can be directly determined that the channel is faulty.

[0040] 3. Under normal circumstances, the control board IO port 4 channel is open, and the channel directly outputs a low level. When the control board IO port 4 channel is closed, it must directly output a high level. After the NMOS tube Q1 of the corresponding channel on the drive circuit 3 detects a low level, it will turn on, and the current will flow through the sampling resistor R, and then the sampling value will be sent to the main processor 1 pin through the current detection circuit 5. After the host computer 7 detects that the main processor 2 pin has become a high level, the green light of the corresponding control board IO port 4 channel will light up.

[0041] 4. By observing the status of the indicator light 7 of the host computer, the inspector can quickly detect the good or bad condition of the 16 control board IO ports 4.

[0042] In summary, this application sets up a tooling board, and sets up a driving circuit and a current detection circuit that match the IO port of the control board on the tooling board. Since the MOS tube is connected to the driving circuit, the on-state of the MOS tube is determined by the main processor detection signal and the level of the IO port of the control board, and the voltage drop generated on the sampling resistor can be detected by the current detection circuit and sent back to the main processor, and the on-off status is directly determined by the host computer. Compared with the method of using a multimeter to detect the voltage of the IO port one by one, this design detects the high and low levels of the IO port of the control board in real time through the tooling board, and finally transmits the data to the host computer. This is not only not prone to errors, but also ensures efficiency and reduces labor costs.

[0043] The preferred embodiments of the present invention are described above; it should be understood that the present invention is not limited to the above-mentioned specific implementation modes, and the devices and structures not described in detail should be understood to be implemented in a common manner in the art; any technician familiar with the art can make many possible changes and modifications without departing from the technical solution of the present invention, or modify them into equivalent embodiments with equivalent changes, which does not affect the essential content of the present invention; therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of protection of the technical solution of the present invention.

Claims

1. A control panel IO port detection system for a robotic arm, characterized in that: It comprises a tooling board, on which a main processor, a driving circuit and a current detection circuit are integrated; the main processor on the tooling board is externally connected to a communication module, and the communication module is connected to a computer host computer; the driving circuit is externally connected to an IO port of a control board; the external control board includes at least 16 IO ports, and the driving circuit is connected to at least 16 IO ports; The driving circuit includes MOS tubes and sampling resistors R corresponding to at least 16 IO ports, and the current detection circuit is connected to both ends of the sampling resistor to detect the sampling voltage; The main processor is connected to the current detection circuit and obtains the current sampling value, and sends it to the computer host computer through the communication module.

2. The control board IO port detection system according to claim 1, characterized in that: The voltage output detection end of the main processor is connected to the gate of the MOS tube Q1 in the driving circuit, the source of Q1 is connected to the control board IO port, the drain is connected to one end of the sampling resistor R, and the other end of the sampling resistor R is connected to the tooling board power supply voltage VCC.

3. The control board IO port detection system according to claim 1, characterized in that: The voltage output detection end of the main processor is connected to one end of the current limiting resistor R1, and the other end of the current limiting resistor R1 is connected to the gate of the MOS tube Q1; the source of Q1 is connected to the control board IO port, the drain is connected to one end of the sampling resistor R, and the other end of the sampling resistor R is connected to the tooling board power supply voltage VCC.

4. The control board IO port detection system according to claim 3, characterized in that: A protection resistor R2 is connected in parallel between the gate and source of the MOS tube Q1 , and a protection capacitor C1 is connected in parallel across the protection resistor R2 .

5. The control board IO port detection system according to claim 2 or 3, characterized in that: MOS tube Q1 is an N-type field effect transistor. When the gate voltage is higher than the source voltage and greater than the turn-on voltage, Q1 is turned on.

6. The control board IO port detection system according to claim 5, characterized in that: The current detection circuit comprises a current detection amplifier AD8418 and an operational amplifier, wherein the output pin OUT of the current detection amplifier is connected to the positive input of the operational amplifier, and the output of the operational amplifier is fed back to the negative input; The output of the current detection amplifier is connected to the signal receiving terminal of the main processor to obtain the current sampling value.

7. The control board IO port detection system according to claim 6, characterized in that: The first reference pin VREF1 and the power pin VS of the current detection amplifier are connected to the power supply VBB, and the second reference pin VREF2 and the ground pin GND are grounded together; The +in and -in pins of the current detection amplifier are connected to the two ends of the sampling resistor R for differential voltage input.

8. The control board IO port detection system according to claim 6, characterized in that: The output pin of the current detection amplifier is connected to one end of the resistor R3, the other end of R3 is respectively connected to the positive electrode of the filter capacitor C2 and the positive input of the operational amplifier, and the negative electrode of the filter capacitor C2 is grounded.

9. The control board IO port detection system according to claim 6, characterized in that: The output of the operational amplifier is connected to one end of the resistor R4, the other end of R4 is connected to the positive electrode of the filter capacitor C3, and the current sampling value is derived, and the negative electrode of the filter capacitor C3 is grounded.

10. The control board IO port detection system according to claim 7, characterized in that: When the IO port channel is turned on, a low level is output, and when the channel is turned off, a high level is output; when the MOS tube Q1 in the driving circuit is turned on, the output current sampling value is input to the main processor after sampling by the current detection circuit; When the host computer detects that the main processor pin becomes high level, the green light of the corresponding control board IO port channel lights up.