Nguyen Van Khanh *

* Corresponding author (vankhanh@ctu.edu.vn)

Main Article Content

Abstract

Recently, demand of implementation stand-alone embedded systems has increased sharply. This article represents a method for building a framework that can implement control algorithms designed on Matlab/Simulink to embedded sysems. An inverted pendulum stabilizing controller, running on a STMicroelectronics low-cost STM32F4 Discovery development kit, is used as a demonstration. The control algorithm, after designed and simulated on Matlab/Simulink, is configured to generate the corresponding embedded C code by using Matlab Realtime Embedded Coder. This code is combined with microcontroller peripheral libraries to make a complete Keil C project. In this project, the C language main function is generated automatically by using TLC – Target Language Compiler; however, users must write additional code to complete the whole coding. Experimental results of the demonstrative algorithm show that by using the proposed framework the control algorithm only has 0.001 ms of sample time error. Response quality of the inverted pendulum is as good as simulation results in term of fast response, low overshot and steady error.
Keywords: College of Engineering Technology, Can Tho University

Article Details

References

STMicroelectronics, 2011. Reference manual STM32F405xx, STM32F407xx, STM32F415xx and STM32F417xx advanced ARM-based 32-bit MCUs. 1315 pages.

STMicroelectronics, 2015. STM32F4DISCOVERY, assessed on 20 October 2015. Available from http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419

Geekiyanage, P., Jayarathne, H.T., Jayasinghe, L.A.D.I.T., Amarasinghe, Y.W.R., 2013. Development of Upgradable Mobile Platform for Smart Applications. The Seventh International Conference on Sensing Technology, pp.841-847

Chattunyakit, S., Kondo, T., Nilkhamhang, I., 2013. Development of Robotic Platform for Swarm Robots in Fire Detection Application. The Kasetsart Journal. 47: 967-976

Ngon, N., Truong, N.M., 2014. Applying the MCU-MSP430 to develop digital PID controller kits. The 7th Vietnam Conference on Mechatronics. 7: 96-100 (in Vietnamese)

Krstic, M., Kanellakopoulos, I., Kokotovic, P.V., 1995. Nonlinear and Adaptive Control Design. Wiley-Interscience Publication. New York. 576 pages

Khalil, H.K., 1996. Nonlinear Systems. Prentice Hall. New Jersey. 750 pages

Tsai, F.K., Lin, J.S., 2003. Nonlinear Control Design of 360-Degree Inverted Pendulum Systems. The Fourth International Conference on Control and Automation. 634-638

Nghia, D.H., 2007. Multivariable control systems. Vietnam National University. Ho Chi Minh City. 68 pages (in Vietnamese)

Khanh, N.V., Hao, N.V., Phong, N.N., 2014. Stabilization control an inverted pendulum using backstepping controller. Can Tho University Journal of Science. 31: 18-25 (in Vietnamese)

MathWorks, 2016. Simulink, assessed on 19 January 2016. Available from http://www.mathworks.com/products/simulink/?s_tid=hp_fp_sl

MathWorks, 2016. Model-Based Design, assessed on 19 January 2016. Available from http://www.mathworks.com/solutions/model-based-design/

Similar Articles

You may also start an advanced similarity search for this article.