Possible to broadcast a smoothed ADC input over CAN?

All questions about MS2/Microsquirt/Microsquirt module. See also MS2/Extra manuals

Moderators: jsmcortina, muythaibxr

Post Reply
NewFoxau2
Helpful MS/Extra'er
Posts: 38
Joined: Sun May 29, 2011 7:12 am

Possible to broadcast a smoothed ADC input over CAN?

Post by NewFoxau2 »

Hello! I'm using an MS2 and it's been recently upgraded to the newest code. I have an oil pressure sensor on ADC6, and a capacitive fuel level sensor on ADC7. I've been working on a cheap system whereby the megasquirt broadcasts data over CAN, then a switec stepper motor drives the needles in the gauges. I've got it working quite well, except for one thing I haven't yet been able to figure out.

I've created custom gauges in tunerstudio to smooth the inputs so they aren't just bouncing all over. Is it possible to broadcast that smoothed data over CAN?

I'm going to be upgrading to MS3x this winter. If it's not possible on MS2, is it possible on MS3? I can smooth it in my MCU, but it's just easier if I can broadcast the direct TS values.

Here's an old video I made a year ago. The individual slave boards are much more sleek now.

https://youtu.be/mJOSYgaLThk
Post Reply