Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Hi,
since i got lot of PM/emails asking for my custom AIM MXS CAN protocol for the KPRO V4, here is my version and documentation :
The Kpro can protocol included in the AIM library has some limitations :
- only 2 analog inputs returned, for specific sensors (not documented)
- no lambda value returned
So i developed a custom to read that.
First, you have to set-up the kpro board for the protocol to be used : Motec SDL/ADL
Then, you have to set-up the AIM Race studio software, download and install the protocol attached to this message.
Then, when you create a new configuration for a MXS, you choose the new protocol, and you have the following channels available :
All the analog channels are returned as raw millivolts values : you need to create a Math channel for each sensor to make it human readable,
for example, for a 0-10bar oil/fuel pressure sensor like this one : https://www.reveltronics.com/en/shop/60 ... -5v-detail
I had to set the following values :
I will not help you to create those math channels or to wire your sensors that requires pull-up resistors, you need to make your own calculations for this.
I you installed a kpro, a AIM dash, then you should be able to do a little maths !
If you do all this steps properly, you should be able to display some very interesting data : i have Lambda, EGT, Oil T°, Oil Pressure, fuel pressure, ... on my dash (when i want to confirm that everything is working as it should on track)
Thanks.
since i got lot of PM/emails asking for my custom AIM MXS CAN protocol for the KPRO V4, here is my version and documentation :
The Kpro can protocol included in the AIM library has some limitations :
- only 2 analog inputs returned, for specific sensors (not documented)
- no lambda value returned
So i developed a custom to read that.
First, you have to set-up the kpro board for the protocol to be used : Motec SDL/ADL
Then, you have to set-up the AIM Race studio software, download and install the protocol attached to this message.
Then, when you create a new configuration for a MXS, you choose the new protocol, and you have the following channels available :
All the analog channels are returned as raw millivolts values : you need to create a Math channel for each sensor to make it human readable,
for example, for a 0-10bar oil/fuel pressure sensor like this one : https://www.reveltronics.com/en/shop/60 ... -5v-detail
I had to set the following values :
I will not help you to create those math channels or to wire your sensors that requires pull-up resistors, you need to make your own calculations for this.
I you installed a kpro, a AIM dash, then you should be able to do a little maths !
If you do all this steps properly, you should be able to display some very interesting data : i have Lambda, EGT, Oil T°, Oil Pressure, fuel pressure, ... on my dash (when i want to confirm that everything is working as it should on track)
Thanks.
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Example of display with this protocol :
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Example of adding a custom temperature sensor on a Kpro, how to wire it, how to create the Kpro custom input, and the math channel for the AIM :
1) EGT sensor :
EGT sensors are for most of them k-type sensors, that requires amplifications to be read. I choose to use a RTD sensor supplied by AEM (AEM 30-2050), that you can read directly.
The data sheet is here : https://www.aemelectronics.com/files/in ... %20Kit.pdf
We need to use a pull-up resistor to wire it to our K-pro (please read the documentation to understand : https://www.hondata.com/help/kmanager/i ... rature.htm
So, you open your favorite spreadsheet application, and you begin your calculations :
First, i typed the data sheet values : Column A = temperature, column B = sensor resistance
Secondly, i choose a resistor value that will allow me to have a good range on the reading, in my case, 680ohm is fine, and is a classical resistor value.
Then, i calculate the Voltage that the kpro will read with the sensor resistance + pull-up resistor for each sensor temperature in the datasheet.
For a temperature of 800°c, the Voltage is :
(5v * 738ohm) / (738ohm + 680ohm) = 2.6022v
Where :
5v is the supply voltage we use (taken on E5 on E connector)
738ohm is the resistance of the sensor at 800°c
680ohm is the resistance of the pull-up resistor
Then, i choose the range of temperature i want to be accurate in : for an EGT, i want to read the 600-1000°C range, no need to be accurate out of this range.
And magic : on this range, the curve is almost flat : our reading is almost linear then.
For the Kpro, we insert the values in the settings of the analog input :
For the AIM, you need a bit more maths :
Then, you find your Y=AX+B values (remember that math lesson at school).
Y is your voltage read by the Kpro,
X is the actual temperature
A is the multiplier and B the offset.
Be careful for the AIM : the voltage reading is not in volts but millivolts. And you need to reverse Y and X since you want to get the temperature from a voltage and not a voltage from a temperature
1) EGT sensor :
EGT sensors are for most of them k-type sensors, that requires amplifications to be read. I choose to use a RTD sensor supplied by AEM (AEM 30-2050), that you can read directly.
The data sheet is here : https://www.aemelectronics.com/files/in ... %20Kit.pdf
We need to use a pull-up resistor to wire it to our K-pro (please read the documentation to understand : https://www.hondata.com/help/kmanager/i ... rature.htm
So, you open your favorite spreadsheet application, and you begin your calculations :
First, i typed the data sheet values : Column A = temperature, column B = sensor resistance
Secondly, i choose a resistor value that will allow me to have a good range on the reading, in my case, 680ohm is fine, and is a classical resistor value.
Then, i calculate the Voltage that the kpro will read with the sensor resistance + pull-up resistor for each sensor temperature in the datasheet.
For a temperature of 800°c, the Voltage is :
(5v * 738ohm) / (738ohm + 680ohm) = 2.6022v
Where :
5v is the supply voltage we use (taken on E5 on E connector)
738ohm is the resistance of the sensor at 800°c
680ohm is the resistance of the pull-up resistor
Then, i choose the range of temperature i want to be accurate in : for an EGT, i want to read the 600-1000°C range, no need to be accurate out of this range.
And magic : on this range, the curve is almost flat : our reading is almost linear then.
For the Kpro, we insert the values in the settings of the analog input :
For the AIM, you need a bit more maths :
Then, you find your Y=AX+B values (remember that math lesson at school).
Y is your voltage read by the Kpro,
X is the actual temperature
A is the multiplier and B the offset.
Be careful for the AIM : the voltage reading is not in volts but millivolts. And you need to reverse Y and X since you want to get the temperature from a voltage and not a voltage from a temperature
- Attachments
-
- Screenshot 2019-10-09 at 12.07.15.png (102.7 KiB) Viewed 4963 times
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Another example with the AEM 30-2012 sensor :
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Also, i got some questions about the fact that the Ethanol content and Fuel temperature is not included in my protocol :
i can add them but i may ask a little contribution on the time spent for this, and if you want more help on how to install other custom sensors if you're not able to calculate the pull-up resistor / values to set in kpro manager / AIM race studio.
If you want, send me a PM and we can discuss pricing (not a lot of course ;) )
i can add them but i may ask a little contribution on the time spent for this, and if you want more help on how to install other custom sensors if you're not able to calculate the pull-up resistor / values to set in kpro manager / AIM race studio.
If you want, send me a PM and we can discuss pricing (not a lot of course ;) )
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
I'm not sure if your external conversions use Steinhart-Hart for the temps or an approximation.
I don't see a problem adding the ethanol to the AiM output as existing setups will just ignore the extra CAN packet, so I can do that if you would like.
I don't see a problem adding the ethanol to the AiM output as existing setups will just ignore the extra CAN packet, so I can do that if you would like.
Hondata
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
I use approximations over a specific range that i choose, no Steinhart-Hart.
Ethanol/Fuel temp is already included in your Motec SDL/ADL protocol that i used (i wanted the 8 analog inputs, and the AIM can protocol has only 4 analogs inputs), but not included in the AIM reading protocol i developed to read the Motec SDL/ADL sent by the kpro.
Ethanol/Fuel temp is already included in your Motec SDL/ADL protocol that i used (i wanted the 8 analog inputs, and the AIM can protocol has only 4 analogs inputs), but not included in the AIM reading protocol i developed to read the Motec SDL/ADL sent by the kpro.
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Is it possible to include "Mil status" in the protocols ?
that would be great since i have only a CAN interface between the dashboard and kpro board
that would be great since i have only a CAN interface between the dashboard and kpro board
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Yes, added MIL. Anything else?
Hondata
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
If possible :
VTEC status,
open/closed loop status
For external datalogging purpose that could be awesome !
VTEC status,
open/closed loop status
For external datalogging purpose that could be awesome !
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Is it just me or is anyone else having issues looking at the images posted by Thomasn?
Also, when I download the CAN protocol ZIP file via the link the file comes up as invalid when you try and unzip it?
Also, when I download the CAN protocol ZIP file via the link the file comes up as invalid when you try and unzip it?
Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)
Thanks, there was a problem with attachments which I have fixed.
Hondata