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


  • Similar Content

  • Latest Posts

    • From there, it is really just test and assemble. Plug the adapter cables from the unit into the back of the screen, then the other side to the car harness. Don't forget all the other plugs too! Run the cables behind the unit and screw it back into place (4 screws) and you should now have 3 cables to run from the top screen to the android unit. I ran them along the DS of the other AV units in the gap between their backets and the console, and used some corrugated tubing on the sharp edges of the bracket so the wires were safe. Plug the centre console and lower screen in temporarily and turn the car to ACC, the AV should fire up as normal. Hold the back button for 3 sec and Android should appear on the top screen. You need to set the input to Aux for audio (more on that later). I put the unit under the AC duct in the centre console, with the wifi antenna on top of the AC duct near the shifter, the bluetooth antenna on the AC duct under the centre console The GPS unit on top of the DS to AC duct; they all seem to work OK there are are out of the way. Neat cable routing is a pain. For the drive recorder I mounted it near the rear view mirror and run the cable in the headlining, across the a pillar and then down the inside of the a pillar seal to the DS lower dash. From there it goes across and to one USB input for the unit. The second USB input is attached to the ECUtec OBD dongle and the 3rd goes to the USB bulkhead connected I added in the centre console. This is how the centre console looks "tidied" up Note I didn't install the provided speaker, didn't use the 2.5mm IPod in line or the piggyback loom for the Ipod or change any DIP switches; they seem to only be required if you need to use the Ipod input rather than the AUX input. That's it, install done, I'll follow up with a separate post on how the unit works, but in summary it retains all factory functions and inputs (so I still use my phone to the car for calls), reverse still works like factory etc.
    • Place the new daughterboard in the case and mount it using the 3 small black rivets provided, and reconnect the 3 factory ribbon cables to the new board Then, use the 3 piggyback cables from the daughterboard into the factory board on top (there are stand offs in the case to keep them apart. and remember to reconnect the antenna and rear cover fan wires. 1 screw to hold the motherboard in place. Before closing the case, make a hole in the sticker covering a hole in the case and run the cable for the android unit into the plug there. The video forgot this step, so did I, so will you probably. Then redo the 4 screws on back, 2 each top and bottom, 3 each side and put the 2 brackets back on.....all ready to go and not that tricky really.      
    • Onto the android unit. You need to remove the top screen because there is a daughterboard to put inside the case. Each side vent pops out from clips; start at the bottom and carefully remove upwards (use a trim remover tool to avoid breaking anything). Then the lower screen and controls come out, 4 screws, a couple of clips (including 3 flimsy ones at the top) and 3 plugs on the rear. Then the upper screen, 4 screws and a bunch of plugs and she is out. From there, remove the mounting brackets (2 screws each), 4 screws on the rear, 2 screws top and bottom and 3 screws holding in the small plates on each side. When you remove the back cover (tight fit), watch out for the power cable for the fan, I removed it so I could put the back aside. The mainboard is held in by 1 screw in the middle, 1 aerial at the top and 3 ribbon cables. If you've ever done any laptop stuff the ribbon cables are OK to work with, just pop up the retainer and they slide out. If you are not familiar just grab a 12 year old from an iphone factory, they will know how it works The case should now look like this:
    • Switching the console was tricky. First there were 6 screws to remove, and also the little adapter loom and its screws had to come out. Also don't forget to remove the 2 screws holding the central locking receiver. Then there are 4 clips on either side....these were very tight in this case and needed careful persuading with a long flat screw driver....some force required but not enough to break them...this was probably the fiddliest part of the whole job. In my case I needed both the wiring loom and the central locking receiver module to swap across to the new one. That was it for the console, so "assembly is the reverse of disassembly"
    • But first....while I was there, I also swapped across the centre console box for the other style where the AV inputs don't intrude into the (very limited !) space.  Part# was 96926-4GA0A, 284H3-4GA0B, 284H3-4GA0A. (I've already swapped the top 12v socket for a USB bulkhead in this pic, it fit the hole without modification:) Comparison of the 2: Basically to do the console you need to remove the DS and PS side console trim (they slide up and back, held in by clips only) Then remove the back half of the console top trim with the cupholders, pops up, all clips again but be careful at the front as it is pretty flimsy. Then slide the shifter boot down, remove the spring clip, loose it forever somewhere in the car the pull the shift knob off. Remove the tiny plastic piece on DS near "P" and use something thin and long (most screwdrivers won't fit) to push down the interlock and put the shifter down in D for space. There is one screw at the front, then the shifter surround and ashtray lift up. There are 3 or 4 plugs underneath and it is off. Next is the rear cover of the centre console; you need to open the console lid, pop off the trim covering the lid hinge and undo the 2rd screw from the driver's side (the rest all need to come out later so you can do them all now and remove the lid) Then the rear cover unclips (6 clips), start at the top with a trim tool pulling backwards. Once it is off there are 2 screws facing rearwards to remove (need a short phillips for these) and you are done with the rear of the console. There are 4 plugs at the A/V box to unclip Then there are 2 screws at the front of the console, and 2 clips (pull up and back) and the console will come out.
×
×
  • Create New...