CN216623005U - Embedded industrial controller based on GPIO - Google Patents
Embedded industrial controller based on GPIO Download PDFInfo
- Publication number
- CN216623005U CN216623005U CN202123276200.4U CN202123276200U CN216623005U CN 216623005 U CN216623005 U CN 216623005U CN 202123276200 U CN202123276200 U CN 202123276200U CN 216623005 U CN216623005 U CN 216623005U
- Authority
- CN
- China
- Prior art keywords
- circuit
- module
- gpio
- interface
- selection
- 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
Landscapes
- Programmable Controllers (AREA)
Abstract
The utility model relates to the field of GPIO configuration, in particular to an embedded industrial controller based on GPIO. The power module is connected with the main control module to supply power for the power module and play a role in protection, the main control module is connected with the digital input or digital output of the IO selection module configuration GPIO, and the main control module and the IO selection module are both connected with the interface expansion module to expand different resources. By adopting the mode, different external interfaces can be flexibly expanded by replacing the power supply module or the interface expansion module for different application scenes, and the output and the input of the GPIO interface can be configured, so that the applicability of the embedded industrial controller is greatly improved, the condition that the embedded industrial controller needs to be customized and developed according to different application scenes is avoided, and the development cost is reduced.
Description
Technical Field
The embodiment of the utility model relates to the field of General-purpose input/output (GPIO for short) configuration, in particular to an embedded industrial controller based on GPIO.
Background
Currently, embedded industrial controllers are widely used in industrial control system applications. The embedded industrial controller generally adopts a Central Processing Unit (CPU) as a core, and is assisted by an external driving circuit and a communication expansion circuit to realize expansion of an external IO interface and a communication interface, the used CPU generally includes an ARM processor, an x86 processor, a DSP processor and the like, the externally expanded communication interface generally includes an ethernet interface, an RS485 interface, an RS232 interface, a CAN interface and the like, and the externally expanded IO interface includes a digital input interface, a digital output interface, an analog input interface and an analog output interface.
The embedded industrial controller communicates with the controlled equipment through the communication interface expanded externally, various states of the controlled equipment are collected through the digital quantity input interface or the analog quantity input interface, and related instructions are sent to the controlled equipment through the digital quantity output interface, the analog quantity output interface or the communication interface, so that the controlled equipment works according to set requirements.
However, in different application scenarios, due to the fact that the number of controlled devices and communication interfaces are different, requirements for external interface resources of the embedded industrial controller are also different, and the conventional embedded industrial controller is customized and developed according to different application scenarios, so that the generality and the development efficiency of the embedded industrial controller are greatly affected, and the specifically-customized embedded industrial controller cannot be applied to other scenarios, and has high use limitation.
SUMMERY OF THE UTILITY MODEL
The technical problem mainly solved by the embodiment of the utility model is to provide the GPIO-based embedded industrial controller, which can configure enough external interfaces and the output and input configuration of the GPIO interfaces according to different application scenes.
In order to solve the above technical problem, an aspect of an embodiment of the present invention provides an embedded industrial controller based on GPIO, including:
the power supply module is respectively connected with an external input power supply and the main control module and is used for providing working voltage for the main control module; the IO selection module is connected with the main control module and used for selecting a GPIO in the main control module as an input or output interface of the external device according to the control of the main control module; the main control module is respectively connected with the power supply module and the IO selection module and used for controlling the IO selection module so as to select the GPIO in the main control module as an input or output interface of the external device.
In one embodiment of the present application, the power module includes a protection circuit and an isolation circuit, wherein the protection circuit is respectively connected to the external power source and the isolation circuit, and the isolation circuit is respectively connected to the protection circuit and the main control module.
In an embodiment of the present application, the IO selection module includes a processor IO selection circuit, an input interface circuit, an output interface circuit, and a peripheral IO selection circuit, wherein the processor IO selection circuit is respectively connected to the CPU minimum system circuit, the input interface circuit, and the output interface circuit of the main control module, and the peripheral IO selection circuit is respectively connected to the CPU minimum system circuit, the input interface circuit, and the output interface circuit of the main control module.
In an embodiment of the present application, the processor IO selection circuit and the peripheral IO selection circuit each include a selection chip, and the processor IO selection circuit and the peripheral IO selection circuit selectively turn on the input interface circuit or the output interface circuit through the selection chip.
In one embodiment of the application, the main control module comprises a CPU minimum system circuit, an ethernet switching circuit, a USB circuit, an NB-IoT circuit, and an interface board connector, wherein the CPU minimum system circuit is connected to the ethernet switching circuit, the USB circuit, the NB-IoT circuit, and the interface board connector, respectively.
In one embodiment of the present application, the main control module employs an i.mx.6.duallit dual-core 800M main frequency processor.
In one embodiment of the present application, each of the power module, the IO selection module, and the main control module is a single individual in function and structure.
In an embodiment of the present application, the embedded industrial controller further includes an interface extension module, the interface extension module is respectively connected to the main control module, the IO selection module, and the external device, and the interface extension module is connected to the main control module through an interface board connector on the main control module.
In one embodiment of the application, the interface extension module comprises a GPIO interface circuit, a CAN circuit, an RS485 circuit and an RS232 circuit; the GPIO interface circuit is respectively connected with the IO selection circuit of the processor of the IO selection module and an interface of the external device.
In one embodiment of the present application, the interface expansion module is a separate entity in function and structure.
The embodiment of the utility model has the beneficial effects that: different from the situation of the prior art, the power module is connected with the main control module, the main control module is connected with the IO selection module, the IO selection module is connected with the interface expansion module, the main control module cooperates with the selection function of the IO selection module through software configuration, and each module is designed independently, so that the embedded industrial controller can flexibly apply functions only by replacing the power module and the interface expansion module under different application scenes and in the condition of needing different external interfaces, the universality of the embedded industrial controller is improved, and the cost is reduced.
Drawings
Fig. 1 is a schematic block diagram of an implementation scheme of an embedded industrial controller based on GPIO according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an implementation scheme of an embedded industrial controller based on GPIO according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of another implementation of an embedded industrial GPIO-based controller according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another implementation scheme of an embedded industrial controller based on GPIO according to an embodiment of the present invention;
the following are the reference signs:
10: power module, 11: protection circuit, 12: an isolation circuit;
20: master control module, 21: CPU minimum system circuit, 22: an ethernet switching circuit. 23:
USB circuit, 24: NB-IoT circuit, 25: an interface board connector;
30: IO selection module, 31: processor IO selection circuit, 32: input interface circuit, 33: output interface circuit, 34: a peripheral IO selection circuit;
40: interface extension module, 41: the GPIO interface circuit comprises 42 CAN interface circuits, 43 RS485 interface circuits, 44 RS485 interface circuits and 45 RS232 interface circuits.
Detailed Description
In order to facilitate an understanding of the utility model, the utility model is described in more detail below with reference to the accompanying drawings and specific examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1 and 2, an embodiment of the present application provides an embedded industrial controller based on GPIO, where the embedded industrial controller includes a power module 10, a main control module 20, and an IO selection module 30, where the power module 10 includes a protection circuit 11 and an isolation circuit 12, the main control module 20 includes, but is not limited to, a CPU minimum system circuit 21, an ethernet switching circuit 22, a USB circuit 23, an NB-IOT circuit 24, and an interface board connector 25, and the IO selection module 30 includes a processor IO selection circuit 31, an input interface circuit 32, an output interface circuit 33, and a peripheral IO selection circuit 34.
In one embodiment of the present application, an external power supply provides 220V ac power to the power module 10, an external power interface is connected to an interface of the power module 10, the interface is directly connected to the protection circuit 11, the protection circuit 11 filters ripple voltage in the voltage output by the whole wave, prevents the ripple voltage interference from affecting the normal operation of the system, plays a role of filtering protection, and then transmits the filtered voltage to the isolation circuit 12; the isolation circuit 12 is respectively connected with the protection circuit 11 and the minimum system circuit 21 of the CPU of the main control module 20, the isolation circuit 12 isolates and reduces the filtered voltage to obtain a 5V dc voltage, and plays a role in overcurrent protection and protecting a rear-stage circuit, so as to prevent the front-stage circuit and the rear-stage circuit from interfering with each other, wherein the rear-stage circuit refers to the minimum system circuit 21 of the CPU of the main control module 20; the dc voltage of 5V is then transmitted to the CPU minimum system circuit 21 of the main control module 20.
In an embodiment of the present application, in the main control module 20, the CPU minimum system circuit 21 is connected to the ethernet switching circuit 22, and 1 network port is expanded out of 6 network ports through the network port switching chip, and is connected to the external device after being isolated by the network port transformer; the CPU minimum system circuit 21 is connected with the USB circuit 23, one path of USB interface is expanded into 2 paths of USB interfaces which are USB2.0 interfaces, one path is a USB Host, and the other path is a USB OTG 0; the USB controls the data transmission of the whole bus by the Host control end. Only one Host can exist on a single USB bus; USB OTG, which is called On The Go entirely, is a mode introduced in USB2.0, and proposes a new concept called Host Negotiation Protocol (Host Negotiation Protocol) that allows The business between two devices to determine who is going to Host. The CPU minimum system circuit 21 is connected with the NB-IoT circuit 24 through an I2C or a UART interface, and the NB-IoT chip is used for realizing the functions of NB-IoT.
In an embodiment of the present application, a GPIO pin led out from the CPU minimum system circuit 21 is connected to an IO direction peripheral IO selection circuit 31, and the processor IO selection circuit 31 is further connected to an input interface circuit 32 and an output interface circuit 33, where the GPIO pin led out from the CPU minimum system circuit 21 has only one pin, so that the processor IO selection circuit 31 is used to select whether to connect a pin of the CPU to the input interface circuit 32 or the output interface circuit 33; the other ends of the input interface circuit 32 and the output interface circuit 33 are connected to a peripheral IO selection circuit 34, and since the input interface circuit 32 and the output interface circuit 33 each have one end to be connected and the external device has only one interface, the peripheral IO selection circuit 34 functions to select whether the input interface circuit 32 or the output interface circuit 33 is connected to the external device.
In an embodiment of the application, since the digital quantity input and the digital quantity input of the GPIO can be configured by software, before using the embedded industrial controller, the GPIO of the CPU needs to be configured by using upper computer software to select whether the GPIO is used as the digital quantity output or the digital quantity input, but since the GPIO on the CPU has only one pin, the GPIO pin needs to be connected to the processor selection circuit 31, the processor selection circuit 31 includes a selection chip, and after the digital quantity input or the digital quantity output is configured by the upper computer software, the selection chip selects to turn on the corresponding input interface circuit 32 or the corresponding output interface circuit 33; similarly, the peripheral selection circuit 34 also selects to turn on the corresponding input interface circuit 32 or output interface circuit 33 after the GPIO pin is configured with input or output by the upper computer software. In contrast, the processor selection circuit 31 is connected to the CPU minimum system 21, and the peripheral IO selection circuit 34 is connected to an external device.
In an embodiment of the present application, each module of the embedded industrial controller, the power module 10, the main control module 20 and the IO selection module 30, are designed separately, and each module can be disassembled and reassembled, so that for different applications, for example, in the case that the external power supply is not 220V, the power module 10 can be replaced, and a power module applicable to the current application is additionally designed; similarly, the master control module 20 or the IO selection module 30 may be replaced to adapt to the current application.
The embodiment of the utility model provides an embedded industrial controller based on GPIO, which flexibly configures the digital quantity input and the digital quantity output of the GPIO of a CPU by using software, and connects a GPIO pin to a circuit which can select input and output, thereby flexibly selecting one path of GPIO interface as a digital quantity input interface or a digital quantity output interface on the premise of not increasing an external interface. And because each module is designed independently, when the embedded industrial controller is not suitable for the current application, only a single module needs to be replaced without replacing the whole embedded industrial controller, which undoubtedly greatly reduces the development cost and greatly improves the applicability of the embedded industrial controller.
Referring to fig. 3 and 4, an embodiment of the present invention provides another GPIO-based embedded industrial controller, where the embedded industrial controller includes a power module 10, a main control module 20, an IO selection module 30, and an interface extension module 40, where the power module 10 includes a protection circuit 11 and an isolation circuit 12, the main control module 20 includes, but is not limited to, a CPU minimum system circuit 21, an ethernet switching circuit 22, a USB circuit 23, an NB-IOT circuit 24, and an interface board connector 25, the IO selection module 30 includes a processor IO selection circuit 31, an input interface circuit 32, an output interface circuit 33, and a peripheral IO selection circuit 34, and the interface extension module 40 includes 8 GPIO interface circuits 41, a CAN interface circuit 42, an RS interface circuit 43, an RS485 interface circuit 44, and an RS232 interface circuit 45.
In one embodiment of the present application, an external power supply provides 220V ac power to the power module 10, an external power interface is connected to an interface of the power module 10, the interface is directly connected to the protection circuit 11, the protection circuit 11 filters ripple voltage in the voltage output by the whole wave, prevents the ripple voltage interference from affecting the normal operation of the system, plays a role of filtering protection, and then transmits the filtered voltage to the isolation circuit 12; the isolation circuit 12 is respectively connected with the protection circuit 11 and the minimum system circuit 21 of the CPU of the main control module 20, the isolation circuit 12 isolates and reduces the filtered voltage to obtain a 5V dc voltage, and plays a role in overcurrent protection and protecting a rear-stage circuit, so as to prevent the front-stage circuit and the rear-stage circuit from interfering with each other, wherein the rear-stage circuit refers to the minimum system circuit 21 of the CPU of the main control module 20; the dc voltage of 5V is then transmitted to the CPU minimum system circuit 21 of the main control module 20.
In an embodiment of the present application, in the main control module 20, the CPU minimum system circuit 21 is connected to the ethernet switching circuit 22, and 1 network port is expanded out of 6 network ports through the network port switching chip, and is connected to the external device after being isolated by the network port transformer; the CPU minimum system circuit 21 is connected with the USB circuit 23, one path of USB interface is expanded into 2 paths of USB interfaces which are USB2.0 interfaces, one path is a USB Host, and the other path is a USB OTG 0; the USB controls the data transmission of the whole bus by the Host control end. Only one Host can exist on a single USB bus; USB OTG, which is called On The Go entirely, is a mode introduced in USB2.0, and proposes a new concept called Host Negotiation Protocol (Host Negotiation Protocol) that allows The business between two devices to determine who is going to Host. The CPU minimum system circuit 21 is connected with the NB-IoT circuit 24 through an I2C or a UART interface, and the NB-IoT chip is used for realizing the functions of NB-IoT.
In an embodiment of the present application, a GPIO pin led out from the CPU minimum system circuit 21 is connected to an IO direction peripheral IO selection circuit 31, and the processor IO selection circuit 31 is further connected to an input interface circuit 32 and an output interface circuit 33, where the GPIO pin led out from the CPU minimum system circuit 21 has only one pin, so that the processor IO selection circuit 31 is used to select whether to connect a pin of the CPU to the input interface circuit 32 or the output interface circuit 33; the other ends of the input interface circuit 32 and the output interface circuit 33 are connected to the peripheral IO selection circuit 34, and since one end of each of the input interface circuit 32 and the output interface circuit 33 needs to be connected and the 8-way GPIO interface circuit 41 has only one interface, the peripheral IO selection circuit 34 is used to select whether the input interface circuit 32 or the output interface circuit 33 is connected to the 8-way GPIO interface circuit 41.
In an embodiment of the application, since the digital quantity input and the digital quantity input of the GPIO can be configured by software, before using the embedded industrial controller, the GPIO of the CPU needs to be configured by using upper computer software to select whether the GPIO is used as the digital quantity output or the digital quantity input, but since the GPIO on the CPU has only one pin, the GPIO pin needs to be connected to the processor selection circuit 31, the processor selection circuit 31 includes a selection chip, and after the digital quantity input or the digital quantity output is configured by the upper computer software, the selection chip selects to turn on the corresponding input interface circuit 32 or the corresponding output interface circuit 33; similarly, the peripheral selection circuit 34 also selects to turn on the corresponding input interface circuit 32 or output interface circuit 33 after the GPIO pin is configured with input or output by the upper computer software.
In an embodiment of the present application, the peripheral IO selection module is connected to the 8-way GPIO interface circuit 41 of the interface expansion module 20, and the 8-way GPIO interface circuit 41 is used to expand GPIOs that have been configuration-selected; the CPU minimum system circuit 21 is connected to the interface expansion module 40 through the interface board connector 25, and the interface expansion module is used to expand various resources on the main control module, such as a CAN interface, an HDMI, an RS232 interface, an RS485 interface, and the like.
In an embodiment of the present application, the interface expansion circuit 40 expands 8 channels of GPIO interfaces 41 to connect with an external device, the 1 channel of CAN communication interface 42 is used to implement CAN communication, the 2 channels of RS485 communication interfaces 43 and 44 are used to implement RS485 communication, and the 1 channel of RS232 communication interface 45 is used to implement RS232 communication. The interface expansion module 40 is fixed to the main control module by the interface board connector 25.
In an embodiment of the present application, each module of the embedded industrial controller, the power module 10, the main control module 20, the IO selection module 30, and the interface expansion module 40, are individually designed, and each module can be disassembled and reassembled, so that for different applications, for example, when the external power supply is not 220V, the power module 10 can be replaced, and a power module applicable to the current application is additionally designed; when more interfaces or different interfaces are needed in the application occasion, the interface expansion module 40 can be replaced, and an interface expansion module 40 which can be applied to the current occasion is additionally designed; similarly, the master control module 20 or the IO selection module 30 may be replaced to adapt to the current application.
The embodiment of the utility model provides an embedded industrial controller based on GPIO, which flexibly configures the digital quantity input and the digital quantity output of the GPIO of a CPU by using software, and connects a GPIO pin to a circuit which can select input and output, thereby flexibly selecting one path of GPIO interface as a digital quantity input interface or a digital quantity output interface on the premise of not increasing an external interface. In addition, the number of external interfaces is expanded, and because each module is designed independently, when the embedded industrial controller is not suitable for the current application, only a single module needs to be replaced without replacing the whole embedded industrial controller, so that the development cost is undoubtedly greatly reduced, and the applicability of the embedded industrial controller is greatly improved.
It should be noted that the description of the present invention and the accompanying drawings illustrate preferred embodiments of the present invention, but the present invention may be embodied in many different forms and is not limited to the embodiments described in the present specification, which are provided as additional limitations to the present invention and to provide a more thorough understanding of the present disclosure. Moreover, the above technical features are combined with each other to form various embodiments which are not listed above, and all the embodiments are regarded as the scope of the present invention described in the specification; further, modifications and variations will occur to those skilled in the art in light of the foregoing description, and it is intended to cover all such modifications and variations as fall within the true spirit and scope of the utility model as defined by the appended claims.
Claims (10)
1. An embedded industrial controller based on GPIO is characterized by comprising:
the power supply module is respectively connected with an external input power supply and the main control module and is used for providing working voltage for the main control module;
the IO selection module is connected with the main control module and used for selecting the GPIO in the main control module as an input or output interface of external equipment according to the control of the main control module;
and the main control module is respectively connected with the power supply module and the IO selection module and used for controlling the IO selection module so as to select the GPIO in the main control module as an input or output interface of external equipment.
2. The GPIO-based embedded industrial controller of claim 1, wherein the power module comprises: the protection circuit is connected with an external power supply and the isolation circuit respectively, and the isolation circuit is connected with the protection circuit and the main control module respectively.
3. The GPIO-based embedded industrial controller of claim 1, wherein the IO selection module comprises: the input interface circuit is connected with the output interface circuit, and the peripheral IO selection circuit is connected with the CPU minimum system circuit of the main control module.
4. The embedded industrial controller based on GPIO of claim 3, wherein the processor IO selection circuit and the peripheral IO selection circuit comprise selection chips, and the processor IO selection circuit and the peripheral IO selection circuit selectively turn on the input interface circuit or the output interface circuit through the selection chips.
5. The GPIO-based embedded industrial controller of claim 1, wherein the master control module comprises: the device comprises a CPU minimum system circuit, an Ethernet switching circuit, a USB circuit, an NB-IoT circuit and an interface board connector, wherein the CPU minimum system circuit is respectively connected with the Ethernet switching circuit, the USB circuit, the NB-IoT circuit and the interface board connector.
6. The GPIO-based embedded industrial controller of claim 1, wherein the master control module employs an i.MX.6.DualLit dual-core 800M master frequency processor.
7. The embedded industrial controller based on GPIO of claim 1, wherein the power module, IO selection module, and main control module are separate entities in function and structure.
8. The GPIO-based embedded industrial controller of claim 1, further comprising an interface extension module, wherein the interface extension module is connected to the main control module, the IO selection module and an external device, and the interface extension module is connected to the main control module through an interface board connector on the main control module.
9. The GPIO-based embedded industrial controller of claim 8, wherein the interface expansion module comprises: a GPIO interface circuit, a CAN circuit, an RS485 circuit and an RS232 circuit; and the GPIO interface circuit is respectively connected with the IO selection circuit of the processor of the IO selection module and an interface of external equipment.
10. A GPIO-based embedded industrial controller as claimed in claim 8 or 9, wherein said interface extension module is a separate entity in function and structure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202123276200.4U CN216623005U (en) | 2021-12-23 | 2021-12-23 | Embedded industrial controller based on GPIO |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202123276200.4U CN216623005U (en) | 2021-12-23 | 2021-12-23 | Embedded industrial controller based on GPIO |
Publications (1)
Publication Number | Publication Date |
---|---|
CN216623005U true CN216623005U (en) | 2022-05-27 |
Family
ID=81683135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202123276200.4U Active CN216623005U (en) | 2021-12-23 | 2021-12-23 | Embedded industrial controller based on GPIO |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN216623005U (en) |
-
2021
- 2021-12-23 CN CN202123276200.4U patent/CN216623005U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105785958B (en) | Multi-functional data collector, acquisition system and method based on wisdom factory | |
CN102724093A (en) | Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof | |
CN109726059A (en) | A kind of server test system | |
CN101794267A (en) | USB (Universal Serial Bus) switching device and realizing method thereof | |
CN104484303A (en) | 1553B node circuit based on SoC (system on a chip) chip | |
CN102445981B (en) | Data transmission system and data transmission method | |
CN110362525A (en) | A kind of method, system and board for realizing Multi-serial port switching based on CPLD | |
CN216623005U (en) | Embedded industrial controller based on GPIO | |
CN112506732A (en) | Debugging platform | |
CN110855581B (en) | Domestic exchange blade device suitable for VPX framework 40G and SRIO multiplexing | |
CN102693203A (en) | Embedded USB (universal serial bus) host | |
CN204836201U (en) | High compatible ARM communication manager | |
CN103869883B (en) | One kind extension mainboard and expansion system | |
CN110602821A (en) | POE power supply-based light control system, method and storage medium | |
CN214042097U (en) | PLC serial port communication extension module capable of customizing protocol | |
CN213122967U (en) | RS485 signal sharing device | |
CN209433397U (en) | Multichannel usb signal switching device | |
CN209029000U (en) | Engineering machinery display screen, engineering machinery and project monitor and control system | |
CN207882745U (en) | A kind of PLC controller, PLC controller group system | |
CN203551987U (en) | Analog input and output extension module | |
CN102929194B (en) | Asynchronous multi-core programmable automation controller (PAC) | |
CN210721099U (en) | STM 32-based gating control system | |
CN216118766U (en) | Protocol converter of USB bus and PC104 bus | |
CN204680012U (en) | A kind ofly meet the standard-sized CAN Interface Control Panel of 3U CPCI based on multi-disc arm processor | |
CN110535342A (en) | A kind of voltage-operated device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |