36-2 (rover MEMS)

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
Bill Shurvinton
Master MS/Extra'er
Posts: 478
Joined: Fri May 07, 2004 2:20 pm
Location: My Hampshire Hill

36-2 (rover MEMS)

Post by Bill Shurvinton »

Having another think about one of the Rover trigger wheels, which 36-2 setup, but with the missing tooth every 180 degrees. If you used the cam sensor as well, with a pulse every 360 degrees and just told MS that the primary wheel had 34 teeth would this work, or would the tooth detector error handling get completely confused when it got a double gap it was not expecting?

If it just happily counts teeth in dual wheel mode then we have something that will work nicely.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

Depends on whether you are trying to do dizzy or wasted spark.

If you use that 36-1-1 wheel on a 4cyl dizzy install then tell it you have an 18-1 wheel and set a single trigger point. That should "just work"

For wasted spark you might get lucky by using a cam trigger as well and choosing "2nd trigger" and "missing tooth" with 36-1

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Bill Shurvinton
Master MS/Extra'er
Posts: 478
Joined: Fri May 07, 2004 2:20 pm
Location: My Hampshire Hill

Post by Bill Shurvinton »

It's wasted spark. I ought to pull out the code and look at the error handling to see if it will just ignore the timing inconsistencies.
pettaw
Helpful MS/Extra'er
Posts: 93
Joined: Fri Apr 29, 2005 6:56 am
Location: London, UK

Post by pettaw »

I'm running a Renix 44-2-2 wheel on my Volvo. It has a dizzy so no cam wheel or sensor.

If I set the tooth count to 22, the car would start and run up to about 2000 rpm whereupon I would get misfires, and they would get so bad the car would refuse to rev about 2300 ish.

I set the tooth count to 44, set trigger point A and Trigger return and left it at that and it works fine.

Hope that helps.
Thigre
MS/Extra Newbie
Posts: 5
Joined: Sat Dec 01, 2007 2:38 am

Post by Thigre »

Hi there,

I have a look at the ms2extra_inc_wheel.c files. I don't know the .c files works, where they are mixed with the code.
But, is this patern correct for the 36-1-1 Rover wheel?

Code: Select all

        /* ----------------------  Mini 36-1-1 ------------------------*/

    } else if ((flash4.spk_mode & 0x1f) == 15) {
        no_teeth = 34;
        last_tooth = no_teeth;
        no_triggers = 2;
        deg_per_tooth[0] =  100;
        deg_per_tooth[1] =  100;
        deg_per_tooth[2] =  100;
        deg_per_tooth[3] =  100;
        deg_per_tooth[4] =  100;
        deg_per_tooth[5] =  100;
        deg_per_tooth[6] =  100;
        deg_per_tooth[7] =  100;
        deg_per_tooth[8] =  100;
        deg_per_tooth[9] =  100;
        deg_per_tooth[10] = 100;
        deg_per_tooth[11] = 100;
        deg_per_tooth[12] = 100;
        deg_per_tooth[13] = 100;
        deg_per_tooth[14] = 100;
        deg_per_tooth[15] = 100;
        deg_per_tooth[16] = 300;
        
        deg_per_tooth[17] = 100;
        deg_per_tooth[18] = 100;
        deg_per_tooth[19] = 100;
        deg_per_tooth[20] = 100;
        deg_per_tooth[21] = 100;
        deg_per_tooth[22] = 100;
        deg_per_tooth[23] = 100;
        deg_per_tooth[24] = 100;
        deg_per_tooth[25] = 100;
        deg_per_tooth[26] = 100;
        deg_per_tooth[27] = 100;
        deg_per_tooth[28] = 100;
        deg_per_tooth[29] = 100;
        deg_per_tooth[30] = 100;
        deg_per_tooth[31] = 100;
        deg_per_tooth[32] = 100;
        deg_per_tooth[33] = 300;

        trigger_teeth[0] = 0;
        trigger_teeth[1] = 17;
        trig_angs[0] = -300 + tmp_offset; // unknown
        trig_angs[1] = -300 + tmp_offset; // unknown
Is it right, usable? how?

Thanks!

Thierry
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

That won't work just like that because you need to add some sync code as well. (In ms2_extra_ign_in.c)

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Thigre
MS/Extra Newbie
Posts: 5
Joined: Sat Dec 01, 2007 2:38 am

Post by Thigre »

First, an Happy new year to everybody, hope your projects will work!

Hi James ( and all of you reading ;) ), I just didn't have the time to post , I have mod the renix parts (easiest for me):

ms2extra_inc_wheel.c

Code: Select all


    } else if ((flash4.spk_mode & 0x1f) == 16) {
        no_teeth = 17;  // for single coil
        last_tooth = no_teeth;
        no_triggers = 1;
        deg_per_tooth[0] =  100;
        deg_per_tooth[1] =  100;
        deg_per_tooth[2] =  100;
        deg_per_tooth[3] =  100;
        deg_per_tooth[4] =  100;
        deg_per_tooth[5] =  100;
        deg_per_tooth[6] =  100;
        deg_per_tooth[7] =  100;
        deg_per_tooth[8] =  100;
        deg_per_tooth[9] =  100;
        deg_per_tooth[10] =  100;
        deg_per_tooth[11] =  100;
        deg_per_tooth[12] =  100;
        deg_per_tooth[13] =  100;
        deg_per_tooth[14] =  100;
        deg_per_tooth[15] =  100;
        deg_per_tooth[16] =  200;

        trigger_teeth[0] = 0;
        trig_angs[0] = -300 + tmp_offset; // to be determined
ms2_extra_ign_in.c

Code: Select all

SPKMODE16:
//initial sync
            if (!(synch & SYNC_SYNCED)) {
                if  ((!tooth_diff_this) || (!tooth_diff_last) ) {
                    return; // only sync when there's enough data
                }

                // when unsynced we wait until we see a missing double tooth
                if (tooth_diff_this > (tooth_diff_last<<1)) {
                    tooth_no = 0;
                    synch |= SYNC_SYNCED;
                    outpc.sync_status = 2;
                } else {
                  return;
                }

            } else {
            // recheck for sync
               if (tooth_no == 17) {  // (one less)
                  if (tooth_diff_this <= (tooth_diff_last<<1)) {
                     //fell over
                     ign_reset();
                     return;
                  } else {
                     tooth_no = 0;
                  }
               }
            }

	    if (synch & SYNC_FIRST) {
                syncfirst();
	    }

            goto common_wheel;
So, will it work? How can I had it to the extra code for test?

Thanks again,

Thierry
FridgeFreezer
Helpful MS/Extra'er
Posts: 101
Joined: Thu May 13, 2004 1:52 am
Location: Gosport, UK
Contact:

Post by FridgeFreezer »

Watching with interest as I have a 1.8 K-series in the Freelander :RTFM:
evolotion
Experienced MS/Extra'er
Posts: 200
Joined: Mon May 02, 2005 7:08 pm
Location: glasgow, scotland

Post by evolotion »

FridgeFreezer wrote:Watching with interest as I have a 1.8 K-series in the Freelander :RTFM:
your flywheel ought to be 36-1-1-1-1 (36-4) it requires a differnt setup but i imagien it wont be long untill someone has that working!
220ft/lb@7900rpm@20psi ..13.3@114 .. 1.4 16v rover k-series engined rusty mini.
FridgeFreezer
Helpful MS/Extra'er
Posts: 101
Joined: Thu May 13, 2004 1:52 am
Location: Gosport, UK
Contact:

Post by FridgeFreezer »

Mine is the older type with a single coil and distributor, I was kinda hoping to use EDIS-4 as I like the robust nature of the EDIS, I may well just stick a laser-cut trigger wheel on the crank pulley and have done.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I'll try to look at this when I get chance.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I interpreted the above code and added it last night. Anyone who has a workable setup that they can test on please let me know and I'll send you some alpha code. I've a feeling the trigger angle is somewhat out, but that is easy to fix once an engine is synced and firing a coil.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Thigre
MS/Extra Newbie
Posts: 5
Joined: Sat Dec 01, 2007 2:38 am

Post by Thigre »

Hi, sure the trigger angle is out, I 'll find the value ASAP.

Thierry
Thigre
MS/Extra Newbie
Posts: 5
Joined: Sat Dec 01, 2007 2:38 am

Post by Thigre »

I just don't have the time to test it by myself, so I aske an expert!
The trigger angle is exactly 0°, the missing teeth are at both TDC.
So, wouldn't be more interesssting to tell the ECU the Trigger angle is 180°?


Thierry
Post Reply