Dual Brushless Motor ESC, 10-62V, up to 50A per motor. Motors ganged or independent, multiple control input methods, cycle-by-cycle current limit, speed mode and torque mode control. Motors tiny to kW. Speed limit and other parameters easily set in firmware. As used in 'The Brushless Brutalist' locomotive - www.jons-workshop.com. See also Model Engineer magazine June-October 2019.
Dependencies: mbed BufferedSerial Servo PCT2075 FastPWM
Update 17th August 2020 Radio control inputs completed
Diff: F401RE.h
- Revision:
- 12:d1d21a2941ef
- Parent:
- 11:bfb73f083009
- Child:
- 13:ef7a06fa11de
--- a/F401RE.h Sat Jan 19 11:45:01 2019 +0000 +++ b/F401RE.h Mon Mar 04 17:51:08 2019 +0000 @@ -90,7 +90,7 @@ // Pin 14 Port_A AUL // Pin 15 Port_A AUH // Pins 16, 17 BufferedSerial pc -BufferedSerial pc (PA_2, PA_3, 512, 4, NULL); // Pins 16, 17 tx, rx to pc via usb lead +BufferedSerial pc (PA_2, PA_3, 2048, 4, NULL); // Pins 16, 17 tx, rx to pc via usb lead // Pin 18 VSS NET GND // Pin 19 VDD NET +3V3 // Pin 20 Port_A AWL @@ -147,12 +147,9 @@ //Was DigitalOut T5 (PA_15); // Pin 50 DigitalIn T5 (PA_15); // Pin 50 now fwd/rev from remote control box if fitted -//InterruptIn MAH1 (PC_10); // Pin 51 -//InterruptIn MAH2 (PC_11); // Pin 52 -//InterruptIn MAH3 (PC_12); // Pin 53 -#define _MAH1 PC_10 -#define _MAH2 PC_11 -#define _MAH3 PC_12 +#define _MAH1 PC_10 // Pin 51 +#define _MAH2 PC_11 // Pin 52 +#define _MAH3 PC_12 // Pin 53 //InterruptIn MBH1 (PD_2); // Pin 54 #define _MBH1 PD_2 DigitalOut T6 (PB_3); // Pin 55 @@ -161,7 +158,9 @@ //FastPWM B_MAX_V_PWM (PB_4, PWM_PRESECALER_DEFAULT), // Pin 56 pwm3/3 // B_MAX_I_PWM (PB_5, PWM_PRESECALER_DEFAULT); // pin 57, prescaler value pwm3/4 -I2C i2c (PB_7, PB_6); // Pins 58, 59 For 24LC64 eeprom +//I2C i2c (PB_7, PB_6); // Pins 58, 59 For 24LC64 eeprom +#define SDA_PIN PB_7 +#define SCL_PIN PB_6 // Pin 60 BOOT0 // Servo pins, 2 off. Configured as Input to read radio control receiver