A low-cost, real-time methodology for embedded devices based on well-known open source kernel - freeRTOS is presented in this study. The real-time algorithm designed consists of three main steps. Firstly, the algorithm is designed and evaluated by utilizing Matlab/Simulink toolboxes. Secondly, the generic embedded C code is generated by Matlab program. Finally, freeRTOS Tasks code is utilized based on C code generated to build and run on embedded targets. This real-time algorithm is demonstrated on a two-wheeled self-balancing robot which is employed a fuzzy PID self-tuning controller. The designed controller is executed on a famous ARM Cortex M4 core microcontroller STM32F407VTG. The experimental results show that algorithm designed operated well on embedded systems. The tracking position and rotation angle response are so good with low steady error (i.e. 0.01 [m] and less than 1.15 degrees, respectively) while stabilizing the two-wheeled at the upright. The real-time system designed is a low cost methodology and suitable for embedded system designers
Tạp chí khoa học Trường Đại học Cần Thơ
Lầu 4, Nhà Điều Hành, Khu II, đường 3/2, P. Xuân Khánh, Q. Ninh Kiều, TP. Cần Thơ
Điện thoại: (0292) 3 872 157; Email: tapchidhct@ctu.edu.vn
Chương trình chạy tốt nhất trên trình duyệt IE 9+ & FF 16+, độ phân giải màn hình 1024x768 trở lên