Adding a generic PWM output for increased trans support

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: Adding a generic PWM output for increased trans support

Post by Bernard Fife »

Just a quick update; I finally have a bit of time to work on this, and hope to get it in place soon. The new code will be a beta code, and will have the PWM clutch function discussed above as well as the voltage based shift button function (and numerous other internal improvements).

When it is ready (likely a week or so), the code will be released as 2.120 here: http://www.msgpio.com/manuals/mshift/V4code.html (the code is number 2.120, but is actually a transitional code towards the 4.xxx series of codes. But not all the added 4.xxx functions will be fully implemented (like SPI), which is why the new code will stay as a 2.xxx code version).

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: Adding a generic PWM output for increased trans support

Post by Bernard Fife »

For those that are curious, I am just about finished the code for the PWM on the spare ports. This has taken longer than expected because I have re-written a lot of the spare port logic to make them easier to use and more flexible (all modes now have PWM, with user settable index, etc.).

I hope to start testing the code soon. In the meantime, users wanting to see what is coming in the new code can check this page for how the updates will work:

http://www.msgpio.com/manuals/mshift/spareport.html

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: Adding a generic PWM output for increased trans support

Post by Bernard Fife »

The PWM'd spare port code (v2.120) has been released: viewtopic.php?f=4&t=240&p=2310#p2310

This allows PWM on both spare ports in a number of different modes (User spare port, PWM, TCC, shift solenoid, or selective clutch). The PWM has a 12x1 table, user selectable index (load, speed, rpm, temperature) and a separate OFF value (which can be anything from 0% to 100%).

The PWM frequency can be from 30.6 to 1953 Hetrz. Lower frequencies gives better granularity on the PWM. The default PWM frequency is 100 Hertz.

The user can turn these into ON/OFF outputs by specifying all 100% in the PWM table and 0% for the OFF value (or vice-versa).

There is much more info here: http://www.msgpio.com/manuals/mshift/spareport.html

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
Jim Blackwood
Posts: 222
Joined: Tue Dec 07, 2010 9:52 am

Re: Adding a generic PWM output for increased trans support

Post by Jim Blackwood »

That sounds very useful Lance. For the AA80E we'll need all the PWM we can get. I'm not ready to start studying yet but the time is not too far off. Taking a short rest to recharge my creativeity batteries and start the big push on the mechanicals, then I hope I can sustain it until I get to the new wiring.

Jim
Post Reply