Teensy-based CANbus gauge (and more)

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

Moderators: jsmcortina, muythaibxr

xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Teensy-based CANbus gauge (and more)

Post by xrattiracer »

Since my project has diverged quite a bit from the original Arduino based one in http://www.msextra.com/forums/viewtopic ... 67&t=52539 I figured it was a good idea to make a separate thread. You can read that thread for some background on the project.
The main differences are that it now uses a Teensy 3.1 instead of an arduino, and it sends data back to the MS as well (currently the data is GPS, accelerometer, and time).
Code is at https://github.com/merkur2k/MSCan_Gauge/tree/teensy which was forked from bittertech's code.
Hardware work in progress:
Image
pit_celica
Master MS/Extra'er
Posts: 682
Joined: Tue Jul 18, 2006 3:12 pm

Re: Teensy-based CANbus gauge (and more)

Post by pit_celica »

On the top right of your breadboard, the PCB with the twisted wires going in it, is it your CAN hardware interface? Did you buy it as is or did you build it?

I'm asking because I'm looking for an alternative on one of my Arduino project instead of the usual CAN shield that is quite bulky for what it is.

Nice project by the way!

Sam
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

yes, that is the CAN interface, but it is just the transceiver portion since the teensy has a controller built in. In other words it will not work (by itself) with an arduino since the arduino needs both a controller and a transceiver.
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

To add a little more, I purchased the CAN transceiver as is.
And in the end, a teensy + can transceiver is actually a lot cheaper than an arduino + can shield. not to mention being physically smaller, and MUCH easier to program.
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

I've got a plan to fit all of this within the space of a standard 2 1/16" gauge housing. Just sent off the oder for a custom PCB that will function as a carrier for all the various modules. The gauge body will be 3d printed.
acab
Experienced MS/Extra'er
Posts: 243
Joined: Tue Aug 21, 2012 5:52 am

Re: Teensy-based CANbus gauge (and more)

Post by acab »

I love you man!

Add 4 EGT sensors please and much custom input\outputs :D!
Zaphod
Master MS/Extra'er
Posts: 390
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Teensy-based CANbus gauge (and more)

Post by Zaphod »

Keep up the good work, there are more than enough customers for sure!
--------------------------------
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
Suprazz
Master MS/Extra'er
Posts: 499
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by Suprazz »

nice project and nice job!
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

custom PCBs arrived, but i found out my pin headers are not compatible with each other so now i am waiting for different ones to arrive. but its enough to have a good guestimate on physical layout, so i can start working on the gauge housing 3d model. its going to end up deeper than i wanted (around 70mm) but i am hoping that will still work with most gauge pods.
As happens with prototypes, i also completely neglected to include a header for the rotary encoder!

Image
dsmcrzy
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by dsmcrzy »

Wow!! Excited to see the progress and final product!
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

ok, final mockup shot:
Image

and to show that it does indeed send stuff back to the ms:
Image

now that i know the final dimensions of everything, i can finish up the housing model and get it printed tomorrow hopefully.
Zaphod
Master MS/Extra'er
Posts: 390
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Teensy-based CANbus gauge (and more)

Post by Zaphod »

So exciting! Nice work!
--------------------------------
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
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

first housing prototype:

Image

Image
Zaphod
Master MS/Extra'er
Posts: 390
Joined: Thu Aug 14, 2008 11:38 pm
Location: Germany

Re: Teensy-based CANbus gauge (and more)

Post by Zaphod »

I can't wait to get my hands on one or two (I guess you can even use two of them with one MS?) of these things!

How do you program what values/sensors you see on the gauge?

Is the long breakout-board extension to the back necessary, or can you keep that a bit shorter?
Thanks!
--------------------------------
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
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

everything for the display is set in code. not hard to change if you know how to code, but otherwise there is no mechanism.
The rear connector will only protrude as fas as necessary to be able to hook up wires in the final version. the housing itself is far deeper than i want it to be though, still trying to figure out how to reduce that. i am not sure that most gauge pods will have the room for 75mm depth...
dsmcrzy
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by dsmcrzy »

Wow that looks great!! I will have to read into the teensey forums and see what I can cook up. I would like to make a built in display sorta like what you did but have it be bigger and able to display more.

Great job though!! And that 3D printer looks like it has pretty good resolution if it's right out of the machine.
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

i am going to eventually dig into doing something with a 5" or 7" touchscreen running on a raspberry pi or similar, with a qt/qml app as a dash.
and yes thats right off the printer.
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

been awhile since i posted but not a whole lot new to report yet. I have a new prototype that has a mounting depth of about 45mm, which makes it nearly the same as most existing gauges. Currently waiting for a new revision of the PCB to arrive from the fab.
Raymond_B
Super MS/Extra'er
Posts: 1394
Joined: Thu Mar 06, 2014 2:17 pm
Location: Texas
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by Raymond_B »

What 3D printer are you using?
1995 Ford Lightning. Dart based 427 Windsor, Novi 2000, full sequential, E-85, etc. MS3X/v3.57
http://www.buildpics.org/
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: Teensy-based CANbus gauge (and more)

Post by xrattiracer »

it is a prusa mendel i2 kit that i got from makergear.
Post Reply