Providing engine specific crank/cam trigger signal Via Tacho

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

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

Postby racingmini_mtl » Wed Oct 24, 2012 12:05 pm

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: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby racingmini_mtl » Wed Oct 24, 2012 3:41 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Wed Oct 24, 2012 4:16 pm

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
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

Postby racingmini_mtl » Fri Oct 26, 2012 7:51 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Mon Oct 29, 2012 5:20 pm

Great!
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

Postby BaldTurboFreak » Wed Oct 31, 2012 4:58 pm

That is SO awesome! I cant wait to try it out!
BaldTurboFreak
Helpful MS/Extra'er
 
Posts: 84
Joined: Sun Aug 21, 2005 2:42 am

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

Postby racingmini_mtl » Wed Oct 31, 2012 5:27 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby BaldTurboFreak » Mon Nov 05, 2012 7:05 pm

Great to hear! Im cash in hand the moment I see your post dude!
BaldTurboFreak
Helpful MS/Extra'er
 
Posts: 84
Joined: Sun Aug 21, 2005 2:42 am

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

Postby racingmini_mtl » Wed Nov 21, 2012 6:54 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Mon Nov 26, 2012 6:21 pm

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
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

Postby racingmini_mtl » Mon Nov 26, 2012 6:38 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Tue Nov 27, 2012 5:08 am

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

Postby frank_ster » Tue Nov 27, 2012 6:18 am

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
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

Postby racingmini_mtl » Tue Nov 27, 2012 8:27 am

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Tue Nov 27, 2012 3:44 pm

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
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

Postby racingmini_mtl » Tue Nov 27, 2012 3:53 pm

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
racingmini_mtl
Super MS/Extra'er
 
Posts: 7974
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

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

Postby frank_ster » Tue Nov 27, 2012 4:13 pm

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

Postby frank_ster » Tue Nov 27, 2012 10:05 pm

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
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

Postby BaldTurboFreak » Sun Oct 15, 2017 10:24 am

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 71 times
BaldTurboFreak
Helpful MS/Extra'er
 
Posts: 84
Joined: Sun Aug 21, 2005 2:42 am

Previous

Return to MS3 Development

Who is online

Users browsing this forum: No registered users and 1 guest