Jump to content
SAU Community

Recommended Posts

Hi all, looking for suggestions,

I'm hooking into my Links G4 can bus with a home brew module consisting of a PIC micro controller + CAN controller / transceiver that will give me up to 8 x 0-5V analog outputs and a few digital in / outs. Sum total of parts $15. (Programming and development..... lots of hours, but my time is free)

I have tested a VDO oil pressure gauge and I can successfully mimic the operation of the sender via PWM and 1st order filtering to a transistor that provides the current sink for the gauges sense terminal. 

It's not an elegant solution but it works. What I am looking for is a gauge that takes 0-5V and is available in a range of common display types like oil / water temp, oil press etc.

I've been googling around, but nothing is coming up? I have seen dedicated canbus gauges but they are so overpriced and I am not sure if the Link CANBUS operates to a particular automotive standard for its peripherals that I already have hanging off the bus so they may not work.

Any suggestions for 0-5V or something similar?

Edited by hjtrbo
Link to comment
https://www.sau.com.au/forums/topic/474968-diy-canbus-gauge/
Share on other sites

modern "three wire" oil pressure transducers are often 0-5v (0.5 to 4.5). so a guage designed for that could work for you.

iirc on a 32 the factory nissan boost gauge is 0-5v as is the ATTESA front torque gauge.

if you can build the gauge from scratch  then switec low current stepper motors are popular for this sort of thing and can often be driven directly from the mcu (used on GM cars).

I built a can guage to work with my link g4+ a couple of years back and used a 1.5" oled display rather than analogue gauges.

On 9/19/2018 at 3:28 PM, alexj said:

switec low current stepper motor

OK, good advice.

I pulled apart my VDO moving coil gauge. Looks ripe for one of those steppers.

Let me play and i'll update the thread in due course.

20180920_140339.thumb.jpg.2d52fa51ac6d67296678008ff6fcc082.jpg

20180920_140433.thumb.jpg.d3bd587e70e15076f0b3a96f8aac3b6e.jpg

 

 

Edited by hjtrbo
  • Like 1
  • 2 weeks later...

OK, good progress.

Data is getting sucked out of the Link and the stepper motor moves. Just got to link the two together in software with a bit of scaling and position tracking, add a bit of glue in the back of the gauge, press on the needle, and she's done! DIY can bus gauge, best $30 (so far) ever spent.

https://au.rs-online.com/web/p/microcontrollers/8802680/

https://www.ebay.com.au/itm/MCP2515-CAN-Bus-Module-TJA1050-Receiver-SPI-Module/302496093646?hash=item466e2c15ce

https://core-electronics.com.au/automotive-gauge-stepper-motor-x27-168.html

20181005_123330.thumb.jpg.5c622251c3a316856fc55b3e1c3b2cf1.jpg20181005_123445.thumb.jpg.bfe2721a665fa1c7a36c1f4e650057c2.jpg

20181005_122352.thumb.jpg.5ffbc4cb8f4ac507e2b9e7e660ab7ccd.jpg20180930_162012.thumb.jpg.0478a87f10a36a8060431a3d05e8611b.jpg

  • Like 2
  • 3 weeks later...
  • 3 weeks later...

You don't need extra senders etc on the engine for multiple gauges. Just pull the data out of the ECU. Saves a few hundred dollars and it's fun to learn about something new. 

My boards have arrived from China. Will be soldering them shortly. Will post pics and you can pm me if you want to buy one.

  • Like 1

Ok, got the first board soldered up. The canbus module (blue board) then piggy backs onto the board. Still waiting for the mounting standoffs to arrive.

The 4 way terminals are for 2 x stepper motors (2 gauges are supported per board) & 2 x current sinking optically isolated general purpose IO (e.g square drive for RPM or speedo, ECU fault light, shift light etc etc.)

The 2 way terminal is 12V in, and the 3 way terminal is for programming the PIC microchip. There is a jumper to select between run and program modes.

There is a 5V on board regulator with high frequency bypass pass caps for the IC's and large 2 x 470uF decoupling capacitors to help provide a solid power supply to the board. Reverse polarity protection is by the simple inline diode method. 

Still got to get the gauges assembled then hook it all up for a decent test.

20181124_131006.thumb.jpg.dc0afc6d829c7d736eff678a49a1e61e.jpg20181124_131015.thumb.jpg.645b85e7b399833cd498d8bc6844012e.jpg20181124_131030.thumb.jpg.b2352275e1f7411d11c80cea7c091170.jpg
 

  • Like 2
  • 2 weeks later...

Nice work...I've been trying to come up with a similar solution for my bus. I plan on using VDO style senders to an Arduino and then digital potentiometers on the output of the Arduino to make the gauges on the original dash work.

I'm going to give your little project a go though...I've got 3 Empty gauge holes that need filling in my Supra and those can-bus ones are really parking expensive!

Incase you're curious, the arduino project of mine can be found here:

https://github.com/hotswapster/bedford330

It will also have stuff you can use on other vehicles swell.

Progress is going well, but I wanted to update the thread with some learnings that I would employ in hindsight...

  • For 12V reg use LM2940 (thanks to alexj for suggestion)
  • No need to remove the air core meter and muck around replacing it with a stepper.
    • Consider this method: Instead, cut the resistors off the internal meter terminals, then bring the 4 terminals outside of the gauge body. Then wire them to a CS8190 Precision Air-Core Tach/Speedo Driver with Return to Zero IC.

Hope this helps others on their google knowledge surf.

 

Edited by hjtrbo
  • Like 1
  • 2 months later...

I redesigned the board to allow for 3 stepper motors, additional IO and changed the colour to match the MCP module off ebay. I used a spare PIC to act as the can bus master to simulate random data. 

This setup is for a Link ECU. I doubt it would take much (if any) modification of the source code to make compatible with Motec. The terminal blocks to the right of the board are provision for switches, shift light, warning light etc etc.

All working now. Car is still getting built so will be a while before they are installed into the dash. 

A short video of them working...

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...