Cant get a good sync on my honda s2000

General support questions and announcements for MS3. See also MS3 manuals.

Moderators: jsmcortina, muythaibxr

Post Reply
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Cant get a good sync on my honda s2000

Post by loser »

I'm trying to set up my megasquirt v3.00 with ms3x to run my s2000, i've got the adaptor harness wired up and tunerstudio seems to get the expected crank and cam timing data (using the logger), 4-1 on the cam and 12 teeth on the crank, and it does briefly sync and start the fuel pump but then loses sync for probably 3/4 of the rev. I'm attempting to run the rc51 code. I also can't find the option to run 4 cylinder even fire but i'll cross that bridge when i get to it.
Attachments
2017-10-13_17.48.41.csv
(21.21 KiB) Downloaded 22 times
s2000 logggg.png
s2000 logggg.png (226.09 KiB) Viewed 323 times
2017-10-13_17.48.41.csv
(21.21 KiB) Downloaded 19 times
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

Didnt seem to upload on first attempt so here goes

Can't seem to upload my msq, any reason for this?
billr
Super MS/Extra'er
Posts: 6828
Joined: Sun May 15, 2011 11:41 am
Location: Walnut Creek, Calif. USA

Re: Cant get a good sync on my honda s2000

Post by billr »

Want a guess? I don't think you can upload an MSQ as the "current tune" in your project file. You have to save the MSQ with a distinct name and upload that saved one.
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

That's the answer, not been messing with my megasquirt long... :RTFM: will upload tomorrow :mrgreen:
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

here's the msq finally, tried swapping the cam signal over to the other cam but no luck yet
Attachments
s2000-1.msq
(283.91 KiB) Downloaded 33 times
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

https://youtu.be/7VF3auKz7GM

a video capture of an attempted sync

i've messed around with the pots and have a new short trigger log for you to view
Attachments
2017-10-15_13.21.15.csv
(20.09 KiB) Downloaded 24 times
billr
Super MS/Extra'er
Posts: 6828
Joined: Sun May 15, 2011 11:41 am
Location: Walnut Creek, Calif. USA

Re: Cant get a good sync on my honda s2000

Post by billr »

I'm not going to be able to help, I know nothing about that specific Honda trigger system. I'm a simple "missing tooth" guy...
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

Had a look through as many .INI files as I could find and can't find where any of the information about the trigger wheels is kept (I'm hoping that may shed some light on my sync issue) but can't find anything related to the rc51 wheel decoders.

Spkmode_0 is mentioned with almost every other number after it (I think from the table I should be looking for spkmode_0 == 30? I'm not sure on that though). Are all the trigger wheel decoders saved in tuner studio rather than the firmware files?

Why can't this be written in arduino? Ha.
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

Looks like the rc51 code won't ever run my s2000, i didnt realise the 3 pins on the trigger wheel weren't 90 degrees apart :(

http://www.msextra.com/doc/triggers/Tri ... 0RC-51.JPG

On the s2000 all 3 teeth on the cam trigger wheels are 90 degrees apart, with 180 degrees being plain.

I don't know how much work it would be to make another trigger mode for the s2000?

I presume the crank/cam sensors are attached to interrupts? For the crank interrupt could it be possible to add a second function that counts crank teeth but the second one gets reset by the cam interrupt, then add an operation to the cam interrupt to check the number of crank teeth since the last cam interrupt, then add a flag along the lines of when "if crank teeth since last cam signal> 11 (12 tooth crank wheel) then the next cam interrupt resets both the crank counters"

Or is that too much code to be processed by the hardware.. i know arduino wouldn't handle it but I don't know C or the ms hardware.

(crank interrupt)
maincrankcounter ++
secondcrankcounter ++

(cam interrupt)
if secondcrankcounter>11 maincrankcounter=0 secondcrankcounter = 0
else secondcrankcounter=0


Syntax miles out but something like the above..
loser
Helpful MS/Extra'er
Posts: 38
Joined: Mon Oct 24, 2011 2:08 am
Location: stoke-on-trent

Re: Cant get a good sync on my honda s2000

Post by loser »

Orrrrrr

crank interrupt normal

cam interrupt

secondcamtoothnumber ++
if secondcamtoothnumber>3 (firstcamtoothnumber ++)


might be more simple to program... who knows?


second edit.. this one wouldnt work..... first one might still though :mrgreen:
Post Reply