Providing engine specific crank/cam trigger signal Via Tacho

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

The TinyIOx also has a proto area that could be used but there could be issues with the license in doing it that way. Both James and I are the copyright owners of the code and board so I don't want to do anything without his approval so I'll discuss this with him to come up with the best way to handle it.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

After discussing it with James, I will look into having a special version of the TinyIOx that actually integrates some of the JimStim code so that you only need the TinyIOx to generate the crank and cam signals. So by putting a couple of transistors and a few resistors on the proto area, you'd have a solution you can put inside the MS case.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

great!

jean can i buy you a beer?!
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

I have done some tests with a preliminary version of the code on a TinyIOx that was communicating with an MS2 running MS2/Extra. The setup was able to generate a 36-2-2-2 pattern at 15000RPM with the RPM being updated over the CAN bus about 100 times per seconds.

The code keeps all the standard TinyIOx features and adds the JimStim wheel pattern outputs but if you use them that would very likely have an impact on the maximum RPM and update rate supported. Also, if you use a wheel pattern with more shorter teeth like a 60-2, the maximum RPM is lowered (more than 8000RPM is possible with a 60-2). And if you use the RPM outputs, you can no longer use the PWM outputs because the CPU pins are the same ones as those used for the RPM outputs.

This is what the settings look like:
rpm_output_settings.png
Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

Great!
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
BaldTurboFreak
Helpful MS/Extra'er
Posts: 88
Joined: Sun Aug 21, 2005 2:42 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by BaldTurboFreak »

That is SO awesome! I cant wait to try it out!
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

I just need to check a few things and I should be able to have kits available soon. The kit would include the TinyIOx with the code that has the JimStim patterns and transistors and resistors to make the output circuits. You would need to assemble these circuits in the proto area (on the TinyIOx board) and connect them to the appropriate pad on the header. With this you can have a 5V or 12V square wave output for the crank and cam signals. I would also include a couple of small capacitors so that you can a pseudo-VR signal.

I'll give more details when I'm ready to sell these.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
BaldTurboFreak
Helpful MS/Extra'er
Posts: 88
Joined: Sun Aug 21, 2005 2:42 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by BaldTurboFreak »

Great to hear! Im cash in hand the moment I see your post dude!
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

It has been longer than I had planned for but I finally got around to it and checked what I wanted to check. And it is working as intended. So if you are interested in this, send me a PM for details on how to get the TinyIOx with the JimStim output.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

also is it possible to provide the cam trigger also ? i need a 5v square wave at 90 and at 180 deg.
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

You have the crank and cam outputs as per the JimStim patterns. Which wheel mode do you need?

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

the subaru 36 -2 -2 -2 and then cam sensor at 90 deg and at 180 i believe.
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

correction the 2005 subaru cam has 3 notches in it :shock:
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

Well, that's a problem because the pattern in the JimStim has 2 pulses on the cam signal not 3. Do you know what's the angle position for those notches?

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

i'll have to degree wheel the engine.

think it would be worth while having a dialogue box settable cam settings ?

there must be other manufacturers with multiple pulses on the cam(s) ?

i know i only need the drivers side intake camshaft to get the correct signal to make the ecm happy.
i also know if the timming belt if off one tooth it wont be happy and wont allow the engine to start.
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Providing engine specific crank/cam trigger signal Via T

Post by racingmini_mtl »

The JimStim patterns are a fixed set of intervals between either crank or cam tooth events. Having a dialog to change that would require something completely different so that's not going to happen. Moreover, having a different cam pattern for the same crank pattern is not something that common.

Having said that, the JimStim offers the possibility of making custom patterns and it would be possible to do the same here. However, I'd need to write the code to load those new patterns to the TinyIOx memory because the memory structure and code are different in the two CPUs. But you still need to know the exact position of the cam teeth with respect to the crank teeth position.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

as fas as i know all the turbocharged subarus 04+ with the cam advance have the same setup as mine.
the n/a subarus have the same crank wheel but only one notch per cam revolution. this should be true for 08 and older the newer i'm not sure what they changed.

i'll try and get this information for the exact angle of the crank for each cam signal.
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
frank_ster
Experienced MS/Extra'er
Posts: 226
Joined: Tue Sep 11, 2007 11:07 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by frank_ster »

recieved tinyiox ! its tiny !
2005 subaru legacy with buick grandnational engine and awd :D
1976 gmc k10 pickup vortec 383 tbi ms2 nv4500 3.42 final drives
BaldTurboFreak
Helpful MS/Extra'er
Posts: 88
Joined: Sun Aug 21, 2005 2:42 am

Re: Providing engine specific crank/cam trigger signal Via T

Post by BaldTurboFreak »

Bringing this thread back from the dead,
-my original build the EG33, I was able to replace the unused 2nd trigger on the crank with the 36-2-2-2 from the 4cyl and viola! stock ecu happy and inspection.

- I have now built another turbo H6 wrx this time with the EZ30D engine. This has no means of a simple add a 4cyl crank trigger and let er' rip.

Has the code progressed to the point that the original post is possible? To output a selectable crank and cam pattern from the MS3 to provide the OBD2 ecu in the vehicle with an RPM signal and therefore retain all emissions/dash/a/c etc functions.
Attachments
Bugeye.jpg
Bugeye.jpg (268.44 KiB) Viewed 597 times
Post Reply