Page: |
Home > A-Series EFI / Injection > Megasquirt Traction Control | |||||||
8604 Posts Member #: 573 Formerly Axel Podland |
16th Feb, 2010 at 08:17:50pm
Following on from the thread the other day about the SC Traction Control, I've been investigating how this can be done with the latest Megasquirt code that includes the features for siamese port engines.
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
6745 Posts Member #: 828 Post Whore uranus |
16th Feb, 2010 at 08:30:57pm
woof !!!
Medusa + injection = too much torque for the dyno ..https://youtu.be/qg5o0_tJxYM |
||||||
1050 Posts Member #: 764 Post Whore Staffordshire |
16th Feb, 2010 at 08:54:47pm
Sounds good, I'm planning on a MS based traction control for my next project so this will be an interesting thread.
|
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
16th Feb, 2010 at 09:00:49pm
There is just a thread in the MS2/Extra Development forum "Traction Control Fuzzy Logic in C and Assembler".
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
1050 Posts Member #: 764 Post Whore Staffordshire |
16th Feb, 2010 at 09:27:27pm
Just had a peek... i think i need to do a bit more reading before reading it again tho.. :s |
||||||
4314 Posts Member #: 700 Formerly British Open Classic The West Country |
16th Feb, 2010 at 09:34:59pm
Nice, I like it a lot.
Isambard Kingdom Brunel said:
Nothing is impossible if you are an Engineer |
||||||
9502 Posts Member #: 1023 Post Whore Doncaster, South Yorkshire |
16th Feb, 2010 at 09:41:32pm
im watching :) Yes i moved to the darkside
|
||||||
1267 Posts Member #: 831 Post Whore Montreal, Canada |
16th Feb, 2010 at 09:53:47pm
Actually, since the code compares ADC counts (voltage), it would be possible to have different wheel sizes and/or a different number of teeth as long as you calibrate the frequency-to-voltage circuits to give the same voltage at the same speed.
|
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
16th Feb, 2010 at 10:06:55pm
Jean, in theory you could but there is only a single resistor and capacitor that you can change to adjust the range. The difference in tooth numbers would have to match ratios of available combinations. Tricky.
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
17th Feb, 2010 at 09:50:50am
On 16th Feb, 2010 Paul S said:
I'm a member of the MS forums, so I PM'd him and he has sent me a write up. It would be inappropriate for me to publish his work, but there is no reason why you should not contact him directly. In the MS forum he has made a link available to a basic write-up (he calls it a tutorial) http://querdenker.dyndns.org/downloads/upb...vTCTurorial.pdf He just says don't hammer the link (bandwidth issues I presume) It makes interesting reading. Schrödinger's cat - so which one am I ??? |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
17th Feb, 2010 at 11:31:33am
I think that I need to change the value of the resistor fitted to pin 3.
Edited by Paul S on 17th Feb, 2010. Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
6745 Posts Member #: 828 Post Whore uranus |
17th Feb, 2010 at 01:51:27pm
is it worth making 5 volts at just above possible spin speed ,say 50 mph ? this would get a greater sensitivity for launch ,then have the system turn off above 50 mph .bit of a different philosophy ? Medusa + injection = too much torque for the dyno ..https://youtu.be/qg5o0_tJxYM |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
17th Feb, 2010 at 01:54:59pm
Interesting idea, but we would need the code re-writing to add this facility.
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
1050 Posts Member #: 764 Post Whore Staffordshire |
17th Feb, 2010 at 02:12:22pm
Interesting read, makes loads more sense now. Would be benificial to be able to change settings on a dash switch, but as said its early days. I wish I had taken more notice at college when we did c and assembly. |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
17th Feb, 2010 at 02:17:58pm
I'm just planning an on/off switch at the moment. It will just cut power to the sensors and converters. Hopefuuly there will not be any electrical noise to cause problems when switched off.
Edited by Paul S on 17th Feb, 2010. Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
1267 Posts Member #: 831 Post Whore Montreal, Canada |
17th Feb, 2010 at 05:04:16pm
Once the code is published, I'll have a look at it and see if it's easy to convert it to use timer values instead of ADC values for the speed inputs. There aren't any timers available on MS2 but there are on the I/O Extender and it would mean simply connecting the VR sensors and entering the correct scaling.
|
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
18th Feb, 2010 at 11:09:47am
I've been thinking about this while waiting for the garage to thaw....
On 17th Feb, 2010 Paul S said:
Now the other think is this 7.8v VCC which is stepped down from a 12v supply. Given that the MS runs at battery voltage which can be as high as 14v, do I need to make further adjustments? EDIT: Had to break to speak to a client .... looking at the datasheet it just seems a crude way of dropping the voltage with a resistor and using a zenner internal to the IC to regulate the voltage. Even the datasheet says the value of resistor is important and there will still be some internal voltage variations anyway. I can't see what's wrong with using a standard, say 9V, T022 voltage regulator chip to feed all the LM2917s. On the rest, I see they provide example circuits for minimum, average and maximum voltage so considering the back of the car you could use two and wire for maximum so a lifted inside wheel is ignored and on the front use two and wire for average or even just adapt the speedo drive (which is mechanically "average"), either would detect wheelspin. The real point I don't understand is how this gets to be in the code..... if it's written in C surely the whole code needs re-assembling to include it ??? It's years since I did assembly (back in Uni days) and we wrote in Pascal (not C) and assembled for the x86 (early PC) processers so it would be well beyond my ability. The MS-Extra forum seems to suggest it could be incorporated in the Extra code but it's far from clear how/if/when. Just random thoughts at the moment. Schrödinger's cat - so which one am I ??? |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
18th Feb, 2010 at 03:41:20pm
I would be interested to see how you would wire in a 9v regulator.
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
18th Feb, 2010 at 04:12:24pm
On 18th Feb, 2010 Paul S said:
I would be interested to see how you would wire in a 9v regulator. As you say we could use 3 or 4 wheel sensors without too much hassle. As far as the code is concerned, it is already written. Patrick has taken the latest 3.0.3r code and added assembler functions for the traction control. The assembler functions are then compiled along with the C based code. The datasheet has to be one of the worst written ones I've ever looked at.... It seems the 2907 series requires a stable Vcc (ie, an external regulator) and the 2917 series relies on an internal zener diode and an external resistor to do the same but the resistor has to be chosen to limit the voltage swings internally. The value of 470 ohms for the external resistor on the 2917 just seems to be the best compromise against voltage swings internally. Re. the code, without getting pedantic about the difference between assembling and compiling, what we actually use is a single binary file loaded to the MS2 CPU with all the bits previously written/assembled/compiled/etc in the one file. I'm not familiar with being able to add bits without re-assembling/re-compiling the whole code. I stand to be corrected but I assume it needs a new version of the code to have it included ??? Schrödinger's cat - so which one am I ??? |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
18th Feb, 2010 at 04:31:18pm
On 18th Feb, 2010 Rod S said:
Re. the code, without getting pedantic about the difference between assembling and compiling, what we actually use is a single binary file loaded to the MS2 CPU with all the bits previously written/assembled/compiled/etc in the one file. I'm not familiar with being able to add bits without re-assembling/re-compiling the whole code. I stand to be corrected but I assume it needs a new version of the code to have it included ??? Patrick has done all the compiling etc. On the MS thread he has loaded up a zip file that includes the S19 file to download to the MS and the ini file for TS. Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
1267 Posts Member #: 831 Post Whore Montreal, Canada |
18th Feb, 2010 at 04:35:59pm
On 18th Feb, 2010 Rod S said:
Re. the code, without getting pedantic about the difference between assembling and compiling, what we actually use is a single binary file loaded to the MS2 CPU with all the bits previously written/assembled/compiled/etc in the one file. I'm not familiar with being able to add bits without re-assembling/re-compiling the whole code. I stand to be corrected but I assume it needs a new version of the code to have it included ??? At this time Patrick is compiling/assembling/linking the code and providing a new binary to be loaded on the MS2. This is based on the 3.0.3r code with his code added. The goal is to have this additional code included in the official one at some point so that it is simply part of the official release (similar to what was done with the siamese code). And the MS2/Extra code is already a mix of C and assembler code in a bunch of source files and the whole thing is compiled, assembled and linked using the freely available gcc tools. Everything but the gcc tools is provided when you get the zip file to generate the binary s19 file. You simply need to run the make file. Jean |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
18th Feb, 2010 at 05:11:46pm
Would a 7809, 1A Positive Voltage Regulator do the job better?
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
5988 Posts Member #: 2024 Formally Retired Rural Suffolk |
18th Feb, 2010 at 05:51:55pm
Right,
Schrödinger's cat - so which one am I ??? |
||||||
12307 Posts Member #: 565 Carlos Fandango Burnham-on-Crouch, Essex |
18th Feb, 2010 at 06:05:00pm
i pretty mych agree Paul,
On 28th Aug, 2011 Kean said:
At the risk of being sigged... Joe, do you have a photo of your tool? http://www.turbominis.co.uk/forums/index.p...9064&lastpost=1 https://joe1977.imgbb.com/ |
||||||
8604 Posts Member #: 573 Formerly Axel Podland |
18th Feb, 2010 at 06:12:51pm
Well, I'm not actually convinced that the 2917 has an internal zener. They have drawn one in one of the schematics, but I think it is suposed to be external.
Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
|
||||||
Home > A-Series EFI / Injection > Megasquirt Traction Control | |||||||
|
Page: |