ITT: MS3 1.4.0+ and Closed Loop EBC - Page 8 - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Reply
 
 
 
LinkBack Thread Tools
Old 09-14-2018, 02:11 AM   #141  
Elite Member
iTrader: (2)
 
Join Date: Aug 2016
Location: Woostuh, MA
Posts: 3,591
Total Cats: 102
Default

I've been working to set up my EBC on the new internally waste-gated setup. My mode of setting things up was basically to find the min and max duty that the valve made a noise during, then tighten that up a little to account for the 'dead' zone on the ends. I jump right into tuning closed loop using a target boost table once I've done that.

In order to check if the PID algorithm was working, I set the boost cutoff a bit high so I could watch for oscillations instead of the BANG of hitting cutoff. To my surprise, I couldn't get oscillations no matter what I did, even with Sensitivity 450, P 200, I 0, D 0. If I raised I a little and D more, it managed to stabilize, but still no sin wave kinda thing for a rough way to check to see if PID was working.

Well... In order to even induce oscillations, I had to set sensitivity to 500, P to 200, I to 0, and D to 0. Is there any reason why the algorithm would appear to only start working with the sensitivity slider maxed out? What happens if that isn't enough? Does one raise the frequency of the valve up from 19.5?
ridethecliche is offline   Reply With Quote
Old 09-14-2018, 09:36 AM   #142  
Junior Member
iTrader: (3)
 
Join Date: Mar 2008
Posts: 124
Total Cats: 2
Default

The way to see the PID values working is to set them up for SD card logging. This was added in version 1.5.1 as I recall. There is a thread on it in the development section on the MS site.
You need to enable INTERNAL_LOG_FIELDS in your project properties, then you can add fields like these to your SDcard datalog. These are not available in regular datalogs.
pid_log_boost_p
pid_log_boost_i
pid_log_boost_d
pid_log_boost_count

Per the developers...
Note that these are in internal units which won't necessarily correspond to the externally visible units e.g. for idle the 0-100% scale is handled 0-255 internally. Viewing the "idle steps" field gives you 0-255. The "count" field increments each time the calculation is run, so log this as well.

Once that is done, you simply download/convert the appropriate log and watch what it is doing by graphing that in MLV.

Good Luck.

Last edited by fwman1; 09-14-2018 at 09:57 AM.
fwman1 is offline   Reply With Quote
Old 09-14-2018, 10:00 AM   #143  
Elite Member
iTrader: (2)
 
Join Date: Aug 2016
Location: Woostuh, MA
Posts: 3,591
Total Cats: 102
Default

I have overboost enabled. I'll look for that thread and get an SD card.
You can't log PID directly when you're logging on a laptop? I've actually been meaning to get the wireless stuff working so I can use my phone or tablet to log and do a few things to the tune when I don't have a laptop.
ridethecliche is offline   Reply With Quote
Old 09-14-2018, 10:55 AM   #144  
Junior Member
iTrader: (3)
 
Join Date: Mar 2008
Posts: 124
Total Cats: 2
Default

If your MS3 does not already have an SD card, do some research on which one to get, as it seems to make a difference. From what I was told, it isn't possible for them to make PID values available in normal logging at this time.

It is a bit of a headache. Typically, I'll run a separate logs when making changes. Once I am done I'll turn the car off and download the SDCard log and sync the timestamps so I see what results particular settings give.

Others may have better methods...
fwman1 is offline   Reply With Quote
Old 09-14-2018, 02:00 PM   #145  
Elite Member
iTrader: (2)
 
Join Date: Aug 2016
Location: Woostuh, MA
Posts: 3,591
Total Cats: 102
Default

What do you use to trigger the start of the logs?
ridethecliche is offline   Reply With Quote
Old 09-14-2018, 05:47 PM   #146  
Elite Member
iTrader: (1)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 3,062
Total Cats: 357
Default

Can be set up on a switch, or trigger, or on all the time.

Even on all the time is not bad if you are using it for specific purposes, because you can change the setting in TS at any time.

With SD in, and TS connected to MS, go to the top, Data Logging, and choose SD. I cannot remember the choices of trigger. For your case, "over 90kPa" would likely work, if that is available.
DNMakinson is offline   Reply With Quote
 
 
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



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




We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.