
Problem
MatLab is a versatile toolbox that allows us to build digital control systems quickly. In this lab we will use an open loop system for the control of a stepper motor. We create the hypothetical situation of using a photo resistor to sense the ambient light in a room. If the light is too low then we tell the motor to open the blinds, and if the light is too high then we close the blinds. The stepper motor is crucial for this operation in order to precisely control the position of the blinds. MatLab has built in functionality to use stepper motors via an Arduino board. The stepper block has three inputs so we can control the speed, direction, and step count directly. Using switching, sum, difference, memory blocks we can construct our open loop control system that controls the inputs to our stepper motor.