MEGAsquirt A place to collectively sort out this megasquirt gizmo

Controlling VVT

Thread Tools
 
Search this Thread
 
Old 09-05-2008, 11:36 AM
  #61  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Coolio.

What's your control strategy? (e.g. PID, hysteretic, etc)
JasonC SBB is offline  
Old 09-05-2008, 11:56 AM
  #62  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,978
Total Cats: 356
Default

I'll start with P and work my way up to I and D if needed.

Jim
Reverant is offline  
Old 09-05-2008, 12:57 PM
  #63  
Elite Member
Thread Starter
iTrader: (3)
 
AbeFM's Avatar
 
Join Date: Aug 2006
Location: San Diego, CA
Posts: 3,047
Total Cats: 12
Default

Originally Posted by Reverant
I'll start with P and work my way up to I and D if needed.

Jim
Just what I was thinking.I have an unemployed electrical engineer as a friend, and I keep trying to get him to do something like this. Guess I'll have to come up with something else for him, now. :-P

Thanks for the pointers on the schematic.
AbeFM is offline  
Old 09-05-2008, 04:44 PM
  #64  
Newb
 
mistersolo's Avatar
 
Join Date: Jun 2008
Location: Omaha, NE
Posts: 24
Total Cats: 0
Default

I finally got around to getting a scan of the VVT cam and crank signals with the Oil Control Valve (OCV) plugged in and unplugged. Please excuse the crappy pictures. The top picture, the cam overlapping the crank signal, is when 12v is applied to the OCV.
Attached Thumbnails Controlling VVT-vvtscan-plugged-web.jpg   Controlling VVT-vvtscan-unplugged-web.jpg  

Last edited by mistersolo; 09-05-2008 at 05:01 PM.
mistersolo is offline  
Old 09-05-2008, 07:46 PM
  #65  
Elite Member
Thread Starter
iTrader: (3)
 
AbeFM's Avatar
 
Join Date: Aug 2006
Location: San Diego, CA
Posts: 3,047
Total Cats: 12
Default

Awesome!

That's a lot of shift, wow... Anyway, the first thing I notice is that the two pulses can fall on opposite sides of the crank tooth - it'll take a little work with the MS code to figure out if it matters. I think it uses the number of teeth between crank teeth as the sync signal. If it uses the number in one full rev we're ok, if it's between adjacent teeth we're in trouble.

Also, unfortunately, the gap in the trace kinda blocks out part of the trace - really, putting the scope in "single" mode would work a lot better! But either way, that's a big help.

Will reflect on it. :-)
AbeFM is offline  
Old 09-05-2008, 10:28 PM
  #66  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,039
Total Cats: 6,604
Default

Are you MS2 guys looking at rising edges or falling edges of the CMP? Because it looks to me like all of the rising edges always remain on the "correct" side of that TDC CKP pulse- only the first falling edge of CMP appears to cross the line.

Take off every 'ZIG'!!
You know what you doing.
Move 'ZIG'.
For great justice.
Joe Perez is offline  
Old 09-06-2008, 02:18 AM
  #67  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by Reverant
I'll start with P and work my way up to I and D if needed.

Jim
The problem with P only is the steady state error. The problem with a (varying) steady state error in your VVT and a speed-density (MAP) system (as opposed to a mass air (MAF) system), is that your AFR will vary with the VVT phase error.

What is the mechanism of the VVT? What's the transfer characteristic of VVT solenoid to phase? This characteristic will greatly affect the control strategy. It's possible that the mechanism has an I characteristic, so what you actually need is a P and a D, and perhaps the "null" point should be 50% duty.
JasonC SBB is offline  
Old 09-08-2008, 12:46 PM
  #68  
Elite Member
Thread Starter
iTrader: (3)
 
AbeFM's Avatar
 
Join Date: Aug 2006
Location: San Diego, CA
Posts: 3,047
Total Cats: 12
Default

Originally Posted by Joe Perez
Are you MS2 guys looking at rising edges or falling edges of the CMP? Because it looks to me like all of the rising edges always remain on the "correct" side of that TDC CKP pulse- only the first falling edge of CMP appears to cross the line.

I believe it is the falling edge, I know it's the same edge of both. And I also think it's the trailing edge (actually rising) since the leading edge is (curiously) unreliable.

Originally Posted by JasonC SBB
The problem with P only is the steady state error. The problem with a (varying) steady state error in your VVT and a speed-density (MAP) system (as opposed to a mass air (MAF) system), is that your AFR will vary with the VVT phase error.

What is the mechanism of the VVT? What's the transfer characteristic of VVT solenoid to phase? This characteristic will greatly affect the control strategy. It's possible that the mechanism has an I characteristic, so what you actually need is a P and a D, and perhaps the "null" point should be 50% duty.
Heh - I sure as heck don't know the transfer characterisitic of VVT. I think that's one thing that makes engineering princebles harder to apply outside of the design phase, you don't always have the answers you want.

I would imagine, however, that it depends on oil pressure.

My thought was a fixed offset, especially is small, would be ok, since all that really matters is how the motor runs there.
AbeFM is offline  
Old 09-08-2008, 02:41 PM
  #69  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,039
Total Cats: 6,604
Default

Originally Posted by AbeFM
I believe it is the falling edge, I know it's the same edge of both. And I also think it's the trailing edge (actually rising) since the leading edge is (curiously) unreliable.
So which is it? The trailing edge is the rising edge according to those scope shots. If it's the riding (trailing) edge, then you guys should be in good shape.
Joe Perez is offline  
Old 09-08-2008, 03:59 PM
  #70  
Elite Member
Thread Starter
iTrader: (3)
 
AbeFM's Avatar
 
Join Date: Aug 2006
Location: San Diego, CA
Posts: 3,047
Total Cats: 12
Default

Sorry, I can never get used to this negetive logic, it's the same slope on all traces, user selectable. However, using other-than-trailing (rising) edge is a bad idea, the sensors are unrelaible there.

The VVT pulses are different shapes, interestingly. However, as the MS-II code is now, I don't think it matters. Only number of edges matters. But I don't like how there are two edges on opposite sides of a crank pulse. Guess one could either: try it and see, ask the MS-II guys, or move the cam sensor on an earlier car to emulate it. :-)
AbeFM is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Corky Bell
Prefabbed Turbo Kits
18
11-22-2016 09:01 PM
Rick02R
WTB
3
01-03-2016 07:18 PM
russian
Miata parts for sale/trade
6
10-08-2015 03:01 PM



Quick Reply: Controlling VVT



All times are GMT -4. The time now is 04:41 PM.