Getting brake actuation into the Megasquirt for Can output

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

Moderators: jsmcortina, muythaibxr

Post Reply
Talkiet
MS/Extra Newbie
Posts: 32
Joined: Sat Dec 31, 2011 4:52 pm

Getting brake actuation into the Megasquirt for Can output

Post by Talkiet »

I now have CAN output working and picking up the Simplified dash broadcasting just fine. I am also happy to switch to the more detailed data broadcasting etc but there are a couple of things I wanted to sort out.

1) The AFR as reported by this code:

Code: Select all

      case 1514:
        AFR = (float)(word(0x00, rxmsg.buf[1]));
is wrong, it seems to vary with the wideband display on the dash... does it need to be mapped to a range? If so, anyone know? (It displays accurately in TS)

2) I would like to be able to log brake actuations (I get TPS and it would be useful to be able to know exactly where I hit the brake)... I could I guess steal the brake light and put it into an input on the teensy, but it would be neater to fire it into the MS and grab it via CAN along with the TPS, RPM etc. Is there a standard way to do this? A best input? any signal processing/filtering? A better idea? (Load cell on the pedal pad was one thing I thought of!)

I am using a MS2 V3.0 with MSExtra 3.4.2.

Cheers - Neil G
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Getting brake actuation into the Megasquirt for Can outp

Post by jsmcortina »

You could feed a 0-5V digital signal into one of the spare ADC inputs (ADC6 or ADC7) They are broadcast in "group 15" of the broadcast.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply