Microsquirt/MS2 based transmission controller

This forum is for the discussion of other projects on Megasquirt/Microsquirt hardware that don't fit into any of the other forums

Moderators: muythaibxr, jsmcortina

Re: Microsquirt/MS2 based transmission controller

Postby jsmcortina » Fri Jun 04, 2010 1:55 pm

The GPIO version has only just appeared and is in beta test. I don't know how that testing is going or whether you can buy one.

The code used here (info in the MSEXTRA manual) is working on a number of 4L80E installs for sure and can be used on a MS2/V3, Microsquirt or likely GPIO board.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 26003
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Microsquirt/MS2 based transmission controller

Postby radiogareth » Fri Jun 04, 2010 10:55 pm

OK, thanks James, that is what I needed to know. I have a MS V3 kit that I bought from Bill a few months ago that will do the job and an earlier V2 that came via a circuituetous route from Phil, ready built. That one can run the engine.

I'm making up an adaptor for my N* similar to Elliots idea, using the ford 36-1 ring on the front pulley. However, the front pulley is not keyed to the crank in the N*, so I'm welding it to the large retaining washer under the crank nose bolt. This gets done up to about 120 Ft/Lbs so is unlikely to move once set up.
Did you reverese your intake manifold on the N* you used on MS, or test run it as-is? Any other handy tips??

Thanks

Gareth
radiogareth
MS/Extra Newbie
 
Posts: 23
Joined: Thu May 15, 2008 10:28 pm

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Fri Jul 23, 2010 11:15 pm

jsmcortina wrote:The GPIO version has only just appeared and is in beta test. I don't know how that testing is going or whether you can buy one.

The code used here (info in the MSEXTRA manual) is working on a number of 4L80E installs for sure and can be used on a MS2/V3, Microsquirt or likely GPIO board.

James

Actually, the GPIO has been on sale on DIYAuto tune for months, at least since March or so, maybe as early as last December.. Time flies.. I have one, got it back when they were sold only as partial kits. Now they are sold as a whole kit.
I downloaded your code to have a look at it. Looks simple enough, but not quite universal for use on other automatics. I need a way to define my shifter sensor, and which solenoids to engage to get which gear. And the PWM/duty cycle settings for those solenoids. It seems like these sorts of things are probably in the code, hardcoded right now..? Would it be possible to get a version that puts those settings up in the interface so I can configure them? I'm wanting to use it with the Chrysler 41te/A604, which Dodge used in just about all of it's FWD vehicles from 1989 onward (or was it '93? anyways...). It'd be a great trans to support. :)
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Sat Jul 24, 2010 8:48 pm

I was browsing through the source, trying to determine how to jumper my CPU pins on the GPIO.. I see in trans_init.c there's a list of the CPU pins, and their function.. I see AN0-7 in that list, but not on the GPIO.. I'm pretty sure that's the same as the AD0-7 on the GPIO. Anyone know for sure?
On the GPIO, I have the PWM1,2,3,4 built with TIP122's to control my 4 solenoids. I have GPI1 built as an ADC circuit with a 1k pullup to read my multiplexed shifter, though from what I can tell, the code doesn't support this yet. I just need a way to indicate what ADC value to expect for each gear position. GPI2 is built the same, I plan to multiplex the horn wire for the paddle shifter.
I built VR1 and VR2, my trans has an input and and output speed sensor, both are VR sensors.
GPI4 is the brake sense circuit. I was going to build the temp input circuit, but the temp sense wire on my trans seems to be open, no sensor. Strange.. And I don't have a pressure sensor or pressure control solenoid.
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Sat Jul 24, 2010 11:44 pm

Ok.. I found at least one error in the code..
Code: Select all
else if ((flash4.setting1 & 0x3) == 3) {
      // GPIO - these pins aren't yet verified, copied Microsquirt for now
        TIOS |= 0x0E; // Timer ch 0,2 = IC, ch 1-4 = OC & PWM,
                   // ch 6,7 = I/O output
        DDRT = 0x0E;// PT1,PT2,PT3 are outputs, others are inputs or unused
        TCTL3 = 0x00; // no captures on these timers
        TCTL4 = 0x01; // TC0 capture on rising edge
        TIE = 0x01;   // enable IC interrupts on TC0
       TSCR1 = 0x80; // turn timer on
        ATD0DIEN = 0x8b; // digi inputs on PTAD7,3,1,0 for brake SW, SWA,B,C
        DDRAD = 0; // all inputs
        PERAD = 0x0b; // enable pull devices
        PPSAD = 0;  // all pullup
        // Set up EPC and TCC PWM outputs - PWM2, 3
        // 3-2 solenoid PWM1
        MODRR = 0x0e;     // Make Port T pins 1,3,4 be PWM

This is in trans_init.c, this is the GPIO section.. At the top there, it says it was copied from MicroSquirt.. So that last line there.. I was trying to get my head around it. It says it makes Port T pins 1,3,4 be PWM.. But to do that, it should be 0x1A, not 0x0e. 0x0e would be pins 1,2,3.. I'd like to make it pins 1,2,3,4 since the Chrysler trans has 4 solenoids, so that'd be 0x1e, right?
Not saying I can actually pull this off, but I do like to learn. :RTFM:
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby jsmcortina » Sun Jul 25, 2010 6:22 am

Brian,
I'm willing to take a look at the code and see what can be done.

Did you get chance to collate the 41TE information ? Having it all together and summarised gives me the best chance to get up to speed quickly.
Specifically
-trans internal wiring
-no. solenoids, function and current draw
-control methods

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 26003
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Sun Jul 25, 2010 9:42 am

Yeah, I got your 4l80e spreadsheet, I can replace all the 4l80 info with the Chrysler info. I think I have everything you need in the wiki, but will be more than happy to put it in a spreadsheet form if that will help you out. :)
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Mon Jul 26, 2010 8:49 pm

Do you have an official name for this firmware? Other than "transmission controller".. I've been referring to it at MicroTrans.. Just curious what to say I'm using... "GPIO based transmission controller" just seems so long winded.. ;)
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby radiogareth » Tue Jul 27, 2010 12:25 am

MegaTrans???

ShiftKlick?? (if you end up with paddles)

Now got a (second) whole N* with FWD transmission (4T80-E) that might juts end up in a rwd mid/rear engined piece of madness :yeah!:

It's good to plan ahead.....

Gareth
radiogareth
MS/Extra Newbie
 
Posts: 23
Joined: Thu May 15, 2008 10:28 pm

Re: Microsquirt/MS2 based transmission controller

Postby Tjabo » Mon Aug 02, 2010 5:17 am

Someone said "JimTrans" and I think that has a nice ring to it! :D

Or "JimShift"?
--'97 BMW 540i/6, M5 look, not MS'ed. . . yet. Getting ready to work on it though!
--'98 Neon ACR, Eagle/Wiseco 2.0L-- Billet SC6265sp, V3 MS3 Beta - SOLD :-(
Tjabo
Master MS/Extra'er
 
Posts: 716
Joined: Sat Nov 05, 2005 7:36 pm

Re: Microsquirt/MS2 based transmission controller

Postby gurov » Thu Aug 05, 2010 12:17 pm

did i miss the download link, is there a copy of the latest source ?

i've got a need to control a 5 speed GM trans (5l40e) in my AWD bmw. My plan right now (and on the bench) is to modify megashift code on to suit my needs and test on jackstands in the garage, but if there's an alternative code, i'd like to take a look at it, perhaps even convert a v2.2 board with ms2 and some extra circuitry for use with this code.
2004 BMW 325xi Turbo A/T MegaShift MS3/X M54B25 j&s slc_oem
1994 Toyota Supra Twin Turbo - AEM EMS v2 - 2JZ-GTE slc_oem
2004 Nissan SE-R SpecV Turbo - MS3/X QR25DE j&s slc_oem (SOLD !)
2012 BMW X3 35i MSport - single turbo N55 - stock!
gurov
Super MS/Extra'er
 
Posts: 1007
Joined: Sun Jun 01, 2008 11:54 pm

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Thu Aug 05, 2010 2:20 pm

hehehe, I was wondering if you'd find this project, I saw your posts in the GPIO forum.. I can't post there because I mentioned the IO-Extender too many times.. Ha! heh.. Anyways, there's a link a couple pages back, but I'll just link you right there: http://www.msextra.com/doc/trans/index.html That'll link you to the official version, the versions past that have experimental support for the Chrysler trans and GPIO, I'm not sure if James is ready to release that out to everyone yet.
We need a JimTrans section on the MSExtra forum, seems to be the summer of the electronic automatic. :yeah!:
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby gurov » Thu Aug 05, 2010 6:37 pm

UnaClocker wrote:hehehe, I was wondering if you'd find this project, I saw your posts in the GPIO forum.. I can't post there because I mentioned the IO-Extender too many times.. Ha! heh.. Anyways, there's a link a couple pages back, but I'll just link you right there: http://www.msextra.com/doc/trans/index.html That'll link you to the official version, the versions past that have experimental support for the Chrysler trans and GPIO, I'm not sure if James is ready to release that out to everyone yet.
We need a JimTrans section on the MSExtra forum, seems to be the summer of the electronic automatic. :yeah!:


now that I have the actual docs for the trans and know how the d*** thing operates, I can begin writing the code.i will give this version a look to see if it would be easier to modify.

I do have some spare ms2s now that I upgraded all the cars to ms3
2004 BMW 325xi Turbo A/T MegaShift MS3/X M54B25 j&s slc_oem
1994 Toyota Supra Twin Turbo - AEM EMS v2 - 2JZ-GTE slc_oem
2004 Nissan SE-R SpecV Turbo - MS3/X QR25DE j&s slc_oem (SOLD !)
2012 BMW X3 35i MSport - single turbo N55 - stock!
gurov
Super MS/Extra'er
 
Posts: 1007
Joined: Sun Jun 01, 2008 11:54 pm

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Thu Aug 05, 2010 6:48 pm

The great thing about James's code is that it's written for GCC rather than Codewarrior, so there's twice as much flash memory available to the program, which means you can do more with the firmware. I know Lance said in several threads on his forum that his code is out of flash space as it is. (The free version of codewarrior is limitted to half the flash available on the MS2 CPU)
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby racingmini_mtl » Thu Aug 05, 2010 8:36 pm

And using the same trick as what is done in MS2/Extra, you can double the memory once more (128k).

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 6040
Joined: Sun May 02, 2004 6:51 am
Location: Montreal, Canada

Re: Microsquirt/MS2 based transmission controller

Postby gurov » Thu Aug 05, 2010 11:28 pm

UnaClocker wrote:The great thing about James's code is that it's written for GCC rather than Codewarrior, so there's twice as much flash memory available to the program, which means you can do more with the firmware. I know Lance said in several threads on his forum that his code is out of flash space as it is. (The free version of codewarrior is limitted to half the flash available on the MS2 CPU)


Oh, sweet. I'm not a huge fan of codewarrior setup, so I will def give this a shot.

All I have to do is add one more gear, add two digital inputs, get rid of pwm on 3rd solenoid, and make manual mode selection be based off a switch. Is there input shaft rpm input in james' code ?

Oh, I will also need to set output pin to on during shifts to signal ms3 to set overboost to a diff level or mapswich to a retarded ign map.
2004 BMW 325xi Turbo A/T MegaShift MS3/X M54B25 j&s slc_oem
1994 Toyota Supra Twin Turbo - AEM EMS v2 - 2JZ-GTE slc_oem
2004 Nissan SE-R SpecV Turbo - MS3/X QR25DE j&s slc_oem (SOLD !)
2012 BMW X3 35i MSport - single turbo N55 - stock!
gurov
Super MS/Extra'er
 
Posts: 1007
Joined: Sun Jun 01, 2008 11:54 pm

Re: Microsquirt/MS2 based transmission controller

Postby jsmcortina » Fri Aug 06, 2010 3:15 am

Gurov,
take a look at the current source, but before you start hacking away, grab the latest version from me. I've been working on it somewhat for the 41TE and made a number of changes that could be useful. e.g. more abstraction on the output ports and pins.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 26003
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Microsquirt/MS2 based transmission controller

Postby gurov » Fri Aug 06, 2010 7:26 am

jsmcortina wrote:Gurov,
take a look at the current source, but before you start hacking away, grab the latest version from me. I've been working on it somewhat for the 41TE and made a number of changes that could be useful. e.g. more abstraction on the output ports and pins.

James


neat. i'll do that, if you want to send me a copy via email(ggurov@gmail.com), unless there's a cvs/svn for this somewhere.

the 5l40e is used in a bunch of cars, including turbo solstice, saturn sky, x3, x5, some 5 series and other bimmers and some other aftermarket controllers i found were "coming real soon now"
2004 BMW 325xi Turbo A/T MegaShift MS3/X M54B25 j&s slc_oem
1994 Toyota Supra Twin Turbo - AEM EMS v2 - 2JZ-GTE slc_oem
2004 Nissan SE-R SpecV Turbo - MS3/X QR25DE j&s slc_oem (SOLD !)
2012 BMW X3 35i MSport - single turbo N55 - stock!
gurov
Super MS/Extra'er
 
Posts: 1007
Joined: Sun Jun 01, 2008 11:54 pm

Re: Microsquirt/MS2 based transmission controller

Postby UnaClocker » Thu Aug 12, 2010 8:58 pm

http://www.youtube.com/watch?v=krL6v1h6jog Video of me driving around on James's current firmware. :) I could drive the car anywhere as is, just some minor glitches and several features I need, and it'll be rockin.
UnaClocker
Super MS/Extra'er
 
Posts: 1932
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA

Re: Microsquirt/MS2 based transmission controller

Postby Tjabo » Thu Aug 12, 2010 9:13 pm

Looking REAL good!
--'97 BMW 540i/6, M5 look, not MS'ed. . . yet. Getting ready to work on it though!
--'98 Neon ACR, Eagle/Wiseco 2.0L-- Billet SC6265sp, V3 MS3 Beta - SOLD :-(
Tjabo
Master MS/Extra'er
 
Posts: 716
Joined: Sat Nov 05, 2005 7:36 pm

PreviousNext

Return to Other Development

Who is online

Users browsing this forum: No registered users and 1 guest