Use PWM to control your Jebao DCT pump using brushless motor controller from ebay

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 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.

For a resistor they seem expensive :). The Jebao boards use two-three of the same part in parallel to up the volume of it.

I'd suggest just picking a value that gives you a good full scale ADC rating for the largest pump and use different cutoffs for smaller pumps. I ended up with https://octopart.com/wsr3r0200fea-vishay-39853526 since the Allegro motorcontroller already had a handy 10x gain stage on the sense resistor, and that resistor could handle the power.
 
the jebao controller uses multiple to divide the heat dissipation so smaller wattage can be used. I need 3 1watt 0.15ohm to get a .05 ohm value and equivalent 3 watts.

180 watt pumps can cut off at 8 amps so that's still a little over 3 watts.
 
the jebao controller uses multiple to divide the heat dissipation so smaller wattage can be used. I need 3 1watt 0.15ohm to get a .05 ohm value and equivalent 3 watts.

180 watt pumps can cut off at 8 amps so that's still a little over 3 watts.



Remember that, unless running at 100%, this is also pulsed power, so not as demanding. A good metal sense resistor will have a good tempco as well.
 
You can use a pot and run 10V from the Apex and adjust the pot until the voltage to ground is 5V.
12.gif
2.gif

1.gif
 
I powered up the circuit, and low side drivers are not switching. Just realized my mistake that I am not using logic level mosfet on the low side. The stock controller uses logic level fets on both high and low side. I want to avoid adding more components, so I'll look for replacement N channel mosfet. It looks like I have to look at IRL part numbers instead of IRF. The high side circuit seems to be switching fine, the gate voltage switches between 24 and 14v.
 
Watch out for "logic level" FETs where the switching performance at 5V is still terrible (a lot of "logic level" FETs rate RdsOn at 10V)
 
to simplify things, I'm just going to use the same part as jebao controller


AOD4185 P-channel -40v -40a
AOD4186 N-channel 40v 35a

I think this will work up to 180watt pumps

so now the circuit will be like almost a clone of the jebao controller except for the Arduino.


just ordered the fets. I will resume work once I get the parts.
 
Last edited:
Hey! That brings up an interesting option!

Can we just have an arduino board and hardware it on the jebao power board, removing the existing controller??

Think of it as a brushless motor control shield board and connect the appropriate pins.
 
So... Why aren't we doing that? Seems like I could use your code directly?

Can you map out the hardwire connections that would align with your code to work?

Potentially one arduino board could run multiple Jebao motor shields?
 
I just reported the last two. The mods supposedly screen postings from new users before they show up. I guess it does not work as intended.

Sometimes, one gets past the software, thanks for catching it and reporting it.
 
ok, I thought it was a human screening the postings.
these spammers knows every trick to get past software screening.
 
Back
Top