Autosport Labs AnalogX

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
lifeandffl
MS/Extra Newbie
Posts: 5
Joined: Thu Dec 29, 2016 1:33 am

Autosport Labs AnalogX

Post by lifeandffl »

Hi all, first new thread. I was wondering if anyone can give me some incite on how to code up for a AnalogX GPIO from Autosport Labs. It was built and designed to add on additional channels for the RaceCapture/Pro but I wanted to integrate it into my MS3X. I was thinking I could use the GPIO code that is already existing and modify it to work with the AnalogX. Is this a reasonable approach or do you have another suggestion?

A link to the device I want to use is below.
https://wiki.autosportlabs.com/AnalogX

Thanks,
-Joey
grom_e30
Super MS/Extra'er
Posts: 4459
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: Autosport Labs AnalogX

Post by grom_e30 »

it looks like you could use the can receiving to read the data from that guy.
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
lifeandffl
MS/Extra Newbie
Posts: 5
Joined: Thu Dec 29, 2016 1:33 am

Re: Autosport Labs AnalogX

Post by lifeandffl »

grom_e30 wrote:it looks like you could use the can receiving to read the data from that guy.
That was my thoughts as well. Now I just need to figure out HOW I go about doing that.

I guess I'll just have to dive into the code and figure out how to get the two to talk to each other.

-Joey
grom_e30
Super MS/Extra'er
Posts: 4459
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: Autosport Labs AnalogX

Post by grom_e30 »

it shouldn't need any firmware coding.

by default it broad casts the data at 50hz on a 500kbp can speed so this is good as its the baud megasquirt uses, it looks like it uses 2 bytes per sensor i'm guessing its a unsigned integer little endian format and i believe it uses 0-5000mv for the reading it gives out.

see here: http://www.msextra.com/doc/pdf/html/Meg ... 5-279.html

http://www.msextra.com/doc/pdf/html/Meg ... 5-235.html


so between the can receiving and the generic sensor inputs you should be able to read you 0-5v input from the AnalogX then scale it in to human readable information and log or display it
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
Post Reply