Thursday, May 26, 2016

PID Control, Motor Direction Controll

Day 1 and 2
May 23rd and 24th, 2016

Installation of MatLAB 2016a and Simulink 2016 with the Arduino support package (released date: May of 2016) on all three (3) of the students computers.

The Arduino Mega 2560 was connected to the Simulink program and we began work on a temperature sensor system. It used a TMP 36GZ temperature sensor and a simple algorithm to display the temperature in a common scale.
------------------------------------------------------------------------------------------------------------------------

After we became somewhat familiar with Simulink we explored the built in PID controller using the temperature sensor and a fan. The idea was to keep the temperature sensor at a cool temperature.

From what we saw it worked when ice was placed near the sensor, making the error value smaller and smaller as the set temperature was reached, but the fan continued to spin as the error became zero then passed zero, we will be exploring if statements next.
------------------------------------------------------------------------------------------------------------------------

Day 3
May 25th, 2016

Dr. Hassel mentioned that controlling the direction of the motor is something that is necessary, so we began to work on making a system that will change polarization of the motors from an arduino system. Two (2) JZC-11F relays were used to switch which pole of the motor would be connected to ground and voltage source, allowing for forward and reverse of the motors. A schematic will be posted in the future when this system is used on an arduino board and simulink model.


------------------------------------------------------------------------------------------------------------------------




No comments:

Post a Comment