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,

I could certainly add a shift button active polarity parameter. However, 0 Volts is *supposed* to make the shift activate - they are designed to ground the pull-up voltage. So you don't normally use a voltage divider for these, you wire the output to the shift switch and ground the other side of the switch.

If these switches have 12V on them that you can't get around, you need to do something else, so let me know if that is not the case. <edit>I re-read your post and see that you have 12V, and the buttons are 12V active. So the hardware mods you made are appropriate. I will add the shift button polarity to the code - this should be out in a day or two - watch the code update thread</edit>

No, I haven't added a 4th manual shift lever input gauge. The other gauges are there mostly because these are used as analog inputs (continuous 0 to 5V) if not used for gauges, but the optional 4th input is digital (on-off only).

At a quick glance, the three inputs 1, 3, and 5 are sufficient to identify the gear lever position, so that should be all you need.

For output patterns, only the forward gears need to be unique. It looks like the 3rd output controls the engine braking, and you could use the spare output 1 to control that if you wish (then you could set it by gear, rpm, speed, or load independently of the shift table).

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
frank_stetmail.comr
Posts: 8
Joined: Wed Oct 20, 2010 4:44 pm

Re: 5l40e

Post by frank_stetmail.comr »

Lance wrote:gurov,

Engine braking for the 4L60E is only if the selector is in 1, 2 or 3. I can't recall off the top of my head if D is 4th (=overdrive) or 3rd (with OD marked for 4th - I believe my van had a D with a circle around it for 4th, and a plain D for 3rd). So I always use the gear number, rather than the gear indication (which might change from manufacturer and model and year).

Lance.
the engine braking is a weird one on the 4l60e with the lever in manual 3 you have engine brakeing in first and 3rd when chosen electronically. with the manual lever in 2 you have engien brakeing in 2nd and 4th chosen electronically and first you have first and second. it was the same for 4t65e that i made a simple microswitch logic on my sunbird as well as my camaro with the 4l60e. using the quick silver ratchet shifter and a toggel switch for tcc.
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

I have put v2.006 code on the beta page: http://www.msgpio.com/manuals/mshift/V2code.html

This adds a setting for 'shift button polarity' under 'standard inputs/outputs'. The default is active low (button pressed when grounded, as before), but you can switch it to 'active high' to signal the button is being pressed when voltage is not ground.

I have tested this quickly on the bench, but need to do more testing obviously.

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,

I could certainly add a shift button active polarity parameter. However, 0 Volts is *supposed* to make the shift activate - they are designed to ground the pull-up voltage. So you don't normally use a voltage divider for these, you wire the output to the shift switch and ground the other side of the switch.

If these switches have 12V on them that you can't get around, you need to do something else, so let me know if that is not the case. <edit>I re-read your post and see that you have 12V, and the buttons are 12V active. So the hardware mods you made are appropriate. I will add the shift button polarity to the code - this should be out in a day or two - watch the code update thread</edit>

No, I haven't added a 4th manual shift lever input gauge. The other gauges are there mostly because these are used as analog inputs (continuous 0 to 5V) if not used for gauges, but the optional 4th input is digital (on-off only).

At a quick glance, the three inputs 1, 3, and 5 are sufficient to identify the gear lever position, so that should be all you need.

For output patterns, only the forward gears need to be unique. It looks like the 3rd output controls the engine braking, and you could use the spare output 1 to control that if you wish (then you could set it by gear, rpm, speed, or load independently of the shift table).

Lance.
4-5, the last bit is the only thing different. i thought it was last bit that controlled engine braking also, but the last gears are odd
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

Lance wrote:gurov,

I have put v2.006 code on the beta page: http://www.msgpio.com/manuals/mshift/V2code.html

This adds a setting for 'shift button polarity' under 'standard inputs/outputs'. The default is active low (button pressed when grounded, as before), but you can switch it to 'active high' to signal the button is being pressed when voltage is not ground.

I have tested this quickly on the bench, but need to do more testing obviously.

Lance.
i think something is messed up with the ini file. the setting shift button polarity settings won't take. and the ini still says 2.005 in the header.
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

gurov wrote:
Lance wrote:gurov,

I have put v2.006 code on the beta page: http://www.msgpio.com/manuals/mshift/V2code.html

This adds a setting for 'shift button polarity' under 'standard inputs/outputs'. The default is active low (button pressed when grounded, as before), but you can switch it to 'active high' to signal the button is being pressed when voltage is not ground.

I have tested this quickly on the bench, but need to do more testing obviously.

Lance.
i think something is messed up with the ini file. the setting shift button polarity settings won't take. and the ini still says 2.005 in the header.
figured it out.

pagesize needs to be updated to = 615, 30
it is 614, 30 in the current .ini that's up
gurov
Posts: 164
Joined: Mon Jun 01, 2009 1:01 pm

Re: 5l40e

Post by gurov »

okay, another thing that i'm finding somewhat weird.

pushing upshift/downshift button has a wait time, but if the button is held down, it will keep changing the target current gear. i can foresee this being rather annoying if you're trying to drive instead of staring at the readout of the current gear.

perhaps an option to:

1. block consequent shift until input inverts.
2. while the polarity of the shift switch is set one way, have a "release" shift or "press" shift behavior. i could see that releaseing a button/lever/paddle is a faster operation as far as operating the vehicle.
3. wait delay before subsequent shift can happen
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

Sorry about the INI, I fixed it but forgot to upload it. I will do that now.

Yes, this is a good idea, and something I have been thinking about. Originally the shift hysteresis setting would have handled this, but in the end I decided to have the hysteresis apply to auto shifts (to prevent hunting for a gear), and have manual be fully manual.

What I will do is make it that when a shift is made, the shift button state must be reversed before they start counting up for another shift. So you'll have to release the shift button and press it again to make another shift. I thinking I will make the required 'release' about 1/4 the shift duration so that you have to release it for a few tenths off a second (so fumbling the button won't do 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,

Sorry about the INI, I fixed it but forgot to upload it. I will do that now.

Yes, this is a good idea, and something I have been thinking about. Originally the shift hysteresis setting would have handled this, but in the end I decided to have the hysteresis apply to auto shifts (to prevent hunting for a gear), and have manual be fully manual.

What I will do is make it that when a shift is made, the shift button state must be reversed before they start counting up for another shift. So you'll have to release the shift button and press it again to make another shift. I thinking I will make the required 'release' about 1/4 the shift duration so that you have to release it for a few tenths off a second (so fumbling the button won't do it).

Lance.
fantastic.

i will test this out tonight on a bench and actually start making a harness to go to the vehicle.

last final few bits that are related to ms3:

i couldn't figure out last night is grabbing VSS speed via can with ms3. i tried a bunch of table id + offset combinations, but nothing seemed to make the local ms3 variable change. not a big deal, since i got the can commands passthrough working finally, and can simply throw a gauge on the dashboard. but it would be nice to be able to use VSS in ms3 to base corrections/boost off.
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: 5l40e

Post by Bernard Fife »

gurov,

Attached is the 2006b S19 file that has the shift blocking in place.
Monitor_2006b.abs.s19
It won't let you shift again until you have released both shift buttons for 1/4 of the user-set 'shift button duration'. I have tested it quickly on the bench with both shift button polarities, and it appears to work as expected. It uses the same INI. Let me know if you see anything strange.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
Post Reply