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
DualBLS.h@3:ecb00e0e8d68, 2018-03-18 (annotated)
- Committer:
- JonFreeman
- Date:
- Sun Mar 18 08:17:56 2018 +0000
- Revision:
- 3:ecb00e0e8d68
- Parent:
- 2:04761b196473
- Child:
- 5:ca86a7848d54
Starting motors requires high-side mosfet drivers being enabled. Auto tickleup functions now included to switch high sides off and on again to charge high side supply capacitors (now 2u2, up from 100n)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JonFreeman | 2:04761b196473 | 1 | //#define POWER_OF_TWO 12 // Range is 4 to 13, is log2N |
JonFreeman | 2:04761b196473 | 2 | //typedef float ffty; // Choice of float or double float is HUGELY FASTER than double |
JonFreeman | 2:04761b196473 | 3 | const int HANDBRAKE = 0, |
JonFreeman | 2:04761b196473 | 4 | FORWARD = 8, |
JonFreeman | 2:04761b196473 | 5 | REVERSE = 16, |
JonFreeman | 2:04761b196473 | 6 | REGENBRAKE = 24; |
JonFreeman | 3:ecb00e0e8d68 | 7 | |
JonFreeman | 3:ecb00e0e8d68 | 8 | const double PI = 4.0 * atan(1.0), |
JonFreeman | 3:ecb00e0e8d68 | 9 | TWOPI = 8.0 * atan(1.0); |