ECUs and Tuning Discuss Engine Management, Tuning, & Programming

VVT observations - current vs. advance

Thread Tools
 
Search this Thread
 
Old 06-24-2009 | 03:03 PM
  #21  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Edit from prev post: 3D table means two axis plus values? I guess I was thinking of that as a "2D table", since that's a 2D array. Anyway, there's an boost control table for RPM/TPS which I bet could be easily perverted to some other analog in. So I'm not sure it couldn't be done. I hope not, since I was planning on doing it.

Originally Posted by JasonC SBB
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...

Wasn't someone (reverant?) working on a stand alone VVT board?! Anyway, overall, I think as long as you have a stand alone PID routine, the advancing or retarding could be taken care of externally.
Old 06-24-2009 | 03:06 PM
  #22  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Originally Posted by Joe Perez
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.
There's an experimental, "vanos", phase logging tool in the beta I'm running. I haven't tried it yet. Everytime I upgrade, 4 things break. Right now hot starts are a 1 in 3 thing, there's a skip which wasn't there before, and the accel pump settings have some pesky factor of 8 or 10 or so in them - which you'd naively think you could just multiply all your numbers by the same factor, but they are artificially limited to be only the numbers the guy who wrote the code think are reasonable.

In other words, I could check out the valve, and the code, as soon as I test my adapterboard and get that project off my plate. :-)
Old 06-24-2009 | 04:52 PM
  #23  
clay's Avatar
Junior Member
iTrader: (6)
 
Joined: Jan 2006
Posts: 373
Total Cats: 0
From: San Diego, Ca
Default

Seems Kevin is working on designing a controller as well:
What have you done to your Miata/MX-5 today? - Page 81 - Mazda Forums
Old 06-24-2009 | 05:08 PM
  #24  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

abe:
3D = 3 variables (2 in, 1 out) or if you graph it, a surface plot.
2D would just be a curvilinear plot
Old 06-24-2009 | 05:59 PM
  #25  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Originally Posted by clay
Seems Kevin is working on designing a controller as well:
What have you done to your Miata/MX-5 today? - Page 81 - Mazda Forums
Huh, someone should invite him over here so we all can compare notes. His card doesn't look terribly complex, does it?


Originally Posted by y8s
abe:
3D = 3 variables (2 in, 1 out) or if you graph it, a surface plot.
2D would just be a curvilinear plot
Semantics. Anyway, sure, 3-D it is then.
Old 06-24-2009 | 06:12 PM
  #26  
clay's Avatar
Junior Member
iTrader: (6)
 
Joined: Jan 2006
Posts: 373
Total Cats: 0
From: San Diego, Ca
Default

Originally Posted by AbeFM
Huh, someone should invite him over here so we all can compare notes. His card doesn't look terribly complex, does it?
He's on here. Same name I'm pretty sure, just doesn't post all that often. He built a turbo Miata for the 05-08 GRM Challenge. Runs MS in his 90 with 99 engine in CSP. I think DIYAutotune sponsors him... at least I think that's his car in their add.
Old 06-24-2009 | 06:33 PM
  #27  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

ok, pm'd him. Someone should PM him on the other forum.
Old 08-18-2009 | 11:44 PM
  #28  
kcbhiw's Avatar
Junior Member
iTrader: (1)
 
Joined: Jan 2007
Posts: 116
Total Cats: 0
From: Canton, GA
Default

Greetings all. Sorry I missed this thread as I don't log in as often as I used to. I am indeed building a VVT controller and so far everything is working short of a tune. The board uses the OE CKP/CMP sensors and corrects the signals for use with a typical NA MS installation. Furthermore, the controller operates the OCV via a 2D table via RPM vs. load. I'm considering correction for air temperature as my instinct says I should, pneumatically speaking, but I'll cross that bridge when I come to it.

Thus far, with a loose PID tune, the camshaft advance tracks the set point derived from an interpolated 12x12 table. There's a touch of over/under shoot, but that is easily corrected through the PID settings.

I'll check back and update as often as I can. In the mean time, I've posted a few pics of the process: Picasa Web Albums - Kevin - Miata VVT Con...
Old 08-19-2009 | 04:34 AM
  #29  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Nice little setup. I wonder how much you could get those signals from a MS, even an MS-II. Someday they will be able to modulate. Tell us more about the system!
Old 08-20-2009 | 11:08 PM
  #30  
kcbhiw's Avatar
Junior Member
iTrader: (1)
 
Joined: Jan 2007
Posts: 116
Total Cats: 0
From: Canton, GA
Default

Originally Posted by AbeFM
I wonder how much you could get those signals from a MS, even an MS-II. Someday they will be able to modulate.
What do you mean?

Originally Posted by AbeFM
Tell us more about the system!
Any in particular? There really isn't much to it other than an Atmel ATMega168 with a bit of programming . It's fully standalone and the symmetrical tach output signals (CKP/CMP) can be used with just about any engine management system. The OCV is operated via a 12V PWM signal running at about 488Hz. The programming interface is laid out similar to that of MegaTune's and connects via an RS232 link. I still need to add a few bells and whistles, but nothing that affects the operation of the controller. Essentially, the MCU programming is complete and the Windows interface is right behind it.

I drove the car for the first time since Sunday this evening (been busy with a few other things on the car). I dialed-in the PID settings a bit closer with only a degree or so of overshoot) and settling in less than a quarter second (according to the logs, anyway). Overall response seems very good. I have a dyno session scheduled in the morning (Friday) to tune out the entire works). Wish me luck!

Last edited by kcbhiw; 08-20-2009 at 11:23 PM.
Old 08-21-2009 | 12:22 AM
  #31  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

Very nice! Too scattered to think of a good question now.

I want to have the MS do this. I'd like to see the PID code, too. :-)

Oh, what I meant: The MS knows about all the events, from signal processing to timing, you SHOULD be able to get it out over CANBUS or something. The MS-II now (experimentally) reports cam-phase.
Old 08-21-2009 | 12:28 AM
  #32  
kcbhiw's Avatar
Junior Member
iTrader: (1)
 
Joined: Jan 2007
Posts: 116
Total Cats: 0
From: Canton, GA
Default

Originally Posted by AbeFM
Very nice! Too scattered to think of a good question now.

Gotcha. I've been reading through your MSII adapter post. Good stuff!
Originally Posted by AbeFM
I want to have the MS do this. I'd like to see the PID code, too. :-)

Oh, what I meant: The MS knows about all the events, from signal processing to timing, you SHOULD be able to get it out over CANBUS or something. The MS-II now (experimentally) reports cam-phase.
Agreed. It'd be nice to have this all happen within the MS, but this was a much quicker solution. CAN isn't out of the question. I have an additional SPI interface left on the processor that I can use for such a channel. I'll have to see how this develops in order to explore further options.
Old 08-21-2009 | 02:51 AM
  #33  
JasonC SBB's Avatar
Thread Starter
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Nice work!
Is there a possibility of you documenting your work so it can be replicated?
Did you find that the P I and D values have to be different at different RPMs?
Old 08-21-2009 | 02:05 PM
  #34  
AbeFM's Avatar
Elite Member
iTrader: (3)
 
Joined: Aug 2006
Posts: 3,047
Total Cats: 12
From: San Diego, CA
Default

I don't know how the timing would be handled between them but if you DID you can, that's many fewer inputs you'd need and could spare them for something interesting - even if it's just turning on status lights it would be an AWESOME addition to the MS.
Old 08-25-2009 | 11:08 AM
  #35  
simonetrb's Avatar
Junior Member
 
Joined: May 2006
Posts: 47
Total Cats: 0
From: ITALY - SAN BENEDETTO DEL TRONTO
Default

Great job!

So what Improvements did you achieve?


bye

Simone
Old 08-28-2009 | 08:21 PM
  #36  
gkd's Avatar
gkd
Newb
 
Joined: Aug 2009
Posts: 1
Total Cats: 0
From: San Diego
Default VVT Controller

Originally Posted by kcbhiw
I am indeed building a VVT controller and so far everything is working short of a tune. - Kevin - Miata VVT Con...[/url]

Kevin,
Great work! I am in need of a standalone VVT controller. I have a TEC2 running an 01 VVT motor in my 94 CSP car and obviously it is not controlling the VVT. I used an MSD switch for a while but I need to have full control. So, if you decide to sell some, I am interested!

George
1994 MX5 CSP
1997 EK G2
Old 08-29-2009 | 12:53 AM
  #37  
kcbhiw's Avatar
Junior Member
iTrader: (1)
 
Joined: Jan 2007
Posts: 116
Total Cats: 0
From: Canton, GA
Default

Originally Posted by JasonC SBB
Nice work!
Is there a possibility of you documenting your work so it can be replicated?
Did you find that the P I and D values have to be different at different RPMs?
Not at this time.

The PID settings did not have to be changed throughout different RPM or MAP bins.

Originally Posted by AbeFM
I don't know how the timing would be handled between them but if you DID you can, that's many fewer inputs you'd need and could spare them for something interesting - even if it's just turning on status lights it would be an AWESOME addition to the MS.
I do have a number of spare I/O points available. I'm contemplating adding alternator control to one of them at the moment



Originally Posted by simonetrb
Great job!

So what Improvements did you achieve?
Thanks!

The car picked up 32 HP over the '99 engine I had in there before hand!

Originally Posted by gkd
Kevin,
Great work! I am in need of a standalone VVT controller. I have a TEC2 running an 01 VVT motor in my 94 CSP car and obviously it is not controlling the VVT. I used an MSD switch for a while but I need to have full control. So, if you decide to sell some, I am interested!
PM Sent!
Old 08-31-2009 | 01:25 PM
  #38  
slebidia's Avatar
Junior Member
iTrader: (1)
 
Joined: Aug 2009
Posts: 60
Total Cats: 0
From: OKC, OK
Default

I am also in need of a VVT controller. If you are going to make these available in kit or built form I would be interested.
Old 11-22-2009 | 08:59 AM
  #39  
Nagase's Avatar
Elite Member
iTrader: (6)
 
Joined: May 2009
Posts: 1,805
Total Cats: 2
Default

Did anything come of the VVT controller?
Old 11-23-2009 | 04:45 AM
  #40  
simonetrb's Avatar
Junior Member
 
Joined: May 2006
Posts: 47
Total Cats: 0
From: ITALY - SAN BENEDETTO DEL TRONTO
Default

Originally Posted by kcbhiw
The car picked up 32 HP over the '99 engine I had in there before hand!
"Just" tuning the VVT behaviour?

That's great!!



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