5l40e

A forum for discussing applications and implementations of the MegaShift transmission controller code for the GPIO from B&G. This can control up to 8-speeds and 6 shift solenoids (plus a 16x9 table for controlling a PWM line pressure valve). It has manual and fully automatic modes (16x9 load x speed table), with under and over rev-limit protection, and full data logging of all inputs and outputs (among many other abilities). A TransStim to test your completed board is also available.
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

Attached is 2.00A code (and INI).

It has:
- added 'Max. Vehicle Speed' as user setting for VSS filtering (default = 140 mph): http://www.msgpio.com/manuals/mshift/V2tune.html#gv
- added code to check for 'hot reset' by looking at engine rpm and VSS interrupts,
- removed reset speedo to 0 on reset unless the current gear is 1,
- improved logic for manual/auto switch switch at minimum manual speed (to better ensure disabling when in manual mode if 'minimum manual speed' is less than 0),
- completely removed shift to first on switch to auto mode at low speed,
- added user input 'Reset Filter Off' time (time to ignore filtering on reset) (default = 1.5 seconds, was hard coded at 5.0 seconds before): http://www.msgpio.com/manuals/mshift/V2tune.html#gv
- added 'TCC hysteresis time' as user variable (default = 7.5 seconds): http://www.msgpio.com/manuals/mshift/V2tune.html#gt
Monitor.abs.s19
GPIO_MShift_200A.ini
This code appears to run appropriately with the defaults. However I have tested it only very briefly, and I am posting it here for others to try on the bench (or with great caution in a vehicle). I will begin full testing shortly (I need to look a bit further into the ISS first).

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

this works awesome. just drove 60 miles without a single hitch.

there were a few up/down blips on the speed, but nothing that caused a gear shift, or a reset out of manual mode.

i would say that's a success with a crappy VR signal. not sure what's going on with input shaft speed, so i disabled that for now.

currently fitting the zeal engineering VR board and will go and test that shortly.
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

for "sports" mode that you mentioned, i can see one way at least of getting that done on my setup.


gear 1-3 has "engine braking" mode, where it will use the engine to brake, keeping the rpm, and reducing that elastic feeling, perhaps "sports" mode could activate that and a new set of TCC parameters.

on my setup, there is D and Tiptronic mode, in D, both up and downshift paddles are pressed, in Tiptronic, they are not, but it is still in auto mode. auto mode and paddles not pressed could be one of the options for engaging the sports mode.
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

okay, just got back from testing the zeal VR board. VSS signal still has some noise, but the ISS input behaves slightly more sane. once it starts freaking out though, it stays in a very odd state.

i'll post a log tomorrow or later tonight of this drive.

the trans is not being cooperative and doesn't want to shift under boost for some reason, just stays in gear until i release the throttle. would that be a function of shift line pressure ?
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

Yeah, I didn't even look at the ISS for the 2.00A code, but I am doing that now and it will be released shortly as 2.00B code. I suspect I have a typo in the ISS code somewhere (it was largely copied from the VSS code and I probably forgot to change one or more variables).

Regarding sport mode, in a 4L60E engine braking is only active if the shift lever is not in 4th. This doesn't have anything to do with the shift solenoids, unfortunately, but is a hydraulic changed caused by the physical position of the shift lever. If the 5L40E is similar, there's not much we can do about it from the controller point of view. In the 4L60E, if you want engine braking, you have to put the lever in 3rd (which is 1:1, and good to about 160mph on my car). Is there a solenoid for this in the 5L40E or does it depend an the physical position of the shift lever (or something similar)?

I am not sure about the boost/not shifting issue, but will look at the log when you post it.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

Lance wrote:gurov,

Yeah, I didn't even look at the ISS for the 2.00A code, but I am doing that now and it will be released shortly as 2.00B code. I suspect I have a typo in the ISS code somewhere (it was largely copied from the VSS code and I probably forgot to change one or more variables).

Regarding sport mode, in a 4L60E engine braking is only active if the shift lever is not in 4th. This doesn't have anything to do with the shift solenoids, unfortunately, but is a hydraulic changed caused by the physical position of the shift lever. If the 5L40E is similar, there's not much we can do about it from the controller point of view. In the 4L60E, if you want engine braking, you have to put the lever in 3rd (which is 1:1, and good to about 160mph on my car). Is there a solenoid for this in the 5L40E or does it depend an the physical position of the shift lever (or something similar)?

I am not sure about the boost/not shifting issue, but will look at the log when you post it.

Lance.
engine braking here is controlled entirely by solenoids.

in 1-3rd, sol3 controls whether engine braking is on. 4th and 5th, engine braking is always on. engine braking engaged gives it a sportier feel, where the drivetrain doesn't randomly disconnect from the engine.

the equivalent of setting sol3 to on in 1-3 gear is leaving engine in gear vs taking it out into neutral.

i think the not shifting might be a result of a clogged filter, or lower line pressure. i've got a kit coming to replace those parts.
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

just drove it some on 2.00B code, noticed these things, some of which MAY be due to the fact that this trans actually shifts now a heck of a lot better than before:

1. ISS signal is slightly better, but still not perfect, has resets to 0
2. ISS resets affect VSS, which drops to 0 instead of being clean, drops to 0 force downshift to 2nd very quickly.
3. above noise, trips a TCC event, which sets off hysteresis for TCC, causing jerkiness.
4. i think the TCC apply curve needs to get a map with at least 4 points based off KPA.
5. need to have TCC pwm gauge, so i can tell whether it's kicking on full force or applying gradually.


few questions

with PWM'd TCC, does the PWM taper apply to engage and disengage, or only one or the other ?

for the time being, i've disabled ISS as a pickup of the signal, so it appears to be calculating the ISS, which results in a clean VSS signal, so that's good
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

TCC PWM is active only on apply.

I will have a look at the ISS.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

ISS rpm isn't passed to TunerStudio as a variable in the outpc structure. Instead it is calculated from the converter slip value and the engine rpm (the calculation is in the INI as is_rpm). However there are a number of limits on the slip value, and calculation itself may be incorrect.

Before digging deeper into this, I have made a version of the code that does pass is_rpm as "dbug" in the datalog (uses the 2.00B INI). If you run this, you should see what the controller actually thinks the ISS speed is.
Monitor_200Btest.abs.s19
Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

Lance wrote:gurov,

ISS rpm isn't passed to TunerStudio as a variable in the outpc structure. Instead it is calculated from the converter slip value and the engine rpm (the calculation is in the INI as is_rpm). However there are a number of limits on the slip value, and calculation itself may be incorrect.

Before digging deeper into this, I have made a version of the code that does pass is_rpm as "dbug" in the datalog (uses the 2.00B INI). If you run this, you should see what the controller actually thinks the ISS speed is.
Monitor_200Btest.abs.s19
Lance.
i will try this later today.

are there any actions when slip is out of sane range ?
Post Reply