My solution for Oiltemp and Oilpressure input into Megasuirt (MS3) - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Reply
 
 
 
LinkBack Thread Tools
Old 09-28-2015, 06:15 AM   #1
Senior Member
Thread Starter
 
Join Date: Mar 2006
Location: Schwarzenberg, Germany
Posts: 1,497
Total Cats: 81
Default My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)

Hi folks,

after a long time with no time for stuff like that I took the time to bring on my attempts to get the oilpressure and oiltemperature into my MS3.

I think there were already various threads about that stuff - but mostly using resistive sensors and using a pullup inside the MS. Problem with that is - most of the sensors have a sensor curve and not a linear behaviour.

I did like to go the easy way and get "easy" 0-5V llinear signals into the MS.

So here is my solution:

Oilpressure:

... is indeed quite easy - (especially for you US guys) - I used the Auber 5 BAR (75 PSI) Gauge Pressure Sensor, 1/8NPT

5 BAR (75 PSI) Gauge Pressure Sensor, 1/8NPT [AUBER-P205g] - $63.00 : auberins.com, Temperature control solutions for home and industry



Connecting is easy
+5V from MS Vref
ground from MS
signal wire into one of the analog inputs

Now you have to tell the MS what input it gets and what the meaning of the 0-5V values is:
So - it's oil pressure, -0.6bar at 0V and 5.6bar at 5.0V - as to be seen here:




Oil temperature:

... is a bit more complicated
All the common sensors (NTC) use a sensore curve and are not linear - like this


As the Megasuirt only has very few 3-point sensor calibrations - this would lead to a big deviation on most of the temperature curve.

This lead me to the PT100 sensors - linear, highly correct temperature sensors. (in 2, 3 or 4-wire layout to delete the resistance error of the wires)

But - you need an evaluation board to get a "correct" signal out of this sensor for the megasquirt. (As I said 0-5V preferred in my case)

Well, I found a solution for this for reasonable money:

the sensor:
Again - lucky US boys:
Oil/Water Temperature Sensor, High Precision [PT100A-NPT] - $28.50 : auberins.com, Temperature control solutions for home and industry

This sensor is not easily available in Germany - so I did use this:
Temperaturfühler mit 2m Zuleitung ...105 Grad - Pohltechnik

And this is the evaluation borad DIY kit (sorry only in German, but I think you will find something like this in the US too)
Bausatz PT100 Messwandler - Bausätze / Module - Bausätze - - Pollin Electronic

Problem for me was the M6 thread of my German sensor - I had to make an adaptor with one of my sandwich plates 1/8 NPT blinds. Drilled, tapped and shortened a bit to hold the M6 sensor. (unfortunately there is no 1/8 NPT male to M65 female adapter available)

The evaluation board is a DIY kit - so some soldering required


The board needed a case - luckily I had an old mini-screwdriver case around with a perfect fit. Some self-adhesive velcro and it's mounted on the tunnel behind the center console.



Setting up the evaluation board needs some patience - I used a variable resistor to set the upper and lower measuring range and according output.

I got the 5V to feed the evaluation board from an automotive adaptor for mobile phones - but as the board only draws 30mA I think it could be fed through the +5Vref out of the Megasquirt too.

Now I made myself 2 new gauges in my TunerStudio dashboard


And this is it - now I can log and read the values in TS/MS.

In MS3 there is even a warning function with minimum oilpressure over rpm and a warning light output.

I thought this might be of some relevance for some of you on here...
Attached Thumbnails
My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-p210g.jpg   My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-ts_1.jpg   My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-oeltempkennlinie%25202.jpg   My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-pt100_01.jpg   My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-pt100_02.jpg  

My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-pt100_03.jpg   My solution for Oiltemp and Oilpressure input into Megasuirt (MS3)-ts_2.jpg  
Zaphod is offline   Reply With Quote
Old 11-17-2015, 03:51 PM   #2
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

These are what I will be using for oil pressure and fuel pressure:

Pressure Transducer or Sender 100PSI for Oil Fuel Diesel Gas Air Can'T for Water | eBay

Wired up to the Spare ADC no circuit is needed.

Then there is a saturn 1/8npt that can be hooked up to ms also. Just needs a 2.49kOhm pullup to 5v (I believe?)
aidandj is offline   Reply With Quote
Old 11-17-2015, 09:44 PM   #3
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

You could use a GM coolant temp sensor for oil temp, choose the option for "GM calibration" for your sensor transformation, and win at oil temp readings for like $20 and no drama.
Ben is offline   Reply With Quote
Old 11-17-2015, 09:45 PM   #4
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

Thats the saturn one. Its the only 1/8npt I can find. I picked up a couple pigtails at the JY today.

And I still need to add the bias resistor.
aidandj is offline   Reply With Quote
Old 11-18-2015, 12:10 PM   #5
Senior Member
Thread Starter
 
Join Date: Mar 2006
Location: Schwarzenberg, Germany
Posts: 1,497
Total Cats: 81
Default

Problem for me is to find parts like that over here in Europe...

I did try to find the "easy solution" Dayco/GM coolant reroute recently - no way in hell to find this here...
Zaphod is offline   Reply With Quote
Old 11-18-2015, 12:18 PM   #6
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

Does china not ship for cheap to Europe?
aidandj is offline   Reply With Quote
Old 11-18-2015, 12:57 PM   #7
mkturbo.com
iTrader: (24)
 
shuiend's Avatar
 
Join Date: May 2006
Location: Charleston SC
Posts: 13,756
Total Cats: 1,100
Default

Quote:
Originally Posted by Ben View Post
You could use a GM coolant temp sensor for oil temp, choose the option for "GM calibration" for your sensor transformation, and win at oil temp readings for like $20 and no drama.
This is what I am doing. I need to order another pigtail from you guys for the one I have.
shuiend is offline   Reply With Quote
Old 11-18-2015, 01:26 PM   #8
Senior Member
iTrader: (1)
 
Join Date: Apr 2011
Location: Columbia, SC
Posts: 1,342
Total Cats: 78
Default

Quote:
Originally Posted by shuiend View Post
This is what I am doing. I need to order another pigtail from you guys for the one I have.
Psh. My IAT sensor / Oil temp sensor came from LKQ lol.
Schuyler is offline   Reply With Quote
Old 11-18-2015, 01:27 PM   #9
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

Where did you put a 3/8 NPT sensor?
aidandj is offline   Reply With Quote
Old 11-18-2015, 01:56 PM   #10
Senior Member
iTrader: (1)
 
Join Date: Apr 2011
Location: Columbia, SC
Posts: 1,342
Total Cats: 78
Default

Quote:
Originally Posted by aidandj View Post
Where did you put a 3/8 NPT sensor?
I'm unsure who you're addressing here, as there hasn't been any mention of 3/8 in this thread.
Schuyler is offline   Reply With Quote
Old 11-18-2015, 01:57 PM   #11
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

I did not know DIY sold a 1/8 npt coolant sensor.
aidandj is offline   Reply With Quote
Old 11-18-2015, 02:11 PM   #12
mkturbo.com
iTrader: (24)
 
shuiend's Avatar
 
Join Date: May 2006
Location: Charleston SC
Posts: 13,756
Total Cats: 1,100
Default

I used this bung with this temp sensor. The bung is welded directly above my oil drain hole.
shuiend is offline   Reply With Quote
Old 11-18-2015, 02:14 PM   #13
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

Ah yes, yours is in the oil pan.

Mine is in the sandwich plate, much smaller hole.
aidandj is offline   Reply With Quote
Old 11-22-2015, 07:25 AM   #14
Senior Member
 
Join Date: Apr 2011
Location: Hollywood, FL
Posts: 522
Total Cats: 18
Default

Kinda late on this but doesn't Mazda use BPT threads and not NPT threads? If so Aidan, get an adapter. From some research BPT and NPT have the same thread and thread pitch but the thread rise has a different angle.
hector is offline   Reply With Quote
Old 11-22-2015, 10:54 AM   #15
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

This is going in my sandwich plate which is NPT.

I stuck an 1/8 npt coant sensor in the stock gauge location which is 1/8 BPT. No issues at all.

Find me a converter that works for coolant temp and I would have bought it for sure.
aidandj is offline   Reply With Quote
Old 11-22-2015, 10:55 AM   #16
Boosting since 1984
iTrader: (1)
 
stefanst's Avatar
 
Join Date: Sep 2011
Location: Levittown
Posts: 1,198
Total Cats: 67
Default

Quote:
Originally Posted by Zaphod View Post
Problem for me is to find parts like that over here in Europe...

I did try to find the "easy solution" Dayco/GM coolant reroute recently - no way in hell to find this here...
I'm traveling back to Germany usually two or three times a year. If you need parts that can easily fit in a suitcase, I can hand-carry them over for you.
stefanst is offline   Reply With Quote
Old 11-22-2015, 01:57 PM   #17
Elite Member
 
codrus's Avatar
 
Join Date: Mar 2007
Location: Santa Clara, CA
Posts: 3,834
Total Cats: 341
Default

It sounds like you've got it covered, but another option is to use CAN bus. A cheap sensor, an Arduino with a CAN bus shield, and a teeny bit of software and you should be able to linearize any sensor you want and put it into the megasquirt as a generic "CAN ADC". Similar to an IO box, but a lot less expensive.

--Ian
codrus is offline   Reply With Quote
Old 11-22-2015, 02:00 PM   #18
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

Tinyiox has 9adcs. Has some PWM outputs, and digital wideband in.

For $75. I couldn't argue with that.
aidandj is offline   Reply With Quote
Old 11-22-2015, 02:27 PM   #19
Elite Member
 
codrus's Avatar
 
Join Date: Mar 2007
Location: Santa Clara, CA
Posts: 3,834
Total Cats: 341
Default

Quote:
Originally Posted by aidandj View Post
Tinyiox has 9adcs. Has some PWM outputs, and digital wideband in.

For $75. I couldn't argue with that.
OK, for some reason I thought you needed to buy a $400 microsquirt board to use it. A cheap clone arduino & can shield is probably $20-30.

--Ian
codrus is offline   Reply With Quote
Old 11-22-2015, 02:30 PM   #20
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 17,967
Total Cats: 1,447
Default

It's standalone, hooks up to ms3.

The wideband interface is what sold me.
aidandj is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Project Gemini - Turbo Civic on the Cheap Full_Tilt_Boogie Build Threads 57 07-19-2017 05:11 PM
Buzzing from driver side of engine bay? (MS3 install) nick470 MEGAsquirt 7 06-16-2017 02:53 PM
WTB MP62 (Hotside) (NB2) Rick02R WTB 3 01-03-2016 08:18 PM
Bizarre connection issue? nick470 MEGAsquirt 1 09-30-2015 11:32 PM
WTB HPDE miata - Texas Voltwings Cars for sale/trade 0 09-27-2015 07:40 PM


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 03:30 PM.