MEGAsquirt A place to collectively sort out this megasquirt gizmo

DIYPNP install: inital tuning

Thread Tools
 
Search this Thread
 
Old 03-19-2011, 12:12 AM
  #61  
Cpt. Slow
iTrader: (25)
 
curly's Avatar
 
Join Date: Oct 2005
Location: Oregon City, OR
Posts: 14,192
Total Cats: 1,136
Default

Autotune first and get a fuel map you're happy with. No telling what issues may pop up, and we can't tell you anything about your cams, as we mostly have stock cams. Plus they're already in and you finally got it running, go drive it.
curly is offline  
Old 03-19-2011, 12:56 AM
  #62  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Yup, I kinda decided on doing that first. But I have different cams from US/Japanese cars too. Milder.

OK I got issues wiring in the vTPS from an automatic Miata. I wired it in as per Braineack's instructions:
B/R of TPS goes to LG/W of harness
LG/R of TPS goes to R
B/LG of TPS goes to BG/LG
Calibrated it, got this. Does it look correct?
Name:  tps1.jpg
Views: 179
Size:  12.9 KB
Started the car, idles OK, but stepping on the throttle, the TPS values are off! Stepping on it hardly registers, TPS values go up to 20-35 on WOT! And not linearly. Weird.

Log attached.
Attached Files
File Type: msl
2011-03-19_12.19.0VTPS.msl (410.2 KB, 104 views)

Last edited by Greg G; 03-19-2011 at 07:38 AM.
Greg G is offline  
Old 03-19-2011, 05:22 AM
  #63  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Having the wires physically traced back to the ECU. Because of the supercharger installation, the TPS harness was extended. The motherfer who did it made red wire = ground, black = 5v! WTF

I know TPS signal wire goes to 2L, where is the 5v reference wire from?
Greg G is offline  
Old 03-19-2011, 07:16 AM
  #64  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Results from my first session with autotune. Any good? I didn't allow it to autotune below 1200 rpm and >35 kpa. Added some timing to the bottom row in the hopes of improving the AC idle dip.

Name:  1stautotune.jpg
Views: 193
Size:  110.2 KB

Whoa! 106 duty cycle? 22 PW?

Also seen is the TPS weirdness. Is the TPS causing the IAC to freak out?

Name:  100dutycycle.png
Views: 190
Size:  16.4 KB

Last edited by Greg G; 03-19-2011 at 08:07 AM.
Greg G is offline  
Old 03-21-2011, 01:28 AM
  #65  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

More on the TPS weirdness here:

https://www.miataturbo.net/megasquirt-18/strange-tps-values-when-engine-running-55008/
Greg G is offline  
Old 03-21-2011, 08:11 AM
  #66  
Junior Member
 
bearda's Avatar
 
Join Date: Apr 2010
Posts: 107
Total Cats: 0
Default

In the US 1.8s I don't think the TPS has anything to do with the IAC, just the IAC duty table and your coolant temperatures.
bearda is offline  
Old 03-25-2011, 03:32 AM
  #67  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Sigh. I think the TPS is a dud. Anyway, will try running without it first.

Upgraded to firmware 3.1.2 for the improved idle PID. Kiiinda better I guess. Still working on the AC oscillation thing.

Noob TS question-- how do I get rid of this error message in my dash? I can't find AFR targets in the right click menu.
Name:  slim.jpg
Views: 198
Size:  45.6 KB

^ Fixed, I'm a moron, I needed to copy a file custom.ini to the projectcfg folder. :P

Last edited by Greg G; 03-25-2011 at 05:37 AM.
Greg G is offline  
Old 03-25-2011, 05:33 AM
  #68  
Senior Member
 
WestfieldMX5's Avatar
 
Join Date: Nov 2007
Location: Belgium
Posts: 999
Total Cats: 73
Default

I'm using a similar dashbord and use the same output channel afrtgt1_fixed.
in designer mode: right click - properties - output channel -> should be listed
WestfieldMX5 is offline  
Old 03-25-2011, 06:25 AM
  #69  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Thanks Frank! I fixed it already, needed to copy over a file (custom.ini) to define the output.
Greg G is offline  
Old 03-28-2011, 02:02 AM
  #70  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default AC idling issues

Everything is nice and smoothe excpet when the AC turns on, and the usual oscillations start.

I tried messing with the minimum IAC duty, and stumbled upon this idle when I raised it to 39.8%, and turned down the idle rpms at the throttle screw.

Before AC


Increased load
Name:  ac2.png
Views: 182
Size:  58.7 KB

Settles down
Name:  ac3.png
Views: 196
Size:  59.5 KB

Lowering it to 35% brought oscillations back.
Name:  ac4.png
Views: 191
Size:  66.2 KB

Thoughts? It seems the wrong way to go about it, but it seems to work. Will mess around some more...
Greg G is offline  
Old 03-28-2011, 08:31 AM
  #71  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,494
Total Cats: 4,080
Default

its partially your spark advance. get it to smooth out when the a/c turns on and rpms oscilate a little and your rpms will also smooth out. see how it goes up and down? that's part of it.

can you post a shot of your current PID idle settings? fine tuning those will probably fix the rest.
Braineack is offline  
Old 03-28-2011, 09:05 AM
  #72  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Now that you pointed it out, I do see it! But am having a hard time translating the histogram into what to do with the spark table. Will post up relevant pics in a bit.
Greg G is offline  
Old 03-28-2011, 09:14 AM
  #73  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,494
Total Cats: 4,080
Default

youre going to have to watch it when youre idling. open your spark table and watch your spark advance gauge, then watch where the ecu is advancing from when you turn on the a/c on your map. Try to fine tune that load/rpm area so it stays stable when the a/c is turned on. You may want to play with the load rows.

you can also try using the idle advance feature too, this worked fairly well for me.


off the top of my head my PID values are P - 6, I - 45, D -8. What are yours?
Braineack is offline  
Old 03-28-2011, 10:03 AM
  #74  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Really!? My PID values are pretty high then :P

What's the relationship of the closed loop idle valve settings to the closed loop PID settings? Am confused on that. Posted my spark table for suggestions. And msq, msl files for your perusal

Name:  idletune.jpg
Views: 199
Size:  82.4 KB

Also have this occasional weird high idle hangup. Usually after a hot restart. Calms down after a while.

Name:  weirdidle.png
Views: 196
Size:  75.4 KB

I tried the idle valve test, but it just went crazy high idle and wouldn't go down until I restarted the car. @_@
Attached Files
File Type: msq
CurrentTune.msq (79.5 KB, 141 views)
Greg G is offline  
Old 03-28-2011, 06:42 PM
  #75  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Should I rearrange my spark table rpm break points to add resolution to the idle areas? Perhaps a 500/750/1000?

I can also steal the 2 upper rows, since my car won't be hitting those map values.
Greg G is offline  
Old 03-29-2011, 07:55 AM
  #76  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Smoothed out the spark table, it did help!

Name:  smoother.png
Views: 189
Size:  94.0 KB
Greg G is offline  
Old 03-29-2011, 08:30 AM
  #77  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,494
Total Cats: 4,080
Default

Nice, surprised it's idling so low with a/c on and so high without it. the code should be able to get them very close to your targets regardless.

how are your RPM targets looking? what is it trying to achieve?
Braineack is offline  
Old 03-29-2011, 08:48 AM
  #78  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Maybe my settings? Min duty?

Are those RPM valve closed & open values the RPM targets?

Name:  pid.jpg
Views: 183
Size:  42.2 KB

I still get a bad droop if I rev it, how can I adjust the software dashpot settings to avoid this?
Greg G is offline  
Old 03-29-2011, 09:10 AM
  #79  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,494
Total Cats: 4,080
Default

theres another table that are just your RPM targets for the PID code to try to hit. CLT based.


your dashpot is pretty high as it is, when you rev the motor you should see the PWM% for the idle valve increase by 7% and then settle back down after 2 seconds once the PID kicks in.

Watch your AFRs and timing when that happens. They both play a big role in keeping things stable.
Braineack is offline  
Old 03-29-2011, 09:33 AM
  #80  
Junior Member
Thread Starter
 
Greg G's Avatar
 
Join Date: Jun 2007
Posts: 411
Total Cats: 0
Default

Found the table, adjusted it to suit the temperatures I see.

Name:  clt.jpg
Views: 191
Size:  44.2 KB

Anything else I should look for? Thanks for the help
Greg G is offline  


Quick Reply: DIYPNP install: inital tuning



All times are GMT -4. The time now is 11:35 PM.