Modified Motor Driver Firmware to include Flash + Thermal
Dependencies: FastPWM3 mbed-dev-STM-lean
Config/motor_config_U12.h@62:bbdf5afada79, 2020-11-04 (annotated)
- Committer:
- saloutos
- Date:
- Wed Nov 04 19:21:23 2020 +0000
- Revision:
- 62:bbdf5afada79
- Parent:
- 61:33f2dc2b589f
- Child:
- 66:3947255b18c5
forgot to change header file definitions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
saloutos | 62:bbdf5afada79 | 1 | #ifndef MOTOR_CONFIG_U12_H |
saloutos | 62:bbdf5afada79 | 2 | #define MOTOR_CONFIG_U12_H |
benkatz | 20:bf9ea5125d52 | 3 | |
saloutos | 61:33f2dc2b589f | 4 | // CONFIGURATION PARAMETERS FOR U12 MOTORS |
saloutos | 60:0c8caaa91182 | 5 | |
saloutos | 61:33f2dc2b589f | 6 | #define R_PHASE 0.433f //Ohms |
saloutos | 61:33f2dc2b589f | 7 | #define L_D 0.000084f //Henries |
saloutos | 61:33f2dc2b589f | 8 | #define L_Q 0.000104f //Henries |
saloutos | 61:33f2dc2b589f | 9 | #define NPP 21 //Number of pole pairs |
saloutos | 61:33f2dc2b589f | 10 | |
saloutos | 61:33f2dc2b589f | 11 | #define KT 0.239f //N-m per peak phase amp, = WB*NPP*3/2 |
saloutos | 61:33f2dc2b589f | 12 | #define GR 6.0f //Gear ratio |
saloutos | 61:33f2dc2b589f | 13 | #define KT_OUT 1.434f //KT*GR |
saloutos | 61:33f2dc2b589f | 14 | #define WB 0.0076f // from KT //Flux linkage, Webers. |
saloutos | 61:33f2dc2b589f | 15 | |
saloutos | 58:32e8927fe39f | 16 | #define R_TH 1.25f //needs update //Kelvin per watt |
saloutos | 58:32e8927fe39f | 17 | #define INV_M_TH 0.02825f //needs update //Kelvin per joule |
saloutos | 61:33f2dc2b589f | 18 | #define T_AMBIENT 25.0f // ambient temperature during temp calibration |
benkatz | 22:60276ba87ac6 | 19 | |
saloutos | 61:33f2dc2b589f | 20 | // U12 motor is KV40...use to calculate Kt |
saloutos | 61:33f2dc2b589f | 21 | // actuator has 36 stator slots, 42 pole magnets |
saloutos | 58:32e8927fe39f | 22 | // so, 21 elec revs per mech rev |
saloutos | 58:32e8927fe39f | 23 | // 36*21 steps per elec rev if using traditional commutation |
benkatz | 20:bf9ea5125d52 | 24 | |
benkatz | 20:bf9ea5125d52 | 25 | #endif |