Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   Megasquirt Dash Insert Gauge (https://www.miataturbo.net/megasquirt-18/megasquirt-dash-insert-gauge-96229/)

muthagoose 02-28-2018 10:18 AM

Megasquirt Dash Insert Gauge
 
Hey all,

Running MS PNP Pro on my 01, I have a full set of gauges in the center console (innovate) boost/rpm, flex %/temp, Wideband, and I just bought a Oil temp/pressure gauge.

My original thought was to replace the stock dummy oil gauge, but this just isnt happening with the innovate and the size it is. I am going to throw the Oil gauge into one of the eyeballs.

This leaves me with the stock oil gauge in the cluster, anyone have some good ideas for a small compact <2" gauge that can read some MS sensors like water/air temp etc that i can replace this with?

matrussell122 02-28-2018 10:47 AM

https://www.diyautotune.com/product/...2-microsquirt/


And thread

muthagoose 02-28-2018 10:53 AM

nice, any other options out there that arent 275$

Ive also thought about replacing the gauge with a blanking plate with some Dummy LED indicators for warning lights.

matrussell122 02-28-2018 10:57 AM

What is you end goal in all this? What do you want to monitor? What is the primary use of the car?

acedeuce802 02-28-2018 11:28 AM

Warning lights would be good. You could also DIY a CAN gauge.

Megasquirt CAN Based Display Part 1 - Buildpics.org

A bit of a learning curve, but I followed this guide and got CAN data reading with no prior Arduino/coding experience.

The DIYAutotune gauge will not fit in or on top of the stock oil pressure gauge, unless you want to cover a significant portion of the tach and speedo.

There's also this: https://www.miataturbo.net/megasquir...cluster-91370/

muthagoose 02-28-2018 11:37 AM


Originally Posted by matrussell122 (Post 1469212)
What is you end goal in all this? What do you want to monitor? What is the primary use of the car?

The car is a weekend/ nice day toy, along with hopefully some autoX this summer.
Really just want to take out the stock oil gauge since its entirely useless, and doubel useless now that i have a real gauge.

Ive been playing around with ShadowDash on my phone with the EFI bluetooth dongle lately, which spurred the idea of being able to see those simple IAT Temp, Water temp, etc on a guage in place of the stock oil temp gauge.

That Trichecked/canchecked gauge is slick too, but still over 200 euro.

matrussell122 02-28-2018 11:50 AM

you could run a raspberry pi or a nexus 7 and shadow dash

acedeuce802 02-28-2018 11:59 AM


Originally Posted by matrussell122 (Post 1469219)
you could run a raspberry pi or a nexus 7 and shadow dash

This is a great option for an auxiliary gauge, but not really for cluster replacement since you can't have a laptop connected at the same time.

I'll have to take some measurements tonight, I have my cluster disassembled right now. That DIY CAN gauge I posted above can use a 2.4" screen, which may fit behind where the stock oil pressure gauge mounts. That would be about a $50 option.

Lokiel 02-28-2018 06:41 PM

I've been through this and came up with my own solution using 2x OLEDs and an Arduino that interfaces the MS3 via its CANbus - this allowed me to add additional sensor/digital inputs to the MS3.

Originally I used a Raspberry Pi for this but the boot time really annoyed me (much like how my Android head unit's boot time annoys me).
The Arduino+OLED display is almost instantaneous.

I replaced the left and right gauges in the OEM cluster with OLEDs that display either 3 or 4 different sensor values, controllable via a pushbutton.

https://s19.postimg.org/bla88mrsz/In...pspinmqlyx.jpg

Pushbutton control of OLEDs - cycles between 3-line display, 4-line display, peaks (holding for >2 seconds resets peak values):
https://s19.postimg.org/uubwce1c3/Pu...pset13sugx.jpg
https://s19.postimg.org/hjsmwm05f/Pe...psmivu48yb.jpg
https://s19.postimg.org/i432lk403/Le...pshj9alfht.jpg
https://s19.postimg.org/vax3ytp37/Ri...psi3tsrufp.jpg

Original Arduino UNO+CANshield+AdditionalCustomShield implementation:
https://s19.postimg.org/or3m0zqv7/01_UNO_v2.jpg

That was too complex/fiddly so I designed a 4-layer PCB using a Teensy 3.2 (most of the traces are on the underside of the board).
I can now get rid of the MSLabs Wideband O2 module too since the PCB/Teensy3.2 handles that too (converts serial O2 data to lambda which is sent to MS3 via the CANbus).
Serial GPS input is via 4 input pins so that any GPS serial input can be used (will require custom code for some GPS modules) and I also added an on-board accelerometer:
https://s19.postimg.org/tusquqagz/19..._Assembled.jpg

Originally I planned to power the box from the MS3's 5V source but was concerned that it may draw too much current.
The MS3 was designed for 500mA and I was concerned that my unit would draw too much current so I made an additional board to hold the DC-DC buck converter (converts 7-25V to stable 5V) and mount the GPS module to - this GPS module has an external antenna so I can mount this board anywhere and the antenna where it needs to be for decent reception.
https://s19.postimg.org/xfk101xar/24..._And_Power.jpg

Load testing (all I/O connected): 1xGPS, 1xCAN, 1xInnovateWidebandO2,1xOLED(supports 2 OLEDs),4xTemperature sensors,2xPressure sensors,3xDigital switches (1 for control of OLEDs, 1x Fuel Level input.
An Arduino UNO was used to Tx/Rx CAN messages for the test:
https://s19.postimg.org/6wgsu9rjn/30_Fully_Loaded.jpg
https://s19.postimg.org/o9r393zpf/31_Fully_Loaded.jpg
Maximum current draw spiked at 0.15mA but I couldn't snap a photo of this, it was too quick.
Current draw hovered between 0.13mA and 0.14mA.
Connecting the external antenna will probably bump this a tad too so it looks like it would be safer NOT to use the MS3 as a 5V power source (0.15mA is 30% of the 500mA that the MS3 was designed for).

The OLEDs are mounted on a backplate mounted to the original gauges (with their needles removed) since this provided an easy way to mount them solidly:
https://s19.postimg.org/5ta41hhz7/Bo...psszuozmo8.jpg
My next project is to 3D print some custom housings for the OLEDs so that they can simply slot into the cluster.

psyber_0ptix 03-02-2018 08:33 AM

That's amazing Lokiel. I've been thinking about trying to learn about arduino and pi to add sensor inputs to megasquirt primarily for muktiplm vss and pressure /temp sensors but you blew it out of the park.

gooflophaze 03-02-2018 03:57 PM

https://www.miataturbo.net/megasquir...s-gauge-76481/

Alas, I'm about 5 years too early.


lokiel - ssd1306's?

Lokiel 03-02-2018 07:22 PM


Originally Posted by gooflophaze (Post 1469671)
:
lokiel - ssd1306's?

Correct driver.

Google "ebay 128x64 oled 1.3" to find the ones I used (1.3" display 4-pin version only).

If you just Google ""ebay 128x64 oled " you'll get a lot of 0.96" displays - you don't want them, they're too hard to read while driving.

gooflophaze 03-02-2018 09:48 PM

Those are the same ones I used. U8glib? I was going to rewrite mine since u8glib is much nicer and doesn't framebuffer the entire screen - losing 1.5k of ram in a 2k microcontroller makes doing neat stuff really annoying. Though I'm thinking of ditching the 328 completely and going with a teensy, even though making neat stuff work at 3.3v is a little more annoying..

Lokiel 03-03-2018 02:23 AM

I'm using U8g2lib.

The Teensy3.2 and 3.5 support 5V analog inputs which is what you need for automotive sensors (they typically operate with 5V).

Initially I was using an Arduino DUE because it had plenty of grunt and memory but only tolerated 3.3v I/O which meant voltage levellers were needed for every signal - that means you need more hardware/components so I switched to the Teensy3.2.

Don't try to do too much with an UNO, you'll run out of memory - my Arduino UNO test unit, which just sends and receives+displays CAN data for my PCB, is almost maxed out.

It's pretty amazing what you can DIY these days thanks to the internet for information and access to hardware.

gooflophaze 03-03-2018 03:54 AM

One of the advantages of u8glib was partial rendering of the frame buffer - so you could knock the frame buffer size pretty handily at the cost of speed / refresh rate of the gauge.

I thought the teensy's were 5v tolerant but not 5v scaling? Anything above 3.3v would be 1024? Has that changed since the last time I played with one?

Lokiel 03-03-2018 09:46 PM


Originally Posted by gooflophaze (Post 1469738)
:
I thought the teensy's were 5v tolerant but not 5v scaling? Anything above 3.3v would be 1024? Has that changed since the last time I played with one?

Just double-checked this, you're correct with the scaling, anything over 5V gets scaled to ADC=1023 (explains why some of my gauges seemed to "top-out" too early; those that didn't obviously never exceeded 3.3V).
I'm going to need to add this for those 5V input sigmalss:8bit LLC (5v->3.3v) and will add it to the PCB.

Lokiel 03-04-2018 02:27 AM

... looks like I'll actually need 2x "ADS1015 12-Bit ADC - 4 Channel with Programmable Gain Amplifier"s instead for analog inputs

gooflophaze 03-04-2018 09:30 AM

Could also use a voltage divider (say 1/2) then scale your read to 2.5v - you'll lose some resolution but 512 will get the job done. Wonder if there's an i2c with a builtin optoisolator out there..

Lokiel 03-22-2018 07:21 AM

Fixed:
https://cimg9.ibsrv.net/gimg/www.mia...093282f1fe.jpg
New board on right re-designed to use MCP3008 chip.

5V Analog inputs now go to MCP3008 chip which are output to the Teensy 3.2 via SPI.
Capacitors added for each of the 5V analog inputs (I'm only using 7 of the 8 available - no connector pins available for the unused analog input anyway).
Temperature trim-pot pull-ups replaced with 2,490ohm resistors.
The Accelerometer daughterboard is a 3.3V board so can use the Teensy's analog inputs correctly for the X,Y and Z inputs.

acedeuce802 03-22-2018 09:48 AM

What made you choose the SPI chip over the ADS1015?


All times are GMT -4. The time now is 02:49 AM.


© 2024 MH Sub I, LLC dba Internet Brands