Asee peer logo

Development Of A Matlab Data Acquisition And Control Toolbox For Pic Microcontrollers

Download Paper |

Conference

2007 Annual Conference & Exposition

Location

Honolulu, Hawaii

Publication Date

June 24, 2007

Start Date

June 24, 2007

End Date

June 27, 2007

ISSN

2153-5965

Conference Session

Embedded Computing

Tagged Division

Computers in Education

Page Count

12

Page Numbers

12.512.1 - 12.512.12

Permanent URL

https://peer.asee.org/2497

Download Count

744

Request a correction

Paper Authors

biography

Sang-Hoon Lee Polytechnic University

visit author page

SANG-HOON LEE was born in Seoul, Korea. He received the B.S. degree in Mechanical Engineering from Sung Kyun Kwan University, Seoul, Korea, in 1996 and the M.S. degree in Mechanical Engineering from Polytechnic University, Brooklyn, NY, in 2002. From 1996 to 1997, he worked for Samsung Engineering Co., Ltd. in Korea. He is currently continuing research at Polytechnic University as a doctoral student. His research interests include linear/nonlinear control and mechatronics.

visit author page

biography

Anshuman Panda Polytechnic University

visit author page

ANSHUMAN PANDA was born in New Delhi, India. He is currently pursuing a dual B.S/M.S. degree in Electrical Engineering and expects to graduate in June 2007. He is a member of Tau Beta Pi. He has worked as a teaching and research assistant with responsibilities in the area of mechatronics.

visit author page

author page

Vikram Kapila Polytechnic University

biography

Hong Wong Polytechnic University

visit author page

HONG WONG was born in Hong Kong, China. In June of 2000 and 2002, he received the B.S. and M.S. degrees, respectively, in Mechanical Engineering from Polytechnic University, Brooklyn, NY. He is a member of Pi Tau Sigma and Tau Beta Pi. He worked for the Air Force Research Laboratories in Dayton, OH, during the summers of 2000 and 2001. He is currently a doctoral student at Polytechnic University and expects to graduate in June 2007. His research interests include control of mechanical and aerospace systems.

visit author page

Download Paper |

Abstract
NOTE: The first page of text has been automatically extracted and included below in lieu of an abstract

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.

1. Introduction

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