Low cost CAN gauge

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Low cost CAN gauge

Postby xrattiracer » Sun Mar 15, 2015 12:16 pm

Here's one of the reasons I haven't been getting much done on the Teensy CAN gauge; I have been searching for ways to get the cost down and think I have a couple options now.
I went searching for a microcontroller that had not just a CAN controller, but also a built in transceiver, and came up with the NXP LPC11C24. ARM Cortex M0 running at about 50MHz, 32kB of flash and 8kB of memory. This greatly reduces the parts count and cost of interfacing with CAN, since all this needs is the microcontroller and the normal basic power conditioning and such components. Its also nice that there is support in http://mbed.org/ for it (well, kinda, it took some digging to actually get it to work). The small amount of flash is hard to work with so it may not ever be able to do all the functions that the other multi-function gauges we have been working on, but it will have no problem running a single analog (using a small stepper motor) or digital (using the same oled screen as in the other gauge).
It is my goal to have these cost the same or less than a typical autometer mechanical gauge.

Here is a real basic proof of concept running on a development board. The only inputs to it are power, ground, and the two CAN lines from MS (the cable going off to the left is serial for programming/debugging).
Image
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby Zaphod » Sun Mar 15, 2015 11:54 pm

Thanks for your work with all of this.
I think we all greatly appreciate it!
Keep on rocking!
--------------------------------
fun is not a straight line

Image

Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
Zaphod
Experienced MS/Extra'er
 
Posts: 365
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Low cost CAN gauge

Postby richyvrlimited » Mon Mar 16, 2015 7:07 am

Concur!
2003 MX5. Coldside MP62
-
MS3, RTC, & Knock board, Release 1.2. LC-1 Wideband.
richyvrlimited
Master MS/Extra'er
 
Posts: 568
Joined: Mon Jun 26, 2006 1:03 pm
Location: Warrington, NorthWest England

Re: Low cost CAN gauge

Postby morrische » Wed Mar 18, 2015 4:38 am

Great work............. :yeah!: :yeah!: :yeah!:

The times of cables running between gauges and sensors is over!!!!!
morrische
Helpful MS/Extra'er
 
Posts: 121
Joined: Tue Dec 21, 2010 11:49 am

Re: Low cost CAN gauge

Postby xrattiracer » Wed Mar 18, 2015 4:24 pm

I just need to learn to finish one project before starting another. But I love the R & D much more than doing production :lol:
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby nathaninwa » Wed Mar 18, 2015 9:54 pm

Now I like that
Volvo 940, 2jzgte, MS3Pro, 815/692 @ 27psi.
240z, LS3 MS3pro/micro I/O 8.28@173
86 454/4l80e, ms3pro/micro. Tow rig
nathaninwa
Super MS/Extra'er
 
Posts: 2325
Joined: Tue Sep 14, 2004 4:17 pm
Location: Aberdeen, Wa

Re: Low cost CAN gauge

Postby eMTea » Thu Mar 19, 2015 2:35 pm

Looks Great!
-MS3X, (V3 PCB) 1.2 RC 1 firmware. Controlling a light modified Audi 1.8TQ AEB 20v engine with Holset HE221W turbo, 299.4 HP and 400Nm at the hubs in Dynapack.
eMTea
Experienced MS/Extra'er
 
Posts: 340
Joined: Wed Jan 19, 2005 1:52 pm

Re: Low cost CAN gauge

Postby xrattiracer » Sat Mar 21, 2015 6:14 pm

Just ordered the PCB and parts. Comes out to around $15 in parts for the analog version and a little more for the digital version. The PCB will be dual purpose for either kind depending which parts are populated.
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby Zaphod » Sun Mar 22, 2015 12:37 am

Can't wait to see this progress.... Top!
--------------------------------
fun is not a straight line

Image

Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
Zaphod
Experienced MS/Extra'er
 
Posts: 365
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Low cost CAN gauge

Postby xrattiracer » Sun Apr 05, 2015 2:23 pm

So rev 1 of the pcb showed up, and it had some serious flaws that i didnt catch so rev 2 is on its way already ;)

Image

Image

This is with the stepper motor for a mechanical needle type gauge. there are also pads for a connector for the oled screen. Board diameter is 40mm. As you can tell, this is meant to be very compact to make it as versatile as possible.
These are the only two configurations i have really considered, but the possibilities are endless. Anyone else have any ideas on that front? Maybe one with leds in a circle around the edge as a sort of analog gauge, with or without a digital 7 segment readout in the middle. Or even just the 7 segment readout by itself, that would make for a very low cost version. I've also seen a 1.5" 128x128 color oled screen, but that would drive the cost up and would quickly run up against the 32kB flash limit of the chip.
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby Zaphod » Tue Apr 07, 2015 5:57 am

Thanks for the update, can't wait to see this thing finished...
--------------------------------
fun is not a straight line

Image

Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
Zaphod
Experienced MS/Extra'er
 
Posts: 365
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Low cost CAN gauge

Postby wes kiser » Tue Apr 07, 2015 8:24 am

What is the means by which the user configures which CAN channel the gauge is assigned to, and text and what not?

I may buy a few of them to replace my current AFR and boost gauges.
86 Rx-7, swapped to 2.3 ford turbo (BW EFR 6758), ms3/ms3x sequential fuel /waste spark, ls2 coils
88 Tbird 2.3t, Microsquirt Module (PIMP), TFI ignition
wes kiser
Super MS/Extra'er
 
Posts: 1321
Joined: Tue Jan 03, 2006 2:49 pm
Location: Charlotte, NC

Re: Low cost CAN gauge

Postby xrattiracer » Tue Apr 07, 2015 9:51 am

I intend on having a menu system on the serial port with some basic predefined options. beyond that, it will require editing the source code and recompiling.
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby knightrous » Tue Apr 14, 2015 9:52 pm

Very keen to see this finished as I would like to use these as replacement internals for some cheap Auto Meter gauges I have :)
'89 Toyota MR2 AW11 - 1MZFE 3L V6 - Still building the car, DIYPNP ready for it, eventually MS3PRO!
'89 Toyota MR2 AW11 - 16V 4AGZE - MS2 waiting to be installed!
User avatar
knightrous
Experienced MS/Extra'er
 
Posts: 152
Joined: Tue Oct 06, 2009 4:58 pm
Location: NSW, Australia

Re: Low cost CAN gauge

Postby Zaphod » Thu Apr 23, 2015 2:03 am

Any news?
--------------------------------
fun is not a straight line

Image

Sven
http://www.mx-5club-sachsen.de
http://miata.cardomain.com/id/svenmx5
NB-1998-1,6-Garrett T25 HGP Turbo Stage I
Zaphod
Experienced MS/Extra'er
 
Posts: 365
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Low cost CAN gauge

Postby xrattiracer » Thu Apr 23, 2015 7:41 am

no unfortunately. I have rev 2 of the pcb in hand, but will not be able to do any work on it for an indeterminate amount of time due to having to find a new place to live on short notice.
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby Magovit » Mon May 11, 2015 1:20 am

Zaphod wrote:Thanks for your work with all of this.
I think we all greatly appreciate it!
Keep on rocking!


Perfect words Zaphod. +1 here.
335i //M
Magovit
MS/Extra Newbie
 
Posts: 30
Joined: Sun Dec 11, 2005 8:36 am
Location: Sao Marcos - RS

Re: Low cost CAN gauge

Postby walterclark1 » Thu May 14, 2015 2:45 pm

Has anyone found a source for empty gauge housings? I have not. So far I have been able to re-purpose existing gauge housings but it would be nice to just be able to buy inexpensive housings.
A2 VW GTI 9A - MS3/3X
walterclark1
Experienced MS/Extra'er
 
Posts: 291
Joined: Tue Jan 01, 2013 3:37 pm
Location: Dover, MA., USA

Re: Low cost CAN gauge

Postby xrattiracer » Sun May 31, 2015 8:57 pm

I should be continuing work on this in the next couple weeks, I am just now getting situated at my new place.
I have not seen any gauge housings, but I havent really looked since I just plan to 3d print mine. One thing i have looked for and havent found a source for (other than ridiculous prices on ebay) are gauge needles though.
xrattiracer
Experienced MS/Extra'er
 
Posts: 300
Joined: Fri Aug 01, 2008 2:25 pm

Re: Low cost CAN gauge

Postby piledriver » Sun May 31, 2015 11:17 pm

xrattiracer wrote:I should be continuing work on this in the next couple weeks, I am just now getting situated at my new place.
I have not seen any gauge housings, but I havent really looked since I just plan to 3d print mine. One thing i have looked for and havent found a source for (other than ridiculous prices on ebay) are gauge needles though.



Would you be able to set the sweep range etc on stepper version?
I can see folks using something like these being mostly used to ""CANify" old analog gauges, like the factory ones.
..
A) solves the guage and needle supply issue, and
B) Makes it the end users problem..

Where do I send money?
I have a dead clock that could become a tach pretty easily.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
piledriver
Super MS/Extra'er
 
Posts: 1640
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Next

Return to Expansion boards

Who is online

Users browsing this forum: Matt Cramer, Yahoo [Bot] and 2 guests