[Feature Request] How to get ADC to MS2?

'Microsquirt' Transmission Control development and support.

Moderators: jsmcortina, muythaibxr

Post Reply
acab
Experienced MS/Extra'er
Posts: 243
Joined: Tue Aug 21, 2012 5:52 am

[Feature Request] How to get ADC to MS2?

Post by acab »

Hello!

I have MS2 and Microsquirt for transmission control.
I have no free pins for sensors on my MS2, but i have much free ADC inputs in Microsquirt.
How to get data from micro to ms2extra?
for example fuel pressure, oil temp and other stuff.
Last edited by acab on Tue Apr 02, 2019 7:37 am, edited 1 time in total.
dontz125
Super MS/Extra'er
Posts: 4200
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: How to get ADC to MS2?

Post by dontz125 »

Take a look at the IO Box manual; it MIGHT work.
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
prof315
Super MS/Extra'er
Posts: 3760
Joined: Sun Jan 18, 2009 3:13 am
Location: Melbourne, FL

Re: How to get ADC to MS2?

Post by prof315 »

I _think_ only MS3 supports using the spare I/O as additional CAN I/O
Linfert Performance/321 Motorsports
SCCA 2019 SM National Champion Crew Chief
SCCA 2023 FP National Champion Tuner/electrical engineer
100s of MS systems built installed and tuned
Support the developers!
dontz125
Super MS/Extra'er
Posts: 4200
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: How to get ADC to MS2?

Post by dontz125 »

Having just spent the better part of an hour rummaging through various .ini config files as well as forum discussions both here and on jbperf, I'm going to guess at a guess. Nothing should break on either device, but be aware that results really should be tested to prevent stupid in = stupid out. Here we go:

The ADCs on the uS-TC are part of the output channels, and should be able to be read in CAN. The device is 7, I *THINK* the table is 7, the offset for ADC0 is 16, and the offset for ADC4 is 24; note that ADC4 is the voltage input, not an external sensor. This info will arrive at the MS2 as gpioadc0-gpioadc7, and I'm fairly certain the data is going to be in raw format, 0-1023 ADC counts. You'll need to come up with a custom.ini to allow TS to show it as a meaningful gauge value.

Good luck!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
Post Reply