Dual wheel. MT reads only half Rpm. SOLVED!

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
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Dual wheel. MT reads only half Rpm. SOLVED!

Post by GintsK »

Hello!

Want use dual wheel setting on Honda H22 engine which use 3 trigger system: two on crank: evenly 12 and 2 tooth and one inside distributor giving one impulse per cam rotation. I want use 12tooth sensor on crank and cam sensor. Single coil on D14.

But problem isMegatune reads only half of real Rpm. I check it on real engine during cranking and on bench tests using modified base msq, other board and other signal conditioners. I checked input signals at CPU with scope - looks OK in both cases. Got half of sparks needed - two per 720deg.

ms2extra_beta20071104, Also try it on older
ms2extra_beta20070812 - on engine only.

Will be very gratful for help. Here is my settings:
Gints
Last edited by GintsK on Thu Nov 29, 2007 2:21 pm, edited 1 time in total.
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I can confirm that I believe this to be a bug in the code. It relates to one line of code that I changed recently. It may work it far older betas, but I'm note sure.

In any case, I think I have fixed it, but need to test some more.

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".
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Post by GintsK »

Thanks for fast reply!

James, how old beta version I could try?

I have another question related this. We got stable rpm reading (half) with spark plugs unscrewed, but can't get stable sync when compression stroke brake crank rotation with plugs in. I count impulses between cam signal on oscillogram - there still was 24 pulses but irregular at TDC - our battery was on weak side. Does firmware do some filtering for this kind of wheel or I must look for hardware problems only?

Gints.
Some of my instalations:
VW TBI, VW 16V 60-2,
BMW M50 COPs 60-2, BMW M20 and M50 ITBs as Alpha-N, BMW M20 turbo Wasted spark
Opel 20XE Wasted Alpha-N with ITBs
Audi 10VT Audi20V
MR2 3S-GE.............
and over 100 tuned
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

Check which edge (or VR polarity) of the camshaft signal you are using. It is imperative that it occurs between two teeth. If it sometimes happens before or after tooth then you will loose sync.

A non-missing tooth dual wheel setup should be pretty immune to crank speed variation. Whereas a missing tooth setup can misdetect the missing tooth due to crank compression effects.

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".
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Post by GintsK »

Hello.

Just try new 2.0 beta 16 (20071122) on bench. Looks like it still do not work for me. :(

Half of rpms as previous. And I notice only way to get synced is chose secondary trigger from falling edge. It is problem for me because I use LM1815 for cam. And according to datasheet output edge is rising.

Can get 24xx rpm on my test .waw if I double teeth 12->24 in settings and define my crank wheel as cam wheel. It must work. But not with wrong trigger edge for cam.

My hardware settings:
12 teeth wheel -> VRIN -> VROUTINV -> TSEL selected falling edge
Cam tooth ->LM1815 ->JS10 rising edge.

Gints.
Some of my instalations:
VW TBI, VW 16V 60-2,
BMW M50 COPs 60-2, BMW M20 and M50 ITBs as Alpha-N, BMW M20 turbo Wasted spark
Opel 20XE Wasted Alpha-N with ITBs
Audi 10VT Audi20V
MR2 3S-GE.............
and over 100 tuned
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I've sent some test code. If it works I'll post another beta.

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".
FunnyBoY
MS/Extra Newbie
Posts: 5
Joined: Mon Nov 19, 2007 12:39 pm

Post by FunnyBoY »

jsmcortina wrote:I've sent some test code. If it works I'll post another beta.

James
No it still doesnt work.
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Post by GintsK »

From here http://www.msextra.com/viewtopic.php?t=26715&start=20
jsmcortina wrote:Caution:
the prediction and wheel mode changes aren't implemented correctly in beta16. Due to pressure of work I hadn't fully tested or committed all the code I'd written.

We are working on it for beta 17.

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

Post by jsmcortina »

FunnyBoY wrote:
jsmcortina wrote:I've sent some test code. If it works I'll post another beta.

James
No it still doesnt work.
Thanks for the bug report. Your detailed description is very helpful in fixing it.

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".
mops
Master MS/Extra'er
Posts: 705
Joined: Sun Sep 25, 2005 5:13 pm
Location: Auckland, NZ
Contact:

Post by mops »

i dont kind of understand what tooth wheels there are on the engine....

i've seen h22 dizzy (they are different for different MY I believe)
it has two tooth thwwles. one is i believe 24 tooth (no missing) and other has only 1 tooth if memory serves me right... or maybe 2 teeth (180 degree apart...) like 4age 5valve silvertop dizzy...

i'm not aware of the crank wheel on h22 motor, but i dont have much experience with them. i had a lok at one once and AFAIK it's only dizzy sensor(s)... but what do i know...

have you tried running it wihout cam sync ? just crank it and see whether you get proper rpm readout without cam sync (set it for wasted spark, just to confirm correct rpm readout)
BMW, 1985, E30, 325i, 2-door, 5spd. Lots of custom work. Turbo build in progress: http://www.e30tech.com/forum/showthread.php?t=55733
FunnyBoY
MS/Extra Newbie
Posts: 5
Joined: Mon Nov 19, 2007 12:39 pm

Post by FunnyBoY »

GintsK wrote:From here http://www.msextra.com/viewtopic.php?t=26715&start=20
jsmcortina wrote:Caution:
the prediction and wheel mode changes aren't implemented correctly in beta16. Due to pressure of work I hadn't fully tested or committed all the code I'd written.

We are working on it for beta 17.

James
GintsK please make a short description of the problem?
FunnyBoY
MS/Extra Newbie
Posts: 5
Joined: Mon Nov 19, 2007 12:39 pm

Post by FunnyBoY »

James, Ken any updates?

Thanks Janis.
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

jsmcortina wrote:
FunnyBoY wrote:No it still doesnt work.
Thanks for the bug report. Your detailed description is very helpful in fixing it.
FunnyBoy, I could be wrong, but that sounded a hint sarcastic to me.

Perhaps if instead of "No it still doesnt work" you describe what you tried/why it doesnt etc and supply an msq and datalog. then they might have a little more luck making progress on it for you.
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Post by GintsK »

mops wrote:i dont kind of understand what tooth wheels there are on the engine....

i've seen h22 dizzy (they are different for different MY I believe)
it has two tooth thwwles. one is i believe 24 tooth (no missing) and other has only 1 tooth if memory serves me right... or maybe 2 teeth (180 degree apart...) like 4age 5valve silvertop dizzy...

i'm not aware of the crank wheel on h22 motor, but i dont have much experience with them. i had a lok at one once and AFAIK it's only dizzy sensor(s)... but what do i know...

have you tried running it wihout cam sync ? just crank it and see whether you get proper rpm readout without cam sync (set it for wasted spark, just to confirm correct rpm readout)
In our case there is 3 sensors: two 2 and 12 teeth on crank and one with 1tooth in dizzy. We got engine running using 2 teeth crank sensor. But it is used for cranking in OE application and due to this both teeth is close to TDC. result is imprecise fluctuating advance on running engine.
It is Accord TypeR. Turbo. VTEC...
Some of my instalations:
VW TBI, VW 16V 60-2,
BMW M50 COPs 60-2, BMW M20 and M50 ITBs as Alpha-N, BMW M20 turbo Wasted spark
Opel 20XE Wasted Alpha-N with ITBs
Audi 10VT Audi20V
MR2 3S-GE.............
and over 100 tuned
FunnyBoY
MS/Extra Newbie
Posts: 5
Joined: Mon Nov 19, 2007 12:39 pm

Post by FunnyBoY »

..
Last edited by FunnyBoY on Fri Nov 30, 2007 12:29 am, edited 1 time in total.
GintsK
Experienced MS/Extra'er
Posts: 274
Joined: Sat Aug 07, 2004 11:15 am
Location: Riga, Latvia

Post by GintsK »

Solved!

Alpha code reads Rpms as expected and gives four sparks per cycle for our 4cyl engine. http://www.msextra.com/ms2extra/files/a ... 071124.zip


Problem with rising/falling edge was due to my hardware settings!


Background:
I have configured long output pulse from LM1815 circuit at first nonsuccessive starts - 13ms using big cap. Picture from LM1815 datasheet below. The only reason was easy to scope so long signal relatively to loong engine cycle at cranking.

After signal inverting I found sync errors from falling edge (previous problem was rising). In both cases this was LM1815 active edge usable for sync!! But problem was at other edge - sync works from it!!! Deep zooming in timebase to investigate seemingly useless edge gives an answer! Normally problem was not visible. Here falling edge scopeshoot 1div=0.02ms or 0.04% of one cycle @2400Rpm of my testfile.

Thanks, James for Your work and sorry for confusing You!

Gints.
Some of my instalations:
VW TBI, VW 16V 60-2,
BMW M50 COPs 60-2, BMW M20 and M50 ITBs as Alpha-N, BMW M20 turbo Wasted spark
Opel 20XE Wasted Alpha-N with ITBs
Audi 10VT Audi20V
MR2 3S-GE.............
and over 100 tuned
Post Reply