Some progress made over the last few weeks,
most of the required features are now working well, including-
.) Status display shows temperature and most recent fault code information, while the controller is running
.) Parameters can be read and edited using an ascii terminal interface on a computer, or smart phone
View attachment 5
.) Auto hall sensor calibration, just spin the motor by hand and the controller works out the sequence and timing of the sensors, no more trial and error with the sensor and phase wire combinations
.) Temperature of heatsink is monitored by the processor, so we can control a cooling fan and/or shutdown if things get too hot
.) Variable regenerative braking is working well, using an analog hall sensor and a small magnet attached to the hydraulic brake lever. The free play at the lever, before the pads touch the disc, is used to command a variable level of electric braking.
.) Optional switch from sensored to sensorless operation once sufficient speed has been attained.
The sensorless signal is validated against the sensored one, If any loss of sync is detected, the controller reverts to the sensored mode until the senlsorless signal has recovered.
The sensorless signal is preferred (when available) because it has less jitter than the sensored one. Sensor timing jitter can be caused by things like uneven magnet strength and spacing within the motor.
I have made two of these controllers so-far. One is fitted to a test bike with a DD hub motor, running at 4kW peak power, silently,
the familiar DD buzzing noise you hear when using the chinese controllers is completely absent.
I have not yet attempted to find the power limit of this 12 fet controller, but at present testing levels, I have not seen the heatsink temperature go more than 20 degC above ambient.
Efficiency appears to be about the same as the chinese controller when measured on the dyno, and from looking at the battery consumption after riding a few well tried routes.
The 2nd controller lives on the work bench, and is used for continued development of the firmware.
Burtie