Today in class we experimented with Matlab! We had a series of mini-challenges, in order to get us accustomed to using the program.
My partner Juliette and I did the exercises together, and this is what we produced:
Our next Matlab challenge involved a DC motor:
Our goal was to build a motor that turned exactly 90 degrees
V_terminal: 5 Volts
K_motor: 0.3 Newton-meter/amp
R: 25 ohms
m (moment of inertia for motor): 0.0001 Kilogram-meter^2
dt = 0.001 (simulation time step)
And victory, we got the time down to 0.25 seconds!
The next class, we added a derivative term and accomplished our goal even faster, 0.1490 seconds!
No comments:
Post a Comment