VVT ideas and testers

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

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

Re: VVT ideas and testers

Post by jsmcortina »

You can't choose "nitrous 1" for PWM idle, but the principle applies yes.

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".
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

ok how about "idle on idle" and "vvt on nitrous 1" (it appears to be available for that)...
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT ideas and testers

Post by jsmcortina »

Yes, that would work.

I could likely make Idle more flexible with the outputs following some of the other internal changes I recently made.

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".
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

are the groups arbitrary or hardware restrictions?

maybe just an IO config area where you select your groups and output frequencies and then just have TS display that selection in the individual configuration screens but grey it out and make the hover text say "change output frequency in IO settings screen".

blah blah blah.

I really really dont want to redo my harness :)
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT ideas and testers

Post by jsmcortina »

If you want the gory details, read the datasheet of the CPU from Freescale. The pin groupings are built into the processor.

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".
shuiend
Helpful MS/Extra'er
Posts: 71
Joined: Thu Jul 03, 2008 3:17 pm

Re: VVT ideas and testers

Post by shuiend »

I got my diode installed this morning. I will hopefully be getting rough settings from y8s today and will give VVT a try tonight and tomorrow on my miata.

I got all the info I needed form y8s and created a new msq for tonight. I will be running alpha 6 and will be trying VVT tonight on my way home from work.
94 Miata running a MS3. Begi turbo kit with a SR20 t25
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT ideas and testers

Post by Reverant »

y8s wrote:I posted a wanted ad on miata.net and someone in my city has a spare to give me so you're off the hook Dimitris.

tried to upload my .table file but:
msextra forum wrote:The upload was rejected because the uploaded file was identified as a possible attack vector.
so here it is:
Image

and the table file if you want.
http://y8spec.com/megasquirt/vvt_test/y ... 1.00.table

Matt
Actually I was more interested in all the other VVT settings than the table itself.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

oh well here's the settings I'm using in alpha 6 I think.
y8s_vvt_settings_apr022011.png
dthomp87
MS/Extra Newbie
Posts: 7
Joined: Thu Feb 10, 2011 6:07 pm

Re: VVT ideas and testers

Post by dthomp87 »

So, for the S54 with with the double solenoids per cam, how would this be setup on ms3x? someone mentioned setting up an H bridge, how could this be switched? I'm wondering how this need to be implemented into the software. It uses one solenoid for advancing and one for retarding.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: VVT ideas and testers

Post by Peter Florance »

re flyback noise and using 1N4004 etc across solenoid vs standard MS3X flyback, has anyone scoped OEM setup to see how they are operating the solenoids? I can probably get to scoping a car next week (BMW) but have no access to Miata.

Sorry if this has already been done; I wasn't able to find that information.

Great code and testing guys; I'm excited to try it.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT ideas and testers

Post by Reverant »

Miata VVT solenoid on the stock ECU:

Image

Very little flyback, as you can see.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: VVT ideas and testers

Post by Peter Florance »

Reverant wrote:Miata VVT solenoid on the stock ECU:

Image

Very little flyback, as you can see.
To me, the parallel diode you installed is the correct setup.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

Reverant wrote:Miata VVT solenoid on the stock ECU:

(scope of stock ecu removed)

Very little flyback, as you can see.
So how does the stock ECU handle it?
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: VVT ideas and testers

Post by Peter Florance »

y8s wrote:
Reverant wrote:Miata VVT solenoid on the stock ECU:

(scope of stock ecu removed)

Very little flyback, as you can see.
So how does the stock ECU handle it?
Probably internal diodes that shunt spike to +12V (same that valve is connected to)
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT ideas and testers

Post by jsmcortina »

dthomp87 wrote:So, for the S54 with with the double solenoids per cam, how would this be setup on ms3x? someone mentioned setting up an H bridge, how could this be switched? I'm wondering how this need to be implemented into the software. It uses one solenoid for advancing and one for retarding.
You'll need to dig out some info on that - wiring and fluid diagrams if possible.

Could this be anything like a 3 wire idle valve setup or totally different?

There's no support for that in the code right now, but with the right information we can look at it for sure.


I sent test code to Reverent and y8s. Sounds like Reverent had some tuning software problem corrupting the MSQ as it loaded.

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".
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: VVT ideas and testers

Post by Reverant »

y8s did you test the .s19 that James sent you?
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

I did a little but I'm not certain I have my VVT settings dialed in the right way for the new firmware and haven't had a chance to mess with it since learning the "new way".

Previously, angles entered and reported were absolute angles and the table was relative angles.

Now I think I need to enter relative angles -- because that's what the target angle shows?

Hell, I'll just upload the map and log:
...
http://y8spec.com/megasquirt/vvt_test/apr5/

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

Re: VVT ideas and testers

Post by jsmcortina »

As I said by email - you need to reconfirm your vvt min/max angles as I found a calculation error and changed the code - therefore the angle reported might be different and outside of the range. As per the previous change, if the angle is out of range it doesn't alter the displayed angle (in an attempt to fix the spikes gurov was seeing.)

Just to repeat.
The min/max angles are ABSOLUTE. Determine these by setting them to zero and using the test mode to advance/retard the cams.

Once those are set, the table and reported angles are "real world" relative angles. (Except I spotted another missed line of code - doh !)
I see how that happened too. I fixed the code, then worked on another issue. During that time I lost my first change.

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".
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: VVT ideas and testers

Post by y8s »

Here's the latest firmware test james gave me that corrects the reported angles.

Image

Response is way crazy compared to initial VVT implementations but, again, that may be PID tuning--which I haven't had a chance to do.

But the reported angles make sense now.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: VVT ideas and testers

Post by jsmcortina »

You VVT solenoid is almost certainly behaving differently now that you've change the flyback arrangement.

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".
Post Reply