| Moto 1.0 A/D PID Mode Last Modified: 2006-08-16 | | |
| Acroname Robotics | PDF webpage version | ||
| About A/D PID Mode Encoder PID mode makes adjustments to the position of a motor based on the feedback from an A/D input. In working with robotics motion control, you need to be able to account for inertia, resistance, and other variables. Factored together, the terms in the PID formula determine how much PWM is applied over time to reach and maintain the desired position. Careful selection of the PID gain constants can minimize oscillation and overcompensation. ![]() The Moto 1.0 Application in A/D PID mode. You can manipulate ten variables in A/D PID Mode: P Term PID Proportional Term — gain constant for the current error. I Term PID Integral Term — gain constant for the accumulated error. The longer the position varies from the set point, the greater the error. D Term PID Derivative Term — gain constant for the change in the error. This term affects how quickly the system responds to new input. Input Offset The input offset is added to the encoder input to allow a centering offset adjustment. With A/D providing the input in this mode, this value is used to adjust the neutral position. In a position control mode, this value is usually left at zero. PWM Rail This setting can vary between 0 and 32767 and puts a limit on the maximum PWM output allowed. You can use this value to:
The default for this value is no limit or 32767 (the PWM maximum). Period The period is how many timer increments (0.1 ms) pass between A/D measurements. This A/D measurement represents a position value with absolute units, such as a potentiometer in a servo. PWM Frequency This value represents the PWM frequency in Hz. The default is 39,062 Hz, which is a reasonable starting point. To get maximum efficiency from your system, we recommend a frequency above 20 kHz. This value is out of the audible range (for humans) so it also provides quiet motor operation. When entering a new PWM frequency, you may not get the exact value you entered. The controller generates a fixed number of different PWM frequencies and the program must select a frequency that is the closest match. Invert Input Checking this box inverts the encoder input. This enables you to have the PWM output and encoder input with the same sign (positive or negative). If the input signal is inverted, the motion control algorithms agressively seek the farthest position from the set point, rather than try to settle into it. Invert Output Checking this box inverts the PWM outputs signal, which reverses the motor direction. You may want to reverse a motor when using two motors on a differential-drive robot so that positive PWM values mean forward motion for both motors. Delta How far you want the motor to move. ![]() The basic logic flow of the A/D PID mode of operation.
|
| ||||||||
Related Links: | ||||||||||
| voice: 720-564-0373, email: sales@acroname.com, address: 4822 Sterling Dr., Boulder CO, 80301-2350, privacy © Copyright 1994-2010 Acroname, Inc., Boulder, Colorado. All rights reserved. |