Académique Documents
Professionnel Documents
Culture Documents
SYSTEM
instructors and individuals can employ to learn the concepts behind the
CONTROL
modeling, controller design, and controller implementation for dynamic
PID systems. The activities as outlined employ an Arduino board (Uno, Mega
STATE-SPACE
DIGITAL
SIMULINK
MODELING
CONTROL
Most of the activities employ the ArduinoIO package, though you can also
these packages and their installation can be found by following the link
below.
Contents
RC Circuit
LRC Circuit
Simple Pendulum
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 1/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
Light bulb
DC Motor
RC Circuit
only a resistor and a capacitor. This type of circuit is a simple, but important,
and control of the circuit. The Arduino board is employed for generating the
input to the circuit (via a digital output) and for reading the output of the
circuit (via an analog input). The Arduino board also communicates the
recorded data to Simulink for visualization and analysis.
system identification
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 2/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
model. This activity also demonstrates how to implement a control law using
analog electronics.
LRC Circuit
added to the circuits. The Arduino board is still employed for reading the
circuit's output and for communicating the data to the host computer, but
now the input to the circuit is supplied by a battery via a pushbutton switch
(or a transistor).
(optional)
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 3/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
Simple Pendulum
and nonlinear. The Arduino board is simply used to record and transmit the
pendulum's angular position as indicated by a rotary potentiometer
employed as a sensor.
Equipment: Arduino board, simple pendulum (slender metal bar with end
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 4/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
Light bulb
used for generating the control input to the system and for recording the
system's output (its temperature). The control logic is developed in Simulink
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 5/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
sensor
generation
systems. The light bulb is a binary system with only two states, on or off.
The light bulb is either connected to the AC source or it is not; its intensity
voltage at its output. This type of circuit has many important applications.
The Arduino board is used for measuring the output of the circuit (via an
analog input) and for controlling the level of the circuit's output voltage (via a
digital output). The control logic is developed in Simulink and is alternately
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 6/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
boost converter circuit. The activity also demonstrates two techniques for
In this part of the activity we model the boost converter circuit based on
experimentally obtained frequency response data. This technique provides
nonlinear system.
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 7/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
DC Motor
estimated from the output of a quadrature encoder which is read via two
digital inputs of the Arduino board. The motor's speed is controlled using
pulse-width modulation via one of the board's digital outputs. The logic for
estimating the motor's speed based on encoder counts and the logic for
run on the host computer, but subsequently all of the logic is downloaded to
wires
modulation, filtering
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 8/9
9/2/2017 Control Tutorials for MATLAB and Simulink - Hardware-based Activities
also explored.
The purpose of this activity is to build intuition regarding the design and
how to design the controller when we have an uncertain plant model and
http://ctms.engin.umich.edu/CTMS/index.php?aux=Index_Activities 9/9