00:00 |
- With the MoTeC M1 range of ECUs, we have the ability to input either a two-position on/off switch or a multi-position potentiometer to control many of the functions and we are going to have a look right now at how we can set one of these up.
|
00:16 |
So what I've done is, I've wired in a nine-position rotary switch into an analogue voltage input and we're going to look at how we can set that up in the M1 tuning software.
|
00:28 |
So, first of all, what we want to do is go to the vehicle folder, vehicle workbook I should say, and you can see we've got worksheet number four is driver switch and this is where we're going to configure this particular function.
|
00:42 |
So we have two options here.
|
00:44 |
We have our switches which are a on/off two-position switch.
|
00:48 |
So we could use this, for example, for tuning a function such as traction control on or off.
|
00:54 |
What we're going to look at though is our rotary multi-position switches.
|
00:58 |
To be honest though, the configuration is relatively similar between the two.
|
01:03 |
Obviously we just don't have as many positions.
|
01:05 |
So we'll just expand out the tree here for our rotary switch and we want to start by defining a resource that this particular input is on and in this case, we have wired this up to analogue voltage input 12.
|
01:21 |
So we want to select that and you'll see at the top the bar goes red and tells us that we need to perform a reset, which we can do by pressing down the Ctrl and S key to save or store that particular calibration.
|
01:36 |
So, once that resets, then we can look at the rest of the setup.
|
01:40 |
At the moment, you'll see that straight away we have a voltage reading coming in from our switch.
|
01:46 |
That suggests that everything's working.
|
01:48 |
If you want, if you've got a lot of noise on that signal, you can filter it.
|
01:53 |
Although for this particular input, it's really not necessary.
|
01:56 |
We're looking at something that's moving quite slowly and also we've got a large tolerance between our different positions.
|
02:04 |
Now if we move up, we've got our diagnostics, which gives a low and a high value for the range of voltages that the ECU is expecting to see from the switch.
|
02:17 |
So we want to make sure that both the low and high voltages diagnostic areas are set outside of the normal range we'll expect from that switch.
|
02:25 |
And we've also got a delay, so it will have to go above or below those diagnostic values for 100ms before it's considered to be in fault.
|
02:34 |
At the moment, you can see the diagnostic is saying "tolerance" and what this means is, at the moment, the switch the ECU can't define the position of the switch.
|
02:41 |
And that's simply because, at the moment, all of the positions which you can see listed here, are all set to 50mV.
|
02:49 |
So what we want to do is, we want to grab our switch and put it in the first position, which is zero.
|
02:55 |
And then, we can simply use the Q calibrate key to read the value from the switch.
|
03:01 |
And you can see, when I press that, it reads in the current value, which is 284mV.
|
03:06 |
So what we can do is then just continue down through the list, moving to the next position on the switch, before pressing the Q key to automatically calibrate the input from the rotary switch.
|
03:19 |
So that's a pretty straightforward system and it's very quick and easy to calibrate.
|
03:25 |
Once we get down to the bottom, you can see that all of our different values have been entered.
|
03:30 |
Now it's worth just mentioning this tolerance.
|
03:32 |
The default value for the tolerance is 200mV.
|
03:35 |
So, what this means is, when we are within 200mV of the calibrated value, that is the position that the ECU will consider to be current.
|
03:46 |
So this just allows for some movement in the absolute voltage from the switch at any time.
|
03:52 |
And 200mV, that's the default value.
|
03:55 |
In this case, it works quite nicely.
|
03:58 |
Now if we look here, we can see our rotary position switch.
|
04:02 |
Our diagnostic is saying we're okay now; we're out of that tolerance diagnostic fault.
|
04:08 |
And you can see up here the current position, as I move the switch it's moving through all of the values.
|
04:15 |
So, that's how we can configure a switch, rotary switch, into the M1 ECU and now we can use that in our tuning to control our functions.
|
04:26 |
And, we'll look at that a little bit later.
|