Inverted pendulum experiment platform based on industrial robot
By using an inverted pendulum experimental platform based on industrial robots and utilizing wireless communication between PLC and mobile phone sensors, the problems of difficult-to-promote control algorithms and low sensor versatility in existing technologies have been solved. This has enabled the convenient application of cross-brand robots and experimental platforms, and promoted the integration of teaching and scientific research.
Patent Information
- Application Number
- CN202420127993.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2034-01-18
AI Technical Summary
When existing inverted pendulum experimental platforms use industrial robots as the power source, the control algorithms are difficult to promote, and the sensors have low versatility and require physical cable connections, which limits their widespread use in teaching and research.
Using an industrial robot as the power source, the system combines a PLC with a mobile phone pendulum mechanism. The phone's sensors measure the angle and wirelessly transmit the data to MATLAB software for algorithm control, achieving balance in an inverted pendulum. The phone and computer are wirelessly connected, and the PLC controls the robot via Modbus TCP communication, avoiding the need to understand the internal algorithms of different robot brands.
It improved the versatility and convenience of experiments, increased student interest, enabled the application of robots across different brands, reduced hardware requirements, built a bridge between theory and engineering practice, and promoted the verification and improvement of control algorithms.
Smart Images

Figure CN221687117U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of automatic control, in particular to an inverted pendulum experimental platform based on an industrial robot. Background Art
[0002] The inverted pendulum is a typical multivariable, high-order, nonlinear, strongly coupled, and naturally unstable system. The stability control of the inverted pendulum system is a typical problem in control theory. The control process of the inverted pendulum can effectively reflect many key problems in control theory, such as nonlinear problems, robustness problems, follow-up problems, stabilization, tracking problems, etc. Many control problems in engineering practice, such as bipedal robot walking, balance cars, helicopters, rocket launches, etc., can be abstracted as inverted pendulum control problems. Therefore, as a typical physical model in control theory teaching and scientific research, the inverted pendulum system is often used to test the correctness of new control theories and algorithms and their effectiveness in practical applications.
[0003] The inverted pendulum experimental platform is a control algorithm verification platform widely used in the field of automatic control theory research. Commonly used inverted pendulum structures include linear, circular, flat, two-wheeled and seesaw types. Existing inverted pendulum experimental platforms have the following defects:
[0004] On the one hand, the key power components of the inverted pendulum include rotary motors, linear motors, pneumatic actuators, etc. There is little research on using industrial robots as the power part. When using industrial robots as the power part, the controller of the industrial robot needs to be controlled by algorithms. However, there are many industrial robots on the market, and it is difficult to understand their control algorithms. In addition, the control algorithms within each robot are different, which is not conducive to the promotion of teaching, training and research. On the other hand, the existing sensors for measuring the angle of the pendulum include angle encoders, linear encoders, potentiometers, and attitude sensors. These sensors must be connected with physical cables, and are usually special inverted pendulum structures. The algorithms are relatively simple and the versatility is low. Utility Model Content
[0005] The utility model aims to overcome the problems existing in the existing inverted pendulum experimental platform and provides an inverted pendulum experimental platform based on an industrial robot.
[0006] The purpose of this utility model is achieved through the following technical solutions:
[0007] Provided is an inverted pendulum experimental platform based on an industrial robot, comprising a computer, a PLC, an industrial robot and a mobile phone swing mechanism connected in sequence; wherein the mobile phone swing mechanism comprises a mobile phone used as a swing and a rotating shaft, one end of the mobile phone and the rotating shaft are connected through a bearing, the other end of the rotating shaft is connected to the industrial robot through a robot end fixture, and the mobile phone is wirelessly connected to the computer; the PLC is connected to the industrial robot through a Modbus interface, and a sensor for obtaining a rotation angle in real time is provided in the mobile phone.
[0008] Preferably, in an inverted pendulum experimental platform based on an industrial robot, the mobile phone is provided with a sensorudp APP, and the sensorudp APP is connected to the sensor; the computer is provided with a matlab software, and the sensorudp APP is connected to the matlab software through a user datagram protocol UDP.
[0009] Preferably, in an inverted pendulum experimental platform based on an industrial robot, the computer and the PLC are connected via an OPC interface.
[0010] Preferably, in an inverted pendulum experimental platform based on an industrial robot, the mobile phone swing arm mechanism further comprises a mobile phone case, the mobile phone is placed in the mobile phone case, and the bearing is connected to the mobile phone case.
[0011] Preferably, in an inverted pendulum experimental platform based on an industrial robot, the PLC model is Siemens PLC1200.
[0012] Preferably, an inverted pendulum experimental platform based on an industrial robot, the model of the industrial robot is Huasu HSR-JR612.
[0013] It should be further explained that the technical features corresponding to the above options can be combined or replaced with each other to form a new technical solution if there is no conflict.
[0014] Compared with the prior art, the utility model has the following beneficial effects:
[0015] (1) This utility model is different from the platform that directly develops and tests the underlying control algorithm of the industrial robot. It uses the industrial robot as the power source, and its PLC indirectly controls the industrial robot through Modbus TCP communication to achieve the balance of the inverted pendulum. It does not need to understand the internal control algorithms of various brands of industrial robots. As long as it can communicate with the PLC, it is easy to promote to other different models of industrial robots, and has a wide range of applications. The mobile phone swing mechanism and the computer are connected wirelessly, without the need for physical cables, and have high versatility.
[0016] (2) In one example, a smartphone is used as a pendulum, and the sensor in it measures the angle of the pendulum, that is, as a sensor in an inverted pendulum, the angle of the pendulum is transmitted to MATLAB in real time through UDP wireless communication to measure the angle of the pendulum, and the algorithm is controlled through MATLAB software to achieve inverted pendulum balance control. The advantages of smartphone sensors can be fully utilized to improve the convenience and fun of the experiment. At the same time, using the mobile phone itself as a sensor will increase students' interest sharply. They are more willing to learn while playing and play while learning. It is more generalizable and can not only verify the classic methods of nonlinear control, but also be applied to automatic control related courses to improve students' experimental enthusiasm.
[0017] (3) In one example, the inverted pendulum experimental platform studied in this utility model is based on the Wasu Industrial Robot Application Programming 1+X Assessment Equipment. It does not require the purchase of other power sources such as motors, nor the development of mechanical transmission components. Instead, it only needs to match the pendulum mechanical components to build a complete inverted pendulum hardware system. Taking into account both scientific research and teaching applications, the inverted pendulum experimental platform studied in this project can be used in the practical teaching of control courses, and can also be used by scientific researchers to verify and improve control algorithms.
[0018] (4) In one example, an inverted pendulum experimental platform based on an industrial robot was used in an automatic control experimental course, which established a bridge between theoretical teaching and engineering practice and played a positive role in cultivating students' ability to design, develop and verify control algorithms. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a structural schematic diagram of an inverted pendulum experimental platform based on an industrial robot shown in an embodiment of the utility model;
[0020] Figure 2 This is a schematic diagram of a mobile phone swing lever mechanism according to an embodiment of the utility model;
[0021] Figure 3 This is a schematic diagram of the structure of a robot end fixture according to an embodiment of the utility model;
[0022] Figure 4 The communication method and closed-loop control flow chart of the platform shown in the embodiment of the utility model. DETAILED DESCRIPTION
[0023] The technical solution of the utility model is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0024] In the description of the present invention, it should be noted that the directions or positional relationships indicated by "center", "up", "down", "left", "right", "vertical", "horizontal", "inside" and "outside" are directions or positional relationships based on the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0025] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0026] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0027] Reference Figure 1-Figure 3 , provides an inverted pendulum experimental platform based on an industrial robot, comprising a computer, a PLC, an industrial robot and a mobile phone swing mechanism connected in sequence; wherein the mobile phone swing mechanism comprises a mobile phone used as a swing and a rotating shaft, one end of the mobile phone and the rotating shaft are connected through a bearing, the other end of the rotating shaft is connected to the industrial robot through a robot end fixture, and the mobile phone is wirelessly connected to the computer; the PLC is connected to the industrial robot through a Modbus interface, and a sensor for obtaining a rotation angle in real time is provided in the mobile phone.
[0028] Specifically, except for mobile phones and computers that use WiFi wireless communication to exchange data, other devices are connected by network cables. PLC and industrial robots rely on existing equipment, Huasu Industrial Robot Application Programming 1+X Assessment Equipment, which can be found in various university laboratories. There is no need to purchase other power sources such as motors, and there is no need to develop mechanical transmission components. Instead, a complete inverted pendulum hardware system can be built by matching the pendulum mechanical components. Taking into account both scientific research and teaching applications, the inverted pendulum experimental platform studied in this project can be used in practical teaching of control courses, and can also be used by scientific researchers to verify and improve control algorithms.
[0029] The mobile phone is provided with a sensorudp APP, which is connected to the sensor; the computer is provided with a matlab software, which is connected to the matlab software via the user datagram protocol UDP, and is used for setting the inverted pendulum balance control algorithm and transmitting data, including obtaining the swing bar angle data from the mobile phone, and sending command data to the PLC. The PLC used here to control the industrial robot is not required to understand the layer control algorithm of the industrial robot, because the control system of the industrial robot is generally relatively closed, and the algorithms of each model of industrial robot are different, and the promotion is poor.
[0030] Furthermore, the industrial robot connects the mobile phone swing arm mechanism through the robot end fixture. The composition of the mobile phone swing arm mechanism is as follows Figure 2 , which consists of a robot end fixture and a mobile phone swing mechanism assembly. The mobile phone swing mechanism is connected by a rotatable bearing and a mobile phone case. The shaft is connected to the bearing and the robot end fixture respectively, and the mobile phone is placed in the mobile phone case. The mobile phone here acts as a swing rod and can rotate along the shaft, while the industrial robot gives the swing rod x-direction movement.
[0031] First, the direction of the mobile phone sensor is obtained through the sensorudp APP installed on the mobile phone. The three data points are the X, Y and Z coordinate components of the position reading, namely the azimuth, pitch and roll components, in degrees, and we only read the pitch angle here. Then it is transmitted to the computer's matlab software through UDP wireless communication. UDP (User Data Protocol) is the user datagram protocol. The premise for normal transmission here is that the mobile phone and computer are in the same WiFi environment.
[0032] Furthermore, the computer and the PLC are connected via an OPC interface. The OPC communication protocol allows simplified data exchange between different devices and applications, and users do not need to understand other specific development languages and development environments. The hardware of the OPC server is based on the products of various suppliers, which integrates their respective differences and can form a system without relying on specific hardware. The OPC server consists of an OPC interface and an application that receives the service.
[0033] Furthermore, Modbus communication is an industrial fieldbus protocol standard. Schneider launched the Modbus TCP protocol based on Ethernet TCP / IP. This protocol is a TCP (Transmission Control Protocol) message type, and has no requirements for the type of network, because this protocol only defines the message structure that the controller can recognize, and does not define the physical layer. Usually, the Master / Slave method is used for communication. ModbusTCP is an open protocol. IANA (Internet Assigned Numbers Authority) assigns the Modbus protocol a TCP port number of 502, which is currently the only port number assigned in the instrumentation and automation industry. Modbus became my country's national standard in 2004. In this platform, the Modbus-TCP communication protocol is used between the industrial robot and the PLC. Its PLC indirectly controls the industrial robot through Modbus TCP communication to achieve the balance of the inverted pendulum. There is no need to understand the internal control algorithms of industrial robots of various brands. As long as it can communicate with the PLC, it is easy to promote to other different models of industrial robots, and has a wide range of applications. The mobile phone swing arm mechanism and the computer are connected wirelessly, without the need for physical cables, and are highly versatile.
[0034] Furthermore, the mobile phone swing arm mechanism also includes a mobile phone case, the mobile phone is placed in the mobile phone case, and the bearing is connected to the mobile phone case. The mobile phone can be protected by the mobile phone case to avoid damage during the experiment.
[0035] Furthermore, the model of the PLC is Siemens PLC1200. The model of the industrial robot is Huasu HSR-JR612.
[0036] Further, refer to Figure 4 , the communication method and closed-loop control process of this platform are as follows:
[0037] During the rotation of the mobile phone, its internal sensor can obtain the rotation angle in real time and transmit it to the computer matlab through UDP wireless communication. Matlab receives the angle data and outputs the control parameters through the algorithm, which are first transmitted to the PLC through OPC communication, and then the PLC transmits it to the industrial robot through Modbus TCP communication. After receiving the control parameter signal, the industrial robot executes the x-direction displacement command and moves the mobile phone pendulum through the end fixture to achieve the balance of the inverted pendulum.
[0038] The above specific implementation methods are detailed descriptions of the present utility model. It cannot be determined that the specific implementation methods of the present utility model are limited to these descriptions. For ordinary technicians in the technical field to which the present utility model belongs, they can make several simple deductions and substitutions without departing from the concept of the present utility model, which should be regarded as belonging to the protection scope of the present utility model.
Claims
1. An inverted pendulum experimental platform based on an industrial robot, characterized in that: It includes a computer, a PLC, an industrial robot and a mobile phone swing mechanism which are connected in sequence; wherein the mobile phone swing mechanism includes a mobile phone used as a swing and a rotating shaft, one end of the mobile phone and the rotating shaft are connected through a bearing, the other end of the rotating shaft is connected to the industrial robot through a robot end fixture, and the mobile phone is wirelessly connected to the computer; the PLC is connected to the industrial robot through a Modbus interface, and the mobile phone is provided with a sensor for obtaining the rotation angle in real time.
2. The inverted pendulum experimental platform based on an industrial robot according to claim 1, characterized in that: The mobile phone is provided with a sensorudp APP, and the sensorudp APP is connected to the sensor; the computer is provided with a matlab software, and the sensorudp APP is connected to the matlab software via a user datagram protocol UDP.
3. The inverted pendulum experimental platform based on an industrial robot according to claim 1, characterized in that: The computer and the PLC are connected via an OPC interface.
4. The inverted pendulum experimental platform based on an industrial robot according to claim 1, characterized in that: The mobile phone swing arm mechanism also includes a mobile phone shell, the mobile phone is placed in the mobile phone shell, and the bearing is connected to the mobile phone shell.
5. The inverted pendulum experimental platform based on an industrial robot according to claim 1, characterized in that: The model of the PLC is Siemens PLC1200.
6. The inverted pendulum experimental platform based on an industrial robot according to claim 1, characterized in that: The model of the industrial robot is Huasu HSR-JR612.
Citation Information
Cited By
Inverted pendulum control system based on network communication and experiment method
CN120540180A
An inverted pendulum control system and experimental method based on network communication
CN120540180B
