ClosedLoopTest
Testing the closed loop control
Open HANtune and make a new project. Add and load the ASAP2 file “ThrottlebodyClosed.a2l” file that was created when you built the model. Go to the “ASAP2 elements” tab and drag the P, I and D parameters into the model as slider editors. Also drag the ThrottleFeedback and ThrottleInput signals into the dashboard as a scopeview.
Now press (F5) and connect the Olimexino to HANtune.
Q: Write down the values that HANtune shows for both the minimum potentiometer value, and the value for the positional feedback, when the throttle valve is in its idle position.
Now turn the power supply on and turn the potentiometer until the throttle valve has opened completely. Write down the maximum value of the potentiometer and write down the feedback value of the throttle valve when it’s in its full throttle position. Turn the power supply off again.
Potentiometer | Minimum value | _______ |
Maximum value | ||
Feedback | Value idle throttle position | |
Value full throttle position |