ECUs and Tuning Discuss Engine Management, Tuning, & Programming

VVT observations - current vs. advance

Thread Tools
 
Search this Thread
 
Old 10-12-2008 | 12:49 AM
  #1  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default VVT observations - current vs. advance

BTW here are some waveforms taken by someone else.

https://www.miataturbo.net/forum/sho...5&postcount=64

I first observed the current waveform on the VVT solenoid as applied by the factory ECU, and cam and crank signals. I could only do it with the car in the garage. When the cam is retarded (idle), there is zero current. When I rev it, it applies ~0.5A. The frequency is around 500 Hz and the duty cycle ranges from from around 40 to 65%. The current ripple is around 20%.

It seems that the solenoid is controlled by current, and its position responds to average current (average over the duty cycle).

The factory ECU will occasionally "blip" the current to 1A (briefly, as in for less than 1 engine cycle (2 revolutions) - perhaps a 'D' term (D in PID). As idle settles down, it will also blip the current briefly - like it wants to advance the cam for a very short time as the idle settles.

So I observed the cam vs crank waveforms as I applied current to the VVT solenoid.

It appears that the control range of current is 0.4 to 0.6A. However there isn't a simple 1 to 1 correspondence between current and advance.

Firstly there is hysteresis. I need to raise current to nearly 0.6A for it to begin advancing, and I have to reduce it nearly 0.4A to begin retarding.

And, once it begins advancing at a given current, it appears to continue advancing until I back the current off. It happens too fast for me to catch with the **** on my power supply.

Someone posted a diagram of the guts of the VVT actuator and the solenoid. I couldn't find it. Maybe by analyzing it, it can shed some light on the behaviour I've observed.
Old 10-12-2008 | 01:19 PM
  #2  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

try this:
www.mazda6tech.com/images/enginehighlights.pdf
Old 10-12-2008 | 02:02 PM
  #3  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default vvt timing diagram

Here's the timing diagram, full advance.

After playing some more my observations have changed a bit.

I played with it again this morning with cold oil (50°F), it didn't change my observations.

More later.
Attached Thumbnails VVT observations - current vs. advance-vvt-timing.jpg  
Old 10-12-2008 | 10:27 PM
  #4  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by y8s
Description makes sense. At 0.5-0.52A the valve is in the "hold" position. Below that it retards and keeps retarding, and above that it advances and keeps advancing. Valve sticks a bit thus the hysteresis.
Old 10-13-2008 | 07:58 PM
  #5  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

y8s,

From the document, does it appear to you that when advancing the cam from full retard, that the oil pressure needs to fight some kind of spring force?
Old 10-13-2008 | 09:00 PM
  #6  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

on p 1-10-33, it looks like the spool valve has a spring (as part of the solenoid operation) but if I had to guess, oil pressure holds the cam retarded when the solenoid is not energized (spring holds the valve/solenoid such that oil flows to the retard chamber).

interestingly it seems that holding the spool valve at "half way" blocks passages to both advance and retard chambers.

I can only assume the "stopper pin" is spring loaded very lightly and any oil pressure will disengage it.

so that makes me wonder.. do you just change current til you get the advance you want and then stop the valve back at half way to lock everything in place?
Old 10-14-2008 | 02:59 AM
  #7  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by y8s
on p 1-10-33, it looks like the spool valve has a spring (as part of the solenoid operation) but if I had to guess, oil pressure holds the cam retarded when the solenoid is not energized (spring holds the valve/solenoid such that oil flows to the retard chamber).

interestingly it seems that holding the spool valve at "half way" blocks passages to both advance and retard chambers.
That's what the diagram of the spool valve shows. However, if you read the descriptions, it seems that hold the spool valve "half way" applies oil pressure to both advancing and retarding chambers, thus holding the cam phase.
Old 10-14-2008 | 08:38 AM
  #8  
paul's Avatar
Elite Member
iTrader: (21)
 
Joined: Jun 2006
Posts: 2,957
Total Cats: 2
From: Point Pleasant, NJ
Default

So does this mean VVT cannot be controlled with MS or not without a special circuit in MS?
Old 10-14-2008 | 11:02 AM
  #9  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

Originally Posted by JasonC SBB
That's what the diagram of the spool valve shows. However, if you read the descriptions, it seems that hold the spool valve "half way" applies oil pressure to both advancing and retarding chambers, thus holding the cam phase.
whether it leaves the passages open or closed is pretty irrelevant since the oil is largely incompressible.

but if you can figure out what "half way" is, you can set your timing with a feedback loop and then go "halfway" and lock it down until other criteria are met to change it again.
Old 10-14-2008 | 11:51 AM
  #10  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

The difference between spool valve opens both or closes both, is that with the latter, it will definitely lock it in a fixed position, but with the former, it will wander around depending on the relative flow from both sides of the spool valve. (The former also assumes that the oil can stay in the chambers without draining away).

but if you can figure out what "half way" is, you can set your timing with a feedback loop and then go "halfway" and lock it down
If the current that yields this halfway point has a deadband then this will work.

I'm not 100% certain that this "halfway" point has a deadband... y8s needs to open up a spool valve.

The other issue is that this current for the halfway point will vary from one solenoid to another, so the controller algorithm needs to find it.

A PID controller would work ... there definitely needs to be a 'D' to get the phase changing rapidly ( it would take several 100 mS for the cam to wander over without it ), a P would get the cam centered, and the 'I' would function to find the "locked in" setpoint. However having effectively an additional 'I' in the natural transfer function of the VVT mechanism can mean oscillation.

So Paul what you said is correct.

Last edited by JasonC SBB; 10-14-2008 at 12:05 PM.
Old 10-14-2008 | 12:34 PM
  #11  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

I dont have a spare spool valve on my #2 head unfortunately. Ask AbeFMraham.
Old 10-14-2008 | 04:53 PM
  #12  
paul's Avatar
Elite Member
iTrader: (21)
 
Joined: Jun 2006
Posts: 2,957
Total Cats: 2
From: Point Pleasant, NJ
Default

MS sucks.
Old 10-14-2008 | 05:15 PM
  #13  
patsmx5's Avatar
Elite Member
iTrader: (16)
 
Joined: Aug 2007
Posts: 9,352
Total Cats: 524
From: Houston, TX
Default

Originally Posted by paul
MS I sucks.
Fixed. I've heard (read I have no clue, I just read somewhere) that MS2 can do PID, though not well.
Old 10-15-2008 | 04:38 PM
  #14  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Does the MS1/2 have a 3D PWM output?

I'm thinking, maybe I could build a VVT control box, which takes an advance command signal from the MS, and the CKP and CMP signals, and then controls the spool valve...
Old 05-30-2009 | 06:33 AM
  #15  
Reverant's Avatar
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 5,991
Total Cats: 362
From: Athens, Greece
Default

The mazda6tech.com site is down, does anyone have the pdf handy?

Jim
Old 05-30-2009 | 10:47 AM
  #16  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

http://y8spec.com/miata_tech/enginehighlights.pdf
Old 06-24-2009 | 02:28 AM
  #17  
Reverant's Avatar
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 5,991
Total Cats: 362
From: Athens, Greece
Default

Thanks, I never read anything but the Megasquirt forum so I just saw this. The PDF seems to be corrupted, several pages won't render and will crash several of the PDF viewers I tried. Re-downloading doesn't help, seems like the uploaded file itself is corrupted. Any ideas?

Jim
Old 06-24-2009 | 11:17 AM
  #18  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

that's all I have. it gave me the same problems the first time I opened it too.
Old 06-24-2009 | 02:31 PM
  #19  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Ok, HAVE to read this thread. But, real quick - there's plenty of 2D tables you could use...

There was insanely bad PID, they supposedly fixed it. As yet I haven't really been able to find out if it's true PID. There's so many lock outs, patches, safetys, limits... that I couldn't do a simple test like run it in P-only mode and see if it responds as it should.

I might give this another try, however. Anyway, they also have PID for their boost control, but I believe it to be a separate instance for each, not a generic PID function which you can just call when you need it.

Now on to the 'mechanical's
Old 06-24-2009 | 02:37 PM
  #20  
Joe Perez's Avatar
Boost Pope
iTrader: (8)
 
Joined: Sep 2005
Posts: 33,556
Total Cats: 6,933
From: Chicago. (The less-murder part.)
Default

Forgetting for a moment about the control mechanism for the valve, did we ever figure out a way to make MS2 actually calculate the angular relationship between the crank and cam based upon the relative timing of their sensor inputs? If so, I must have missed it.



All times are GMT -4. The time now is 08:20 AM.