ECUs and Tuning Discuss Engine Management, Tuning, & Programming

VVT observations - current vs. advance

Thread Tools
 
Search this Thread
 
Old 10-11-2008, 11:49 PM
  #1  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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.
JasonC SBB is offline  
Old 10-12-2008, 12:19 PM
  #2  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

try this:
www.mazda6tech.com/images/enginehighlights.pdf
y8s is offline  
Old 10-12-2008, 01:02 PM
  #3  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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  
JasonC SBB is offline  
Old 10-12-2008, 09:27 PM
  #4  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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.
JasonC SBB is offline  
Old 10-13-2008, 06:58 PM
  #5  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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?
JasonC SBB is offline  
Old 10-13-2008, 08:00 PM
  #6  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
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?
y8s is offline  
Old 10-14-2008, 01:59 AM
  #7  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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.
JasonC SBB is offline  
Old 10-14-2008, 07:38 AM
  #8  
Elite Member
iTrader: (21)
 
paul's Avatar
 
Join Date: Jun 2006
Location: Point Pleasant, NJ
Posts: 2,957
Total Cats: 2
Default

So does this mean VVT cannot be controlled with MS or not without a special circuit in MS?
paul is offline  
Old 10-14-2008, 10:02 AM
  #9  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
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.
y8s is offline  
Old 10-14-2008, 10:51 AM
  #10  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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 11:05 AM.
JasonC SBB is offline  
Old 10-14-2008, 11:34 AM
  #11  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

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

MS sucks.
paul is offline  
Old 10-14-2008, 04:15 PM
  #13  
Elite Member
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,295
Total Cats: 476
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.
patsmx5 is offline  
Old 10-15-2008, 03:38 PM
  #14  
Elite Member
Thread Starter
 
JasonC SBB's Avatar
 
Join Date: 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...
JasonC SBB is offline  
Old 05-30-2009, 05:33 AM
  #15  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

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

Jim
Reverant is offline  
Old 05-30-2009, 09:47 AM
  #16  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

http://y8spec.com/miata_tech/enginehighlights.pdf
y8s is offline  
Old 06-24-2009, 01:28 AM
  #17  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
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
Reverant is offline  
Old 06-24-2009, 10:17 AM
  #18  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

that's all I have. it gave me the same problems the first time I opened it too.
y8s is offline  
Old 06-24-2009, 01:31 PM
  #19  
Elite Member
iTrader: (3)
 
AbeFM's Avatar
 
Join Date: Aug 2006
Location: San Diego, CA
Posts: 3,047
Total Cats: 12
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
AbeFM is offline  
Old 06-24-2009, 01:37 PM
  #20  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,022
Total Cats: 6,589
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.
Joe Perez is offline  


Quick Reply: VVT observations - current vs. advance



All times are GMT -4. The time now is 03:10 AM.