EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.06k stars 884 forks source link

How can I modify the program to support brushed motors? #385

Open emo8899 opened 1 year ago

emo8899 commented 1 year ago

Variant

None

Control type

None

Control mode

None

Description

I have two 36V brushed motors, how can I modify the program to support brushed motors?"

Candas1 commented 1 year ago

This firmware is for brushless

emo8899 commented 1 year ago

This firmware is for brushless

I saw someone modify this program to work with a brushed motor by connecting the blue and green wires to the motor. No need to use a hall sensor and the additional yellow motor wire

Candas1 commented 1 year ago

Then you can probably ask him

RoboDurden commented 1 year ago

It would need a complete rewrite of bldc.c But I think when connecting the yellow wire to the plus pole of each brushed motor and the blue and green wires to the negative pole of the two motors than at least both motors could be pwm driven (green and blue MOSFETs) independently yet both in the same direction. But brushed motors have such a bad efficiency that I do not see a good use case for such a firmware. And as we have to salvage old hoverboards to still get a f103 motherboard with only about 30% success rate, we all have lots of nice BLDC motors piling up :-/