d0ughb0y
Active member
I finished writing the motor start up routine.
I made it as close as possible to the stock controller timing.
The stock controller only goes through open loop sequence for 2 cycles then switches over to bemf, then soft start increase from 20% to target %, which by default is 70%, which is the lowest setting. If you turned it off at 100% then soft start will go to 100%. it increments about 3.5-4% per second.
I don't know if the stock controller adds any other control factors like how fast current is changing, etc. When I test this with a pump, I'm going to put a hard stop say after 5 revolutions since I do not have a current sensing circuit on my breadboard.
I just checked the price of current sensing resistors and they are expensive. Like 60 cents each I think. I figure I'll have one fixed value for the resistor, and adjust the voltage level based on the size of pump used. So basically the cutoff current is software configurable.
I made it as close as possible to the stock controller timing.
The stock controller only goes through open loop sequence for 2 cycles then switches over to bemf, then soft start increase from 20% to target %, which by default is 70%, which is the lowest setting. If you turned it off at 100% then soft start will go to 100%. it increments about 3.5-4% per second.
I don't know if the stock controller adds any other control factors like how fast current is changing, etc. When I test this with a pump, I'm going to put a hard stop say after 5 revolutions since I do not have a current sensing circuit on my breadboard.
I just checked the price of current sensing resistors and they are expensive. Like 60 cents each I think. I figure I'll have one fixed value for the resistor, and adjust the voltage level based on the size of pump used. So basically the cutoff current is software configurable.