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

mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Teensy-based CANbus gauge (and more)

Post by mickeymarrows »

93white3400z wrote:SPI0 was renamed to KINETISL_SPI0 in newer version of teensyduino. The rest looks like warnings (easy to fix too).
Thanks for the reply :)
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
Spit4ag
Helpful MS/Extra'er
Posts: 52
Joined: Sun Feb 08, 2015 9:35 pm

Re: Teensy-based CANbus gauge (and more)

Post by Spit4ag »

Soon I am going to try building one of these for my spitfire. I placed the order for the board from OSHpark and ordered everything except the GPS, Accelerometer, and 4k resistor. I do not plan on using the headlight sense atleast at first, and I don't need the gps or accelerometer.

This seems like a really good way to be able to keep an eye on certain functions without having a laptop or tablet hooked up all the time. I'll post pictures and results once I have everything in my hands.
preston_brown
MS/Extra Newbie
Posts: 8
Joined: Thu Aug 02, 2012 4:17 pm

Re: Teensy-based CANbus gauge (and more)

Post by preston_brown »

Any updates? I'd love to build/use one of these.
jacky4566
Helpful MS/Extra'er
Posts: 112
Joined: Mon Aug 31, 2015 10:05 am

Re: Teensy-based CANbus gauge (and more)

Post by jacky4566 »

Hi xrattiracer,

Have you considered putting in an oil life indicator with your widget?

I was looking to build an oil life indicator myself and came across your project.

With the setup you have, all that is needed is extra coding.
This Thesis paper has all the code done (in MatLab) and an indepth analysis of all the required variables.
https://etda.libraries.psu.edu/paper/9507/5943

Let me know if you integrate it as I am very interested.
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 »

no further updates at this time.
I am spending my available time on the low cost gauge project and more or less consider this one "done", at least as far as i plan on taking it.
matthunter1448
Helpful MS/Extra'er
Posts: 140
Joined: Fri Jun 06, 2008 11:15 pm
Location: Spanaway, Wa

Re: Teensy-based CANbus gauge (and more)

Post by matthunter1448 »

Would u be willing to sell the gauge setup with GPS and such.
zipty842
MS/Extra Newbie
Posts: 12
Joined: Sat Feb 02, 2008 10:55 pm
Location: Tidewater, Or
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by zipty842 »

The faceplate stl is missing from the housing files.

Awesome setup though, I'm getting ready to build a couple of them.
1983 Toyota Celica GT-S MSnS-E
matthunter1448
Helpful MS/Extra'er
Posts: 140
Joined: Fri Jun 06, 2008 11:15 pm
Location: Spanaway, Wa

Re: Teensy-based CANbus gauge (and more)

Post by matthunter1448 »

zipty842 wrote:The faceplate stl is missing from the housing files.

Awesome setup though, I'm getting ready to build a couple of them.
Wanna build me one I'll pay for it
ChristianK
MS/Extra Newbie
Posts: 31
Joined: Sun Aug 24, 2014 4:40 pm

Re: Teensy-based CANbus gauge (and more)

Post by ChristianK »

Hej Guy's,

does anybody run this code at the teensy?
All what I see are config errors all the time.
What is wrong with this code?

https://github.com/merkur2k/MSCan_Gauge/tree/teensy

Thanks for your time!
Golf MK1 Cabrio 1,8T MS2
412Hp at 20psi
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Teensy-based CANbus gauge (and more)

Post by mickeymarrows »

Yeah you get config errors, but the author does admit that the code isn't perfect. The errors don't stop it compiling and working, or at least mine works.(see my post earlier in the thread regarding SP10)

At some point I'll work through the errors and see if I can fix some of them
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
ChristianK
MS/Extra Newbie
Posts: 31
Joined: Sun Aug 24, 2014 4:40 pm

Re: Teensy-based CANbus gauge (and more)

Post by ChristianK »

What compiler are you use?

With the Arduino IDE + Teensy upgrade it doesn't run.
Golf MK1 Cabrio 1,8T MS2
412Hp at 20psi
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Teensy-based CANbus gauge (and more)

Post by mickeymarrows »

I'm also using the Arduino IDE with Teensy drivers..

Have you succesfully loaded any test code into the Teensy?
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
ChristianK
MS/Extra Newbie
Posts: 31
Joined: Sun Aug 24, 2014 4:40 pm

Re: Teensy-based CANbus gauge (and more)

Post by ChristianK »

arg..

Yes, the Test run perfect. I've testet the "blink" and the Voltmeter. Both run without any problem. :?

I don't know, why it doesn't run...

Could it be, that the IDE 1.6.7 make a Problem with this code? Should I take another Version of the IDE?

The 1.6.5 doesn't run with my WIN7 and my Arduino Nano. The 1.6.7 does!
Golf MK1 Cabrio 1,8T MS2
412Hp at 20psi
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Teensy-based CANbus gauge (and more)

Post by mickeymarrows »

Well I'm currently using a version of the code that I modified so that it works as a GPS speedo, I recently compiled and loaded that onto the teensy using 1.6.7
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
ChristianK
MS/Extra Newbie
Posts: 31
Joined: Sun Aug 24, 2014 4:40 pm

Re: Teensy-based CANbus gauge (and more)

Post by ChristianK »

So, we have fixed this thing! :mrgreen:

Ok, "Alfagta" has fix it.

We use Teamviewer. On Win7 it doesn't run! No chance. How ever.

After a change to Linux mint the code run after a few minutes.

Thanks for your infos.
Last edited by ChristianK on Wed Jan 06, 2016 4:44 pm, edited 2 times in total.
Golf MK1 Cabrio 1,8T MS2
412Hp at 20psi
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 »

sorry about the bad housing stl file, i will get a new one up soon.
Raymond_B
Super MS/Extra'er
Posts: 1398
Joined: Thu Mar 06, 2014 2:17 pm
Location: Texas
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by Raymond_B »

I am getting errors compiling the code as well. I pulled down all the libraries, I was going to just strip out the basic CAN stuff so I can read it with the Serial Monitor, but first I wanted to make sure I had a clean compile.
1995 Ford Lightning. Dart based 427 Windsor, Novi 2000, full sequential, E-85, etc. MS3X/v3.57
http://www.buildpics.org/
Raymond_B
Super MS/Extra'er
Posts: 1398
Joined: Thu Mar 06, 2014 2:17 pm
Location: Texas
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by Raymond_B »

Man, I must have chased everyone off :)
1995 Ford Lightning. Dart based 427 Windsor, Novi 2000, full sequential, E-85, etc. MS3X/v3.57
http://www.buildpics.org/
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Teensy-based CANbus gauge (and more)

Post by mickeymarrows »

Looking at your errors you must be missing a library, I got errors, but not those :)
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
Raymond_B
Super MS/Extra'er
Posts: 1398
Joined: Thu Mar 06, 2014 2:17 pm
Location: Texas
Contact:

Re: Teensy-based CANbus gauge (and more)

Post by Raymond_B »

mickeymarrows wrote:Looking at your errors you must be missing a library, I got errors, but not those :)
Thanks, I'll pull down the libraries from GitHub again.
1995 Ford Lightning. Dart based 427 Windsor, Novi 2000, full sequential, E-85, etc. MS3X/v3.57
http://www.buildpics.org/
Post Reply