The goal of this paper is to explain and offer a solution to a problem that is often overlooked in the field of robotics and mechatronics used in transportation concepts. It is about the implementation of an existing motor drive based on control by a Controlled Area Network (CAN). This concept is proven, mainly in transport applications; however, it is not commonly applied in research articles. The term CAN is often slanted in the automotive embedded system, but the replacement of the embedded system by a computer as the master system is bringing many questions about its realization. Many research papers, due to that reason, prefer to use non-advanced actuators in the form of stepper motors for kits. A solution for the implementation of advanced servos communicated by CAN is offered in this paper. In addition to proposing the first solution for interface creation in robotic and mechatronic applications, the article offers a solution for developing a Graphical User Interface (GUI) using the C++/Qt framework, which allows for the development of an interface between a computer and a CAN converter. This solution is particularly important in the transportation sector, as it enables the development of specialized interfaces for communication with control units. For these tasks, LabView or MATLAB environments are widely used. However, the contribution of this article is to offer C++ with the Qt extension as a good replacement for a graphical programming environment. As is obvious, software engineering, electroengineering, and mechanical engineering are the three fundamental pillars that make up the methodology known as mechatronics. The answers, which are dealt with in the paper, discuss the connection between the programming and electrotechnology parts of mechatronics. A detailed description of the source code written in the C++ language and extended with the Qt framework is provided. This deals with Application Programming Interface (API) and motor control GUI example of the interface between a non-embedded master system and servo by USB2CAN converter. The freely downloadable source code provides a solution for the following challenges of implementation in the field of the research article.
Read full abstract