Beruflich Dokumente
Kultur Dokumente
com/print/51811
BLOG
This article shows how to set up a procedure for identification of a DC Motor with permanent
magnets aimed at digital torque control. In this applications are used: L298 (see the datasheet) [1] -
a dual full-bridge driver designed to accept standard TTL logic levels and drive relays, solenoids,
DC and stepping motors and ADM3202/ADM3222/ADM1385 [2] - transceivers ideal for
battery-powered portable instruments.
The application is divided into two parts:
1. The dsPIC implements a simultaneous sampling of voltage and current and sends the data via
serial bus to a remote PC;
2. The PI controller is used to control the current (directly) and the torque (indirectly) with
appropriate characteristics of strength.
On the PC side, the data are processed with a specific software for the system identification.
The methods are: subspaces method (with generic I/O data), PEM method (to refine the model)
and residual analysis (to validate the model)
[3]
while(BusyUART1());
}
break;
/*******************************/
case 0xEE:
break;
/*******************************/
case 0xFF: // Duty Cycle settings.
break;
/*******************************/
default:
if(AD1CON1bits.ADON == 0){
char s[5];
s[0] = (char) 0xFF;
s[1] = (char) 0xFF;
s[2] = (char) 0xFF;
s[3] = (char) 0xFF;
s[4] = '\0';
send_by_UART1((unsigned int *)s,4);
while(BusyUART1());
}
/*******************************/
}
}
Trademarks
Links:
[1] http://datasheet.emcelettronica.com/st/L298
[2] http://www.analog.com/UploadedFiles/Data_Sheets/ADM3202_3222_1385.pdf
[3] http://www.evidence.eu.com/content/view/241/266/
[4] http://www.evidence.eu.com/download/DC_Motor_Identification_and_Torque_Control.zip