Page 1 of 2

Rotary engine OMP Stepper control?

Posted: Tue Dec 03, 2013 8:04 am
by shadowplane676
I am looking to control the factory stepper motor Oil Metering Pump (OMP) on two 13b rotary engine installs. I did some searching but wasn't able to come up with a concrete answer as to the feasibility of doing this. It looks as though there have been murmurings of implementing this feature, but mainly on the MS3 code rather than the MSII.

Is there some way to enable the MSII to control a stepper motor based on two criteria (such as MAP and RPM) similar to a warmup or VE table of steps? In both installs, we will be using the PWM based Idle Air Controller motor, leaving the stepper function currently unused. Is this something that would have to be custom coded or just a custom .ini?

Re: Rotary engine OMP Stepper control?

Posted: Tue Dec 03, 2013 9:29 am
by Matt Cramer
This would need custom code.

Re: Rotary engine OMP Stepper control?

Posted: Tue Dec 03, 2013 9:36 am
by shadowplane676
Bugger, I was afraid of that. The additional concern then is: if we were to work on custom code for an OMP stepper control subroutine, is there enough memory left on the MSII to facilitate adding said extra code?

Re: Rotary engine OMP Stepper control?

Posted: Tue Dec 03, 2013 8:46 pm
by dontz125
What about using the JBPerf TinyIOx with the new generic PWM outputs, and feed the PWM signal to a PWM-Stepper controller?

Re: Rotary engine OMP Stepper control?

Posted: Tue Dec 03, 2013 11:23 pm
by muythaibxr
I'm in the process of adding generic PID code to MS3 that will be able to control the OMP. However, the stepper on the OMP draws a lot of current. Whether or not we could control it with the built-in stepper driver is borderline.

We could potentially backport some subset of that code to support specifically controlling the OMP, but you'd still run into the stepper driver problem.

Ken

Re: Rotary engine OMP Stepper control?

Posted: Wed Dec 04, 2013 6:08 am
by shadowplane676
I haven't looked at a PWM -> stepper possibility yet. Would a 3rd party stepper driver such as this one from sparkfun run the OMP? I haven't found the spcs on what sort of current the OMP draws, but this board can handle 750mA/Phase and up to 30V from what I can tell. It also takes a 0v to 5v digital input, plus it is cheap at $15...

https://www.sparkfun.com/products/10267

Re: Rotary engine OMP Stepper control?

Posted: Wed Dec 04, 2013 10:02 am
by racingmini_mtl
shadowplane676 wrote:I haven't looked at a PWM -> stepper possibility yet. Would a 3rd party stepper driver such as this one from sparkfun run the OMP? I haven't found the spcs on what sort of current the OMP draws, but this board can handle 750mA/Phase and up to 30V from what I can tell. It also takes a 0v to 5v digital input, plus it is cheap at $15...

https://www.sparkfun.com/products/10267
What I told you about this board on my forum still applies. And based on what Ken says about the current needed to drive the OMP, it will likely not be able to do it.

Jean

Re: Rotary engine OMP Stepper control?

Posted: Wed Dec 04, 2013 10:26 am
by shadowplane676
Thanks for the additional clarification Jean, I'm still working on putting it all together. I need to do more research on stepper motor controllers I think...

Ok, so we basically need a "stronger" stepper controller with an interface compatible with the output of the MS-II? Is a digital 0v-5v input workable provided the stepper controller can handle the OMP's power demands?

Ken, do we know what sort of power draw the stock OMP uses? This would help in the search for a suitable stepper hardware controller.

Re: Rotary engine OMP Stepper control?

Posted: Thu Dec 05, 2013 8:20 am
by shadowplane676
Ok, so after reading up on stepper motors a bit and looking up the coil resistance specs for a 3rd gen OMP (making an ASSUMPTION that the 2nd gen is similar), a lowest resistance was 16 ohms. At 14.8V, that is .925A per pole. I see now why the MSII and the first controller I looked at are inadequate.

I was able to find 2 different controllers rated at 2A and 3A per pole respectively. They also claim to be able to control bipolar stepper motors, which i think the OMP is, due to its 6-wire configuration. Is this at least up the right alley?

2A bipolar controller - https://www.sparkfun.com/products/11876

3A SPI interface bipolar controler - https://www.sparkfun.com/products/11611

Re: Rotary engine OMP Stepper control?

Posted: Sat Dec 14, 2013 6:17 pm
by slyrye
muythaibxr wrote:I'm in the process of adding generic PID code to MS3 that will be able to control the OMP. However, the stepper on the OMP draws a lot of current. Whether or not we could control it with the built-in stepper driver is borderline.

We could potentially backport some subset of that code to support specifically controlling the OMP, but you'd still run into the stepper driver problem.

Ken
That would be very helpful for us needing PID implementation on diy Drive by wire...! please make it happen :D

Re: Rotary engine OMP Stepper control?

Posted: Sat Apr 18, 2015 2:57 am
by phoenix3d
Hi Ken...

I know it's been a long while now...

But has there been any news on the OMP setup for MS2 & MS3 ecu's?

Gordon.

Re: Rotary engine OMP Stepper control?

Posted: Sat Apr 18, 2015 4:00 am
by muythaibxr
Stepper driver is still incapable of driving an OMP

Re: Rotary engine OMP Stepper control?

Posted: Sat Apr 18, 2015 5:03 am
by Reverant
When has the absence of a "stock" circuit inside the MS1/MS2/MS3 stopped us before?

Do the code, suggest a circuit, and we'll do it.

Re: Rotary engine OMP Stepper control?

Posted: Sat Apr 18, 2015 7:26 pm
by dontz125
Does anyone see anything terribly wrong with this circuit? DIP14 Schmitt trigger package to ensure no shoot-through, TO-92 1.2A N-channel MOSFETs with 300mOhm Rds(on) and 1.2W rating, all through-hole for easy home soldering. Obviously, you'd use two sets of MOSFETs (the Schmitt trigger package has 4 gates, so you're set there). This would need some sort of code mod to use the on-board MS2/3 stepper chip as the driver / signal generator.


If any MS2 users are interested, I could price up a Tiny IOx-based unit that would be pre-assembled and fully-stand-alone, allowing the use of the TIOx's generic PWM function to drive a PWM-stepper converter; a MS3 version (without the TIOx) would use the MS3's own generic PWM output.

edit - schematic updated below

Re: Rotary engine OMP Stepper control?

Posted: Sun Apr 19, 2015 2:30 pm
by Reverant
Don't you need P-channel mosfets on the top?

Re: Rotary engine OMP Stepper control?

Posted: Sun Apr 19, 2015 5:58 pm
by dontz125
Reverant wrote:Don't you need P-channel mosfets on the top?
Good question - a LOT of H-bridges use just N-mos internal drivers, but I know what you mean, and I'm not comfortable in figuring out hat they're using as internal mosfet drivers. I've revised the schematic to replace the upper transistors with P-mosfets. I've replaced the Schmitt logic gate with a TC4427 Mosfet driver - it includes its own internal Schmitt triggers, and can sink or source a LOT more current than a typical logic gate. When I started pondering the use of P-channel Mosfets, I was a little concerned about getting them turned fully on.

All transistors are now TO-220, with Rsd(on) of 26mOhms (N-channel) and 22mOhms (P-channel). For 1-2A motors, these drivers will barely get above stone-cold.

NOTE: The IAC1A and IAC1B signals are REVERSED at the A and B inputs; the use of TC4426 or TC4428 drivers would avoid this, but from a few comments on the forum I get the impression that these are not commonly available at hobby shops in through-hole.
Stepper Booster r1.jpg

Re: Rotary engine OMP Stepper control?

Posted: Fri Jul 24, 2015 7:49 am
by shadowplane676
Dontz125 - Thanks for your work on designing the circuit (as that is beyond some of us, namely me :) ).

I do have a hypothetical question for the masses: Is there a way to possibly use the MSII's stepper outputs as inputs to a middle circuit that COULD handle the higher amps? This might allow the use of some currently coded sections and also reduce cost/complexity by removing the tinyIO from the equation....

Re: Rotary engine OMP Stepper control?

Posted: Fri Jul 24, 2015 10:27 am
by dontz125
Thank you, thank you - I'm here all week, be sure to tip your waitress ... :lol:

You could use the open loop boost control table to drive IAC1 (or 2); obviously, this can't be done on a turbo install, and would likely need a LOT of tuning time to get the oil flow right under all circumstances.

Re: Rotary engine OMP Stepper control?

Posted: Fri Jul 24, 2015 10:33 am
by jsmcortina
Does that circuit offer any shoot-through protection?

James

Re: Rotary engine OMP Stepper control?

Posted: Fri Jul 24, 2015 6:33 pm
by dontz125
Each 'stack' is driven by a common output pin on the TC4427, so only one FET can be on at a time (barring transition times, which are (IIRC) in the 40ns range).