BYOE: Affordable and Portable Laboratory Kit for Controls Courses

Similar documents
SERVO MOTOR CONTROL TRAINER

Low-Cost Mobile Lab Solutions for Individualized Mechatronic Education

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Remote Laboratory Operation: Web Technology Successes

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following

Microcontroller-based Feedback Control Laboratory Experiments

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

Low Cost Motor Control Systems Laboratory Kit for Distance Learning Courses

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

PCB & Circuit Designing (Summer Training Program) 6 Weeks/ 45 Days PRESENTED BY

AC : INTEGRATED HANDS-ON MECHANICAL SYSTEMS LAB- ORATORIES

The University of Wisconsin-Platteville

Microcontroller Based Closed Loop Speed and Position Control of DC Motor

GE 320: Introduction to Control Systems

ROCHESTER INSTITUTE OF TECHNOLOGY COURSE OUTLINE FORM COLLEGE OF SCIENCE. Chester F. Carlson Center for Imaging Science

INTERNATIONAL JOURNAL OF ELECTRICAL ENGINEERING & TECHNOLOGY (IJEET) THE DESIGN AND IMPLEMENTATION OF A SINGLE-PHASE POWER FACTOR CORRECTION CIRCUIT

Sensors and Sensing Motors, Encoders and Motor Control

Lab 5: Inverted Pendulum PID Control

EE 314 Spring 2003 Microprocessor Systems

Embedded Systems & Robotics (Winter Training Program) 6 Weeks/45 Days

A Do-and-See Approach for Learning Mechatronics Concepts

Design of an electronic platform based on FPGA-DSP for motion control applications

Quanser Products and solutions

AC : DEVELOPING A COURSE AND LABORATORY FOR EM- BEDDED CONTROL OF MECHATRONIC SYSTEMS

Robotics II DESCRIPTION. EXAM INFORMATION Items

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

Robust Control Design for Rotary Inverted Pendulum Balance

PCB & Circuit Designing

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

PCB & Circuit Designing (Summer Training Program 2014)

Closed loop speed control of dc motor using PID controller

International Journal of Advance Engineering and Research Development

AC : THE UBIQUITOUS MICROCONTROLLER IN MECHANICAL ENGINEERING: MEASUREMENT SYSTEMS

Arduino based pulse width modulated output voltage control of a dc-dc boost converter using Proportional, Integral and Derivative control strategy

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

AC : PSCAD SIMULATION IN A POWER ELECTRONICS APPLICATION COURSE

AC : REAL-TIME CONTROL IMPLEMENTATION OF SIMPLE MECHATRONIC DEVICES USING MATLAB/SIMULINK/RTW PLATFORM

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

ECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative

Real-Time Testing Made Easy with Simulink Real-Time

Configurable Control Systems of Power Converters for Instructional Laboratories

INVERTERS TESTING WITH TMS320F28335 USING SIMULINK BLOCK MATHEMATICAL MODELS

Advanced Mechatronics 1 st Mini Project. Remote Control Car. Jose Antonio De Gracia Gómez, Amartya Barua March, 25 th 2014

Teaching digital control of switch mode power supplies

Instructional Demos, In-Class Projects, & Hands-On Homework: Active Learning for Electrical Engineering using the Analog Discovery

EE152 Final Project Report

Training Schedule. Robotic System Design using Arduino Platform

MEASUREMENT, PROTECTION, SPEED CONTROL AND GRAPHICAL OBSERVATION OF DC MOTOR PARAMETERS BY ATMEGA-16 USING EMBEDDED SYSTEMS

BS-Electrical Engineering (Spring 1985) University of Oklahoma, Norman, OK

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Design of double loop-locked system for brush-less DC motor based on DSP

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

Matlab Data Acquisition and Control Toolbox for Basic Stamp Microcontrollers

SELF-BALANCING MOBILE ROBOT TILTER

ROBOTIC ARM FOR OBJECT SORTING BASED ON COLOR

Department of Mechatronics Engineering

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours)

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

DC motor control using arduino

Solar Mobius Final Report. Team 1821 Members: Advisor. Sponsor

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

General Purpose Controller Software for Controls Lab

MLAB - Matlab: Fundamentals And/Or Applications

Experiment Tests on Single Phase Inverter Using Raspberry Pi

Embedded Robotics. Software Development & Education Center

AC : ENHANCING MECHATRONICS EDUCATION USING MODEL- BASED TECHNIQUES AND MATHWORKS TOOLS

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

Undefined Obstacle Avoidance and Path Planning

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

BAXTER O'TULLE 132 Horace Ave Gordonville, KY (555)

Robotics & Embedded Systems (Summer Training Program) 4 Weeks/30 Days

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

Design of stepper motor position control system based on DSP. Guan Fang Liu a, Hua Wei Li b

Design and implementation of GSM based and PID assisted speed control of DC motor

PID Control with Derivative Filtering and Integral Anti-Windup for a DC Servo

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Teaching Mechanical Students to Build and Analyze Motor Controllers

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

العطاء رقم )7106/67( الخاص بشراء أجهز لقسم الهندسة الكهربائية على حساب البحث العلمي

ME 4447 / ME 6405 MICROPROCESSOR CONTROL OF MANUFACTURING SYSTEMS / INTRODUCTION TO MECHATRONICS

IN MANY industrial applications, ac machines are preferable

7 Lab: Motor control for orientation and angular speed

Sensors and Sensing Motors, Encoders and Motor Control

ME 487 Mechatronics. Office: JH 515, Tel.: (505)

Methodology for testing a regulator in a DC/DC Buck Converter using Bode 100 and SpCard

UC DAVIS CENTER FOR INTEGRATED COMPUTING AND STEM EDUCATION (C STEM) Implementation Brochure /2018. c-stem.ucdavis.edu

Speed Rate Corrected Antenna Azimuth Axis Positioning System

AN ARDUINO CONTROLLED CHAOTIC PENDULUM FOR A REMOTE PHYSICS LABORATORY

AC : A STUDENT-ORIENTED CONTROL LABORATORY US- ING PROGRAM CC

ROBOTC: Programming for All Ages

DSP-Based Simple Technique for Synchronization of 3 phase Alternators with Active and Reactive Power Load Sharing

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

Innovative Communications Experiments Using an Integrated Design Laboratory

SRV02-Series. Rotary Servo Plant. User Manual

EXPERIMENT 6: Advanced I/O Programming

Transcription:

Paper ID #13467 BYOE: Affordable and Portable Laboratory Kit for Controls Courses Rebecca Marie Reck, University of Illinois, Urbana-Champaign Rebecca M. Reck is currently pursuing a Ph.D. in systems engineering at the University of Illinois at Urbana-Champaign. She completed her master s degree in electrical engineering at Iowa State University during her eight years at Rockwell Collins and her bachelor s degree in electrical engineering with a mathematics minor, from Rose-Hulman Institute of Technology in 2005. Her research interests include controls, signal processing, and engineering education. Specific areas of controls and signal processing research include the design and modeling of intelligent controls, Kalman filters, and automation. Engineering education research includes curriculum and laboratory development for these concepts. c American Society for Engineering Education, 2015 Page 26.314.1

BYOE: Affordable and Portable Laboratory Kit for Control Systems Courses Presenter Information Feel free to contact the presenter for help implementing this in your classroom or laboratory. Rebecca Reck Department of Industrial and Enterprise Systems Engineering University of Illinois at Urbana-Champaign http://rebeccaee.com/labs rebecca@rebeccaee.com Summary A portable and affordable laboratory kit for an undergraduate control systems course will be demonstrated. The kit includes a Raspberry Pi (a single board computer), DC motor, and other circuits and sensors. The kit s custom components were 3D printed. All other components of the kit can be purchased from online retailers such as or for a total cost of about 130. This kit could replace expensive equipment with an affordable alternative that can be easily shipped anywhere in the world and used by students with any computer. The low cost and portability of the kit greatly enhance the accessibility of the laboratory experience to students in budget-strapped campus laboratories and those participating in distance education. Using a DC motor allows the instructor to assign experiments using a proportional-integralderivative (PID) to control the motor s position. 1 Additionally, a DC motor setup can be expanded to create more complex setups like the inverted pendulum. 2 Inverted pendulum experiments can illustrate different types of systems and different types of control methods. These methods include bang-bang control, fuzzy logic control, neural network control, PID adaptive control, robust control, hybrid control, predictive control, and feed-forward control. 3 Because of this versatility, both the DC Motor and inverted pendulum systems will be used as the basis for the kit being developed. Page 26.314.2

Pedagogical Context A controls laboratory experience should prepare students for a career in control systems 4 by performing the following steps: building the system, 5 modeling and analyzing the system, developing a controller to meet performance requirements, simulating the controller and system, observing the physical system, collecting the data, and using the data to improve the system model or control tuning. 6,7 Experiments based on DC motors 1,2 and inverted pendulums 6,8 have been identified to meet these goals for controls laboratory experiences. To date, five experiments have been designed for our new kit: introduction to the sensors, introduction to the equipment, first principles system identification, black box system identification, and PID control. These experiments align with the existing experiments in the first control systems course for general engineering students (GE320). The two introductory experiments enable students to get acquainted to the sensors and the equipment that will be used throughout the course. In the first principles system identification experiment, students measure the motor s individual parameters including the armature resistance and inductance to create a mathematical model. In the black box system identification, the students confirm their model from the previous experiment by analyzing the step and frequency response of the motor. In the final experiment, the students design, simulate, and test proportional, proportional + derivative, and proportional + speed controllers for the position of the motor. For all of the experiments the students use MATLAB and Simulink to program the Raspberry Pi and collect data. Sample Experiments Detailed instructions for each laboratory experiment can be found at http://coecsl.ece.illinois.edu/ge320/. Each of the laboratory experiments below were designed to be as close as possible to the existing equipment experiments, in order to reduce the risk of interruption to the course. Laboratory 1: In this experiment, the students become familiar with Simulink and building models to run on the Raspberry Pi. The students build proportional, derivative, and integration models similar to the ones they will create later in the semester. They also build a model with pulse width modulated signals to blink the LEDs on the breadboard. Laboratory 2: In this experiment, the students become familiar with the sensors that will be used throughout the semester. The deadzone of the motor and H-bridge is also measured in this experiment. The students are provided with a Simulink model that runs the motor and collects the data. The sensor measurements are displayed to the students in real time via a Scope block. Laboratory 3: In this experiment, students build a system model of the motor through first principles. The time constant of the voltage decay was too fast to accurately capture with Simulink and the Raspberry Pi, so an inductance, capacitance and resistance (LCR) meter was used to measure the armature inductance. If this kit were made portable, an LCR meter would need to be made available to the students or an approximate value for armature inductance Page 26.314.3

provided. Of the six motors used in the initial test run there was a difference of 0.2 mh, which is less than 10% of the average value. Laboratory 4: In this experiment, students build a system model of the motor through black box testing. The students look at both step responses and frequency responses of the motor to develop another system transfer function. This transfer function is compared with the first principles transfer function. Laboratory 5: In this experiment, students design, simulate, and test a proportional, proportional + derivative, and proportional + speed control of the motor s position. In the prelab exercises the students calculate analytical gains for each controller type and then simulate the whole system in Simulink with the model from Laboratory 3. Then students test the design with the real motor and tune the gains as needed. Kit Design There are several components to the kit: Raspberry Pi, motor, sensors, 3D printed stand, and the student interface in MATLAB and Simulink. The Raspberry Pi support package from Mathworks was used in all of the experiments. 9 The detailed bill of materials, including supplier, is in listed in Table 1. Most of the components of the kit are off-the-shelf as indicated in Table 1. The complete kit can be found in Figure 1. A 3D model for the 3D printed base is available upon request. Circuit Board For the initial trial run the additional circuit interfaces were implemented on a solderless breadboard to allow for easy updates to the prototype. In the future we are going to consider a protoboard or a custom PCB. The diagram of this breadboard is included in Figure 2. Position Sensor The final control design uses the position of the motor as a reference input. A rotary position sensor was selected for this purpose. Because the Raspberry Pi does not have analog inputs, an analog to digital convertor (ADC) was used to convert the signal from the rotary position sensor to a digital signal. Both the MCP3002 and the Raspberry Pi use the serial peripheral interface (SPI) protocol, so this functionality was used to read the position values in Simulink. An S-function driver was created in Simulink to implement the SPI interface and display the value on a scope or use in a control design. The code for this driver can be provided upon request. Tachometer The system modeling experiments and proportional + speed control design require the speed of the motor. A 3D printed optical encoder wheel and photo interrupter were selected for this Page 26.314.4

purpose. A 3D model for the encoder wheel is available upon request. The output of the photo interrupter is input directly to the Raspberry Pi. Within the Simulink model the pulses in the signal are counted and converted to an angular velocity. Since direction is not important in this set of experiments only one photo interrupter was used. However, a second photo interrupter could be added if direction is needed in the future. Motor Driver Since the voltage and current required for the motor are too high to be directly sourced by the Raspberry Pi, an additional power supply and H-bridge were used to drive the motor. A variable DC power supply that has 1.5V increments from 3V to 12V was selected. However, 4 AA batteries could also be used. The SoftPWM library from the WiringPi libraries was used in another Simulink S-function driver to generate the pulse-width modulated (PWM) signal to drive the H-Bridge. 10 The Raspberry Pi has 17 general purpose input/output (GPIO) pins. To drive the motor clockwise, the output on pin 4 is set to high and to drive the motor counter clockwise set the pin 17 to high. It is important to set the pin 18 output (the input to the H-Bridge enable) to low before the end of the time the Simulink model runs, because otherwise the motor will continue to run. Limitations The current design of the kit has a few limitations that were identified during the first run in the 2014-2015 academic year. First, to measure deadzone in the same way as the existing equipment, the students need access to a DC power supply that varies both voltage and current independently. The experiments in the first run were designed to use the DC power supply in the laboratory. In the future the concept of deadzone will be illustrated through the width of the PWM signal. The measurement of the armature resistance also requires a similar power supply. Resistance could also be measured with the LCR meter used in Laboratory 3. There is also a ground loop issue with the two power supplies, which creates noise on the position signal. In the first run the ground loop noise was reduced by connecting the ground on the bread board to the bench ground. Solutions to the noisy position signal will be investigated to make the kit portable again. Page 26.314.5

Item Raspberry Pi Model B 12V DC motor 3D printed stand Bread board H-bridge (L293D) ADC (MCP3002) Power supply (for RPi) Power supply (for DC Motor) Rotary position sensor (3382) Photo interrupter Pi T-cobbler breakout & cable Wires Resistors LEDs SD card Total Supplier In house Digikey ECEStore Amazon Cost 39.95 12.95 5.00 5.95 2.50 2.30 9.90 14.95 2.60 3.45 6.95 1.60 0.15 0.59 17.09 125.93 Table 1: Bill of Materials Page 26.314.6 Figure 1: Complete Kit for Introduction to Control Systems

Figure 2: Circuit board layout for the kit Implementation In each semester of the the 2014-2015 academic year, half of the laboratory sections of GE320 used the existing equipment and the other half of the sections used the new kit. During this first run, the kits were purchased by the department and were used in a traditional laboratory space with limited contact hours to keep the experience as close as possible for each group. There were approximately 75 students enrolled in the course during the first run. One lecture section is offered each semester of the first run. To measure the effectiveness of each type of equipment, both qualitative and quantitative data are being collected from the students. The quantitative data collected included exam scores, laboratory report scores, concept inventory, and satisfaction survey. The concept inventory was based on the test by Bristow et al. 11 The qualitative data includes laboratory observation and student reflections included in their individual laboratory reports. The data between the two groups were analyzed for differences in overall course performance as well as the attainment of the objectives listed in the experiments above. Page 26.314.7

Conclusions and Future Work A portable and affordable kit was created for under 130. Based on the fall 2014 semester data, the kit looks to be as effective as the existing equipment for this course. Data collection and further analysis of the data are still on going. Future work includes adding attachments to create a Furuta inverted pendulum for use in more advanced courses. Use of the kit beyond the traditional laboratory space will also be explored including pedagogies that take advantage of the size and cost will be explored, such as studio learning, project based learning, or additions to an online course or MOOC. Acknowledgments This work is supported by the Grants for Advancement of Teaching in Engineering from the Academy for Excellence in Engineering Education at the University of Illinois at Urbana-Champaign. The author would like to thank Dan Block, Controls Lab Specialist; Jim Leake, Director of Engineering Graphics; Dr. Ramavarapu S. Sreenivas, Associate Professor of Industrial and Enterprise Systems Engineering; and Dr. Michael Loui, Professor Emeritus of Electrical and Computer Engineering, for their support of this research. References [1] R. Kelly and J. Moreno. Learning PID structures in an introductory course of automatic control. IEEE Transactions on Education, 44(4):373 376, 2001. [2] M. Gunasekaran and R. Potluri. Low-cost undergraduate control systems experiments using microcontroller-based control of a DC motor. IEEE Transactions on Education, 55(4):508 516, 2012. [3] O. Boubaker. The inverted pendulum: A fundamental benchmark in control theory and robotics. In 2012 International Conference on Education and e-learning Innovations (ICEELI), pages 1 6, 2012. [4] A. Leva. A hands-on experimental laboratory for undergraduate courses in automatic control. IEEE Transactions on Education, 46(2):263 272, 2003. [5] W. E. Dixon, D. M. Dawson, B. T. Costic, and M. S. De Queiroz. A MATLAB-based control systems laboratory experience for undergraduate students: Toward standardization and shared resources. IEEE Transactions on Education, 45(3):218 226, 2002. [6] B. Aktan, C. A. Bohus, L. A. Crowl, and M. H. Shor. Distance learning applied to control engineering laboratories. IEEE Transactions on Education, 39(3):320 326, 1996. [7] C. M. Ionescu, E. Fabregas, S. M. Cristescu, S. Dormido, and R. De Keyser. A remote laboratory as an innovative educational tool for practicing control engineering concepts. IEEE Transactions on Education, 56 (4):436 442, 2013. Page 26.314.8

[8] Brandon Stark, Zhou Li, Brendan Smith, and YangQuan Chen. Take-home mechatronics control labs: A low-cost personal solution and educational assessment. In ASME 2013 International Design Engineering Technical Conferences and Computers and Information in Engineering Conference. ASME, 4 August - 7 August 2013. [9] Mathworks. Raspberry Pi support from Simulink. Retrieved from http://www.mathworks.com/hardware-support/raspberry-pi-simulink.html, 2014. Accessed: July 29, 2014. [10] Gordon Henderson. WiringPi GPIO interface library for the Raspberry Pi. Retrieved from http://wiringpi.com, 2014. Accessed: September 26, 2014. [11] M. Bristow, K. Erkorkmaz, J. P. Huissoon, Soo Jeon, W. S. Owen, S. L. Waslander, and G. D. Stubley. A control systems concept inventory test design and assessment. IEEE Transactions on Education, 55(2):203 212, 2012. Page 26.314.9