**5. Digital control for the motor position**

One of the easiest ways may be through implementing a controller for the DC Motor. A digital controller for position reference will transform the DC motor to behave like a servo. The code for the controller was generated using the MATLAB Real time Toolbox Embedded encoder. To confirm the DC motor model, a simple proportional control was designed and implemented.

Fig. 5. Block diagram for motor position control.

Figures 6 and 7 illustrate the simulation result versus the real data. The rise time is shorter in reality. This is probably because of the sensor dynamics that was not considered in simulation. In reality the encoder has large quantization error. When conducting this experiment 64 lines were used by the encoder. This means 5.6 degrees was the maximum

Lego Based Computer Communication for Business and Learning 79

In this experiment Control System Toolbox in Matlab, more especially 'sisotool' was used to design a Root Locus Controller by applying a gain and placing poles and zeros. Several designs were devised that looked robust in theory, but performed not as well. The difference of theory and practice became prominent as the solution required greater control effort. While the control design technique was intended for linear systems, the effect of

One of the working designs is presented. The control effort was designed to be kept below the saturation point; however the same quantization error that occurred in Proportional

Educational researchers have long suggested that instruction utilizing a variety of delivery modes helps students with differing learning styles to better understand the studied material. Few, if any of us, would think about teaching our introductory programming courses solely via textbook readings and lecture. It is firmly believed that, to learn, students must "do." Thus, a variety of assignments and "labs" are provided that allow students to participate in both reflective practice in the classroom, and active practice in the computer lab. Thomas et al. (Thomas L., Ratclife M., Wodobury J., and Jarman E.,) have studied the success rate in traditional computer science courses by students exhibiting each of the

**6. Digital control root locus**

saturation was becoming more outstanding in the real world.

Fig. 8. Root locus plot of motor position control.

Control experiment was also observable here as well.

**7. Hands-on artificial intelligence education** 

precision the sensors could have which is quite poor. After this experiment the sensitivity was increased by a factor of 2 to achieve greater accuracy in position and velocity values. The gain value used in this experiment was 2, and the step input was 90 degrees.

Fig. 6. Simulated results versus real data - continous.

Fig. 7. Simulated results versu real data - digital.
