MEGAsquirt A place to collectively sort out this megasquirt gizmo

VVT angle oscillates at idle

Thread Tools
 
Search this Thread
 
Old 11-13-2011, 07:22 PM
  #1  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default VVT angle oscillates at idle

Got a weird issue that stopped me from getting my VVT working over the summer. At idle the VVT angle reading oscillates between 277 and 295 degrees. If I try to enable PID control of the cam the idle goes to **** while the MS tries to figure out what is going on.

Not sure why it is happening or any idea on what I could have fucked up to cause it. Motor is a 2005, shell is a 1997. VVT is controlled over the IAC wires. Car runs otherwise fine, have about 13 hours on the motor currently.

I attached the msq and a quick data log showing it. Also a picture of it happening for the low effort crowd. Now I know the reading is at least somewhat right because I killed the motor by setting the test duty cycle to 99 and the log shows that the cam advanced.


Attached Thumbnails VVT angle oscillates at idle-cu9yb.png  
Attached Files
File Type: msl
vvt-jitter.msl (192.5 KB, 137 views)
File Type: msq
CurrentTune.msq (142.4 KB, 134 views)
FatKao is offline  
Old 11-13-2011, 09:10 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

set your vvt target to 0 at idle.

edit:
nevermind that. you have to set your minimum and maximum angles or the target will be meaningless.

0. create gauges on the dashboard for VVT angle 1.
1. enable the test output.
2. set test output duty to 0%
2b. start the car.
3. look at the VVT angle 1 and write it down. note this as "minimum".
4. open up the VVT dialog again and hold your RPM at 2000
5. set the vvt duty to 100%
6. look at the VVT angle 1 and write it down. note this as "maximum".
7. turn off the car and enter these values in the min and max fields.

disable VVT test output
disable Use Hold Duty.

start up.
y8s is offline  
Old 11-13-2011, 09:19 PM
  #3  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

It is. Using the table you posted in the ms3efi VVT thread. Also running test mode with duty set to 0 in that log. I get the same odd readings if I pull the plug out of the VVT solenoid as well.

e:

I'll try that process again tomorrow. The last time I tried it (a few months ago) I didn't get a single value under step 3. Can't remember if I got a single value for the max either. Let me see if I can find a datalog.

Last edited by FatKao; 11-13-2011 at 09:30 PM.
FatKao is offline  
Old 11-14-2011, 10:50 AM
  #4  
Elite Member
iTrader: (2)
 
Faeflora's Avatar
 
Join Date: Jan 2007
Location: Los Angeles, CA
Posts: 8,682
Total Cats: 130
Default

What happens to your idle if you unplug the solenoid?
Faeflora is offline  
Old 11-14-2011, 11:14 AM
  #5  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

Nothing, car idles/runs perfectly unless I manually advance the cam with test duty (stalls as expected) or enable PID control, then idle oscillates badly and the motor eventually stalls. I highly doubt that what the MS3 is indicating is the reality of the cam. I can only get one trace on my scope though so I can't easily verify. I might have to go and buy a new set of test leads if I can't figure out why this is happening.

Last edited by FatKao; 11-14-2011 at 11:23 AM. Reason: clarity
FatKao is offline  
Old 11-14-2011, 11:40 AM
  #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

if the vvt angle 1 is showing anything other than ~0 you need to either:

A) update your firmware to alpha 11 or higher
B) fix your minimum angle.
y8s is offline  
Old 02-25-2012, 02:46 PM
  #7  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

I think I may have figured out what the issue is. I have my trigger set to rising edge. It seems that the other stuff I see from 01+ Miatas is falling edge.

Do you guys have falling edge as well? And I can't get the car to start if I change from rising to falling edge. Any ideas on what I would have to change other than the offset to get it going properly? MSQ is still the same as the one in the OP for all meaningful values.

Didn't mention it in here but 2005 motor in a 1997 shell. MS3 w/MS3x for cam in.


e:

Upgraded from alpha 11 to alpha 18 and it didn't fix it.
FatKao is offline  
Old 02-25-2012, 04:19 PM
  #8  
Elite Member
iTrader: (2)
 
Faeflora's Avatar
 
Join Date: Jan 2007
Location: Los Angeles, CA
Posts: 8,682
Total Cats: 130
Default

Wierd. Did it do it when the oil got hot too?

I guess there's enough oil pressure when cold to move the cam.
Faeflora is offline  
Old 02-25-2012, 04:41 PM
  #9  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

I don't have a log to prove the point but I'm 99% certain it happens when the engine is up to temp as well.

I was going to pull off the valve cover so I could take off the top timing belt cover so I could verify the cam timing was static with a timing gun but it got a bit cold and I noticed the falling vs rising edge thing so I stopped.
FatKao is offline  
Old 02-26-2012, 09:48 AM
  #10  
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

falling edge
going high

no jitter.
y8s is offline  
Old 02-26-2012, 10:10 AM
  #11  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

Found your thread on ms3efi about the MAX9926. Should falling edge be used with the normal MS3 inputs as well or is that just a consequence of using the MAX9926 inputs?

I also posted a thread over at ms3efi, pretty much the same info there as here.

http://www.msextra.com/forums/viewto...?f=125&t=44120
FatKao is offline  
Old 02-26-2012, 11:22 AM
  #12  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

it completely depends on your input method. If it's running on rising, it wont run on falling.
Braineack is offline  
Old 02-26-2012, 03:34 PM
  #13  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

Ok. I can reproduce this on the stim as well. I'm thinking it is likely something wrong with one of my input circuits. Does that make any sense?


Does this look right? I would think that both signals should go to +5v or -5v. Sorry for the ---- quality, the guy who had this scope before me lost the $200 cable to connect it to a PC. This is taken from the CPU pins.

Attached Thumbnails VVT angle oscillates at idle-24h50.jpg  

Last edited by FatKao; 02-26-2012 at 04:20 PM.
FatKao is offline  
Old 02-26-2012, 07:24 PM
  #14  
Former Vendor
iTrader: (31)
 
Savington's Avatar
 
Join Date: Nov 2006
Location: Sunnyvale, CA
Posts: 15,442
Total Cats: 2,099
Default

If you're asking whether the signals should both rise/fall the same way, then that looks correct to me - the cam is normally high and drops low when the tooth passes, whereas the crank is normally low and goes high when the tooth passes.
Savington is offline  
Old 03-27-2012, 06:36 PM
  #15  
Elite Member
iTrader: (24)
 
Bryce's Avatar
 
Join Date: Jul 2007
Location: Cypress, TX
Posts: 3,759
Total Cats: 35
Default

OP: Did you find a solution?

I came across a similar problem where the VVtangle gauge was oscillating by more than 30 degrees, coupled with a high rpm sync loss. I found that my crank sensor gap was ~1/4" and I was running on rising edge. I closed the gap, then the car wouldn't sync. Switched to falling edge, and it ran perfectly after resetting timing. VVT worked correctly. I'm running Abe's input circuits on the mainboard.

It is possible for the motor to run on rising or falling edge with the same configuration, if your crank sensor gap is too large.
Bryce is offline  
Old 03-28-2012, 12:39 AM
  #16  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

I think my issue boils down to noise/bad grounds. I just double checked my crank gap since I have my intake 1/2 off already and it's good. When I flip to falling edge I get a ton of missed triggers. Putting my scope on the raw inputs from the sensors they are less than perfect, honestly a bit surprised they work at all. My input circuits are the MS3X cam in and V3 board opto as per the wiki.

The VVT jumpyness while running on rising edge seems like some kind of bug in the code since I haven't seen it in any electrical signal I've looked at. However I'm pretty sure that rising edge won't work for a VVT anyway motor since the cam tooth will cross a crank tooth while at full advance.

But the weather is nice now, already had an AX, have race this week and a DE the week after that so it'll likely be mid-summer when things slow down enough for me to start dicking around with it again. I'll likely switch over to Abe's NB input circuit and see if I can get a clean signal on falling edge.
FatKao is offline  
Old 03-28-2012, 01:05 AM
  #17  
Elite Member
iTrader: (24)
 
Bryce's Avatar
 
Join Date: Jul 2007
Location: Cypress, TX
Posts: 3,759
Total Cats: 35
Default

Originally Posted by FatKao
My input circuits are the MS3X cam in and V3 board opto as per the wiki.
My car wouldn't even sync with that configuration.

Originally Posted by FatKao
I'll likely switch over to Abe's NB input circuit and see if I can get a clean signal on falling edge.
I will put money on this being the fix to your problem.
Bryce is offline  
Old 05-02-2012, 11:32 AM
  #18  
Junior Member
Thread Starter
 
FatKao's Avatar
 
Join Date: Mar 2010
Posts: 491
Total Cats: 32
Default

To provide closure on this. Abe's NB circuit cleans up my signals enough that I can run falling edge which fixes the VVT issue.

I still think there is a bug on rising edge though, but I'm fairly sure rising edge cams will cross a crank tooth so the point is somewhat moot.
FatKao is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Rick02R
WTB
3
01-03-2016 07:18 PM
The Gleas
MEGAsquirt
3
10-01-2015 09:30 AM
JesseTheNoob
DIY Turbo Discussion
15
09-30-2015 02:44 PM
itsMikey
MSPNP
3
09-28-2015 06:40 AM



Quick Reply: VVT angle oscillates at idle



All times are GMT -4. The time now is 07:01 PM.