June 24, 2007
June 24, 2007
June 27, 2007
Computers in Education
12.512.1 - 12.512.12
Development of a Matlab Data Acquisition and Control Toolbox for PIC Microcontrollers
Abstract—This paper presents a personal computer (PC)-based data acquisition and control tool that uses a Peripheral Interface Controller (PIC) microcontroller, Matlab, and Simulink. Specifically, a library of PIC microcontroller functions for Simulink is created. Moreover, the PIC microcontroller and Matlab are merged, by exploiting their serial communication capability, to produce an inexpensive data acquisition and control platform. Finally, the efficacy of this data acquisition and control platform is illustrated by performing angular position control of a DC motor.
Data acquisition and control boards are essential for interfacing sensors/actuators with decision making devices such as a PC. Thus, data acquisition and control boards are used in monitoring/instrumentation applications involving machinery, process, environment, etc., and in automatic control applications. Even though a variety of data acquisition and control boards have become widely available in the last 15 years, the systems that target the educational sector and provide support for icon-based programming environments, such as LabVIEW1 and Simulink,2 tend to be quite expensive (over $500 to several thousand dollars). Moreover, instructional labs generally may not require the intrinsic high-performance features of many of the commercially available data acquisition and control boards (e.g., high sampling rates, high resolution analog to digital converters, etc.) for the typical electro-mechanical laboratory experiments. This paper proposes a microcontroller-based data acquisition and control system that is particularly suitable for educators interested in developing lab experiments that do not require high-cost, high- performance data acquisition hardware and yet can benefit from the icon-based programming environment of Simulink.
Several recent papers have focused on interfacing low-cost microcontrollers (such as Basic Stamp 2 (BS2) and PIC) with icon-based programming environments such as LabVIEW and Simulink. Specifically, Refs. 3—5 concentrated primarily on endowing microcontrollers with graphical user interface (GUI) capability by exploiting the GUI tools of LabVIEW and Simulink. However, the methodology of Refs. 3—5 requires manually programming the microcontroller for all sensing, control computation, and actuation tasks and for serial communication with the GUI running on the PC. To program a PIC microcontroller or a BS2 microcontroller using PIC assembly programming language or PBasic programming language, respectively, requires knowledge and experience with the syntax of these languages and is often tedious.
This paper proposes a PIC microcontroller based low-cost data acquisition and control system that exploits Matlab and Simulink as the key software components for implementing data acquisition and control algorithms using a block-diagram format. Specifically, the paper exploits a newly developed library of PIC functions for Simulink and the serial communication capability
Lee, S., & Panda, A., & Kapila, V., & Wong, H. (2007, June), Development Of A Matlab Data Acquisition And Control Toolbox For Pic Microcontrollers Paper presented at 2007 Annual Conference & Exposition, Honolulu, Hawaii. https://peer.asee.org/2497
ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2007 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015