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

    • Even more fun, leave all the ADAS stuff plugged in, but in different locations, hopefully avoid any codes!   And honestly, all these new cars with their weird electronics. Pull all the electronics out Duncan, and just shove an aftermarket ECU and if needed a trans controller in, along with a PDM. Make it run basic but race car styled!
    • To follow up a question from earlier too since I had the front bar off again (fking!) This is what is between the bumper and the drivers side wheel And this is the navigator side, only one thing but its a biggy! So basically....no putting coolers in the wheel arches without a lot of moving other stuff. Assuming I move to properly race prepping this car I'll take that job on and see how the computers respond to removing a whole bunch of ADAS modules
    • So I prepped the car for another track day on Wednesday (will be interesting to see coolant temps post flushing out and the larger reservoir, with a forecast of 3-14 being 20o cooler than last time I took it out). Couple of things to mention; since I am just driving the car and not taking a support vehicle, I took the rear seats out and just loaded the back up Team Trackday style. Look at all that space! To cover off removing the rear seat....it is weird (note the hybrid is probably different because it wouldn't have folding rear seats) Basically, you remove the lower seat base, very similar to a r series but it is a clip that pulls forward to release the base rather than it being bolted down. Easy Then, you need to remove the side section of the rear seat on each side. There is a 14mm head nut at the bottom of the side piece, the it slides upwards off a hook at the top to release; you also need to unhook the seatbelt from the loop at the top. Then the centre piece is weird. You need to release/fold the seats forward with the tab in the boot on each side From there, there are 2,x12mm headed bolts holding the rear of each seat to the folding bracket, under the trim between the rear seat and the boot (4x christmas tree clips there, they suck). The seat is out but you can see where the bolts attach to the bracket
    • As discussed in the previous post, the bushes in the 110 needed replacing. I took this opportunity to replace the castor bushes, the front lower control arm, lower the car and get the alignment dialled in with new tyres. I took it down to Alignment Motorsports on the GC to get this work done and also get more out of the Shockworks as I felt like I wasn't getting the full use out of them.  To cut a very long story short, it ended up being the case the passenger side castor arm wouldn't accept the brand new bush as the sleeve had worn badly enough to the point you could push the new bush in by hand and completely through. Trying a pair of TRD bushes didn't fix the issue either (I had originally gone with Hardrace bushes). We needed to urgently source another castor arm, and thankfully this was sourced and the guys at the shop worked on my car until 7pm on a Saturday to get everything done. The car rides a lot nicer now with the suspension dialled in properly. Lowered the car a little as well to suit the lower profile front tyres, and just bring the car down generally. Eternally thankful for the guys down at the shop to get the car sorted, we both pulled big favours from our contacts to get it done on the Saturday.  Also plugged in the new Stedi foglights into the S15, and even from a quick test in the garage I'm keen to see how they look out on the road. I had some concerns about the length of the LED body and whether it'd fit in the foglight housing but it's fine.  I've got a small window coming up next month where I'll likely get a little paint work done on the 110 to remove the rear wing, add a boot wing and roof wing, get the side skirt fixed up and colour match the little panel on the tail lights so that I can install some badges that I've kept in storage. I'm also tempted to put in a new pair of headlights on the 110.  Until then, here's some more pictures from Easter this year. 
    • I would put a fuel pressure gauge between the filter and the fuel rail, see if it's maintaining good fuel pressure at idle going up to the point when it stalls. Do you see any strange behavior in commanded fuel leading up to the point when it stalls? You might have to start going through the service manual and doing a long list of sensor tests if it's not the fuel system for whatever reason.
×
×
  • Create New...