- Find the steady state values of the current ‘i’ and voltage v, which are needed to balance the ball at a desired position, y = r > 0.

- Compute the linearized model at this equilibrium point and show that the equilibrium point obtained by taking u = v(steady state value of the voltage) is unstable.

- Write a Matlab function that returns the equilibrium current, voltage and state space matrices as a function of r.

- Using linearization, design state feedback control laws to stabilize the ball at y = 1cm, y = 5cm and y = 8cm. You may use the commands place and 1qr. In each case, carry out closed loop performance analysis (e.g time responses to step commands).

- Assume that the permissible range of y is 0 to 10 cm and the permissible range of the voltage is 0 to 50 V. Starting with the ball at equilibrium, move it a small distance up (and the down) and let it go. Using simulation, determine the largest range of initial disturbance for which the ball will return to the equilibrium position without violating the constraints of y and v. To account for the constraints on v, include a limiter in your simulation.

- The non-linear closed loop system responses will be computed with Matlab/Simulink. The effect of 20% parameter variations from nominal values for all parameters will be investigated as well as the effect of the current protection circuits (‘i’ will be set to zero if it goes over a certain value ‘imax’ = 5A.

**Subject Engineering MATLAB for Engineering**