We used the sign-magnitude method to control the motor speed. We were not able to control the motor torque as we had no way to control the current flowing in the system. Arduino conveniently provided the sign-magnitude method capability via its analogWrite function. The H-bridge assembly (Pololu motor controller) was used to control the motor. The PWM signal and the direction signal were sent from Arduino. The both signals were in digital inputs and their magnitudes (high or low) determined the speed and direction the motor would rotate.
The controllable variables were the direction and motor speed and the feedback available from the motor was the rotor's relative location determined by the hall effect sensor mounted in the middle of the pendulum. Using these resources, we were able to implement multiple control strategies (P, PI, and etc) to achieve our goals throughout the lab experience.
No comments:
Post a Comment