Jump to content
Sign in to follow this  

Megasquirt 2 Sensor Monitoring

Recommended Posts

So I'm starting to plan on my dash and getting everything in order. I'd like to run a purely tablet driven dash. Most of the sensors I need are accessible via Raspberry Pi running Tuner Studio hooked up to my Megasquirt 2 (v 3.57). Is there anyway to also get readings like, oil pressure, fuel level, gps speed, through to tuner studio? 

Share this post

Link to post
Share on other sites

You're fairly limited on extra inputs with MS2. I'm running MS3X and still finding myself wishing for more ADC inputs. That said, there's two spare ADC on the MS2 3.0/3.57 setup on JS4/5. These would work for extra inputs like oil pressure and fuel level, but a typical resistance value like the OEM fuel sender or oil pressure will require a pull up resistor from TPSRev 5V, and the resistance curve. You only get one custom sensor curve, otherwise your fuel level/oil pressure would have to use the same curve of another sensor, like MAP, CLT, MAT, EGO. Since the nissan oil pressure likely doesn't use the same temp/resistance curve, I'm opting for a linear pressure sensor which allows trivial calibration, and you can run a custom linear calibration on each custom input.


That said, mine are in the mail. Should have them installed this weekend hopefully. These are the units I went with.




Keep in mind for oil pressure you'll need a 1/8 BSPT to NPT adapter.


What I ordered:




As an aside, this seems to be a common topic and the answer people wish existed was "use CAN bus for extra IO". Except I can't find a single working example of MS2 getting extra INPUTS from CAN bus. I can find lots of gauge products with extra IO that operate on canbus that claim megasquirt compatibility, but when you read their user docs they say the extra inputs are for MS3+ only.


Now, if you were running a pure CAN Bus based display (haven't looked into viable CAN->Android dash solutions yet, honestly hadn't crossed my mind until just now) then a separate GPIO->CAN controller could broadcast data long with MS2 and you could get all that data available to the dash. A simple adruino would fit that bill nicely, and give you piles of extra IO to work with. You just wouldn't be able to do anything with it inside the MS2 ECU, which also means you need logging at the dash side, or separately on the arduino itself.

Share this post

Link to post
Share on other sites

Seems there's at least a couple people who went for an android based CAN bus dash solution, which I find interesting considering all the dedicated race dash devices appear to be MCU based, not MPU based (think arduino not raspberry, no real OS just compiled code that direct acts upon the hardware).



(pretty stale)



(less stale)


And I think I knew this in the back of my mind somewhere, but RealDash is likely the smoothest bet to adding an extra IO box and using with with MS2 data for a dash:




But of course, you're running an Pi already, and want to use it's ADC built in. Sadly, I haven't found any way to grab non-Megasquirt data into tunerstudio dashboards. I'm sure it's a potential feature Phil could write in considering the work already done to grab other sensor data in shadowdash, but again, I haven't see success of what you're looking for.


This is also why I've been so on the fence about what to do about dash hardware/app. I've decided for my own project for that now I'll be using shadowdash on my main phone and deal with the limitations of MS3X inputs.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...