Getting brake actuation into the Megasquirt for Can output

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

Moderators: jsmcortina, muythaibxr

Getting brake actuation into the Megasquirt for Can output

Postby Talkiet » Sat Dec 30, 2017 2:32 pm

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
Talkiet
MS/Extra Newbie
 
Posts: 31
Joined: Sat Dec 31, 2011 4:52 pm

Re: Getting brake actuation into the Megasquirt for Can outp

Postby jsmcortina » Sun Dec 31, 2017 5:23 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33984
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK


Return to MS2/Extra, MS2, Microsquirt and Microsquirt module support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests