Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

K-Series Programmable ECU installation questions / support issues
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

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
param-kpro.PNG
param-kpro.PNG (27.64 KiB) Viewed 4846 times
Then, you have to set-up the AIM Race studio software, download and install the protocol attached to this message.
HONDATA_KPRO4_DEV_@20190507_092544_009877.xc1.zip
(58.42 KiB) Downloaded 230 times
Then, when you create a new configuration for a MXS, you choose the new protocol, and you have the following channels available :
channels1.PNG
channels1.PNG (36.77 KiB) Viewed 4846 times
channels2.PNG
channels2.PNG (37.66 KiB) Viewed 4846 times
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 :
example-math.PNG
example-math.PNG (68.41 KiB) Viewed 4846 times
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.
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

Example of display with this protocol :
IMG_1679.PNG
IMG_1679.PNG (3.24 MiB) Viewed 4844 times
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

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 :
Screenshot 2019-10-09 at 12.07.15.png
Screenshot 2019-10-09 at 12.07.15.png (102.7 KiB) Viewed 4826 times
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 :
EGT-kpro.PNG
EGT-kpro.PNG (30.82 KiB) Viewed 4826 times
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
egt-zim.PNG
egt-zim.PNG (35.79 KiB) Viewed 4826 times
Attachments
Screenshot 2019-10-09 at 12.07.15.png
Screenshot 2019-10-09 at 12.07.15.png (102.7 KiB) Viewed 4826 times
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

Another example with the AEM 30-2012 sensor :
Screenshot 2019-10-09 at 12.23.05.png
Screenshot 2019-10-09 at 12.23.05.png (150.16 KiB) Viewed 4826 times
aem302012.PNG
aem302012.PNG (30.45 KiB) Viewed 4826 times
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

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 ;) )
User avatar
Hondata
Site Admin
Posts: 10434
Joined: Thu Aug 15, 2002 12:13 pm
Location: Torrance, CA
Contact:

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by Hondata »

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.
Hondata
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

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.
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

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
User avatar
Hondata
Site Admin
Posts: 10434
Joined: Thu Aug 15, 2002 12:13 pm
Location: Torrance, CA
Contact:

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by Hondata »

Yes, added MIL. Anything else?
Hondata
thomasn
Posts: 16
Joined: Thu Aug 30, 2018 1:33 am

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by thomasn »

If possible :

VTEC status,
open/closed loop status

For external datalogging purpose that could be awesome !
User avatar
Hondata
Site Admin
Posts: 10434
Joined: Thu Aug 15, 2002 12:13 pm
Location: Torrance, CA
Contact:

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by Hondata »

Hondata
MHinOZ
Posts: 4
Joined: Tue Mar 06, 2018 10:31 pm

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by MHinOZ »

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?
User avatar
Hondata
Site Admin
Posts: 10434
Joined: Thu Aug 15, 2002 12:13 pm
Location: Torrance, CA
Contact:

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by Hondata »

Thanks, there was a problem with attachments which I have fixed.
Hondata
MHinOZ
Posts: 4
Joined: Tue Mar 06, 2018 10:31 pm

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by MHinOZ »

Hondata wrote: Sun Jan 12, 2020 2:32 pm Thanks, there was a problem with attachments which I have fixed.
Thanks for fixing that Admin!

Do you have the same problem with the ZIP file im having?
User avatar
Hondata
Site Admin
Posts: 10434
Joined: Thu Aug 15, 2002 12:13 pm
Location: Torrance, CA
Contact:

Re: Updated CAN Protocol for AIM MXS (with all analogs and Lambda)

Post by Hondata »

Can you post the link?
Hondata
Post Reply