Measuring Coolant Temp
Moderator: martauto
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
I'm trying to configure my data-logger to read actual coolant temp in degrees, but using the original brown temp sensor in the head.
I understand I need to know what the resistance of the brown sensor is at a given temp, but how do I work out what the temp of the coolant is? I can't just stick a thermometer in the coolant tank.
Any ideas?
I understand I need to know what the resistance of the brown sensor is at a given temp, but how do I work out what the temp of the coolant is? I can't just stick a thermometer in the coolant tank.
Any ideas?
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Trouble is knowing what temp the water is
Most thermometers don't go to 100 degrees.
I'm going to have to rig up a saucepan with the brown temp sensor AND an oil temp sensor in, connected to a gauge, and do it that way. Pics to follow
I'm going to have to rig up a saucepan with the brown temp sensor AND an oil temp sensor in, connected to a gauge, and do it that way. Pics to follow
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Knowing when the sensor is at 100 degrees won't tell me what it reads at 60, 80 or 120 degrees. Considering the dash clocks only cover about 80-90 degrees, I need more points to measure the range.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
Why not take it at a more sensible temperature then?
I don't know how a data-logger works, but surely it needs the difference in resistance for an interval of 1 degree rather than the resistance at an arbitrary temperature?
As long as it's a linear sensor, then taking the temperature at 20 degree and 40 degrees, and dividing the difference by 20 gives you the different in resistance for one degree, and adding (or subtracting) that from a base resistance at a known temperature can give you the resistance at any temperature?
Saves you burning yourself as well.
I don't know how a data-logger works, but surely it needs the difference in resistance for an interval of 1 degree rather than the resistance at an arbitrary temperature?
As long as it's a linear sensor, then taking the temperature at 20 degree and 40 degrees, and dividing the difference by 20 gives you the different in resistance for one degree, and adding (or subtracting) that from a base resistance at a known temperature can give you the resistance at any temperature?
Saves you burning yourself as well.
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
That's the key. Pretty much any thermistor is non-linear, especially automotive ones (considering the temps they work at). Otherwise I'd have done what you said yonks ago.capnmchl wrote: As long as it's a linear sensor...
I've got all the readings for the blue temp sensor, so I'm going to stick them both in a saucepan and watch how their resistances change.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
This was the concept 

I just needed a gauge that read 50-120 rather than 60-170

I just needed a gauge that read 50-120 rather than 60-170
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
daimlerman
- **BANNED**
- Posts: 15968
- Joined: Mon Feb 27, 2006 11:00 pm
- Location: Grumpy Old Man
You either have a very understanding 'er indoors or are hung like a porn star!Grrrmachine wrote:This was the concept
I just needed a gauge that read 50-120 rather than 60-170
I hope that you remove all oily paw marks from the kitchen....
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
I'll let you decide on that onedaimlerman wrote:You either have a very understanding 'er indoors or are hung like a porn star!
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
Try looking for a cooking thermometer rather than a weather one:Grrrmachine wrote:Trouble is knowing what temp the water isMost thermometers don't go to 100 degrees.
http://www.lakeland.co.uk/8776/Preservi ... tAod7SsASw
1982 E21 316 Baltic Blau
1989 318i 2 Door Sterling Silber
Feedback: http://www.e30zone.net/modules.php?name ... highlight=
1989 318i 2 Door Sterling Silber
Feedback: http://www.e30zone.net/modules.php?name ... highlight=
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
It's alright, I'm all sorted now. I had a coolant sensor table that turned out to be for the brown sensor, so that's all coded in now (it's a logarithmic formula) so that I'll have a really accurate temp gauge rather than just "above blue, below red".
At the moment the data logger will look like this:

Just need to code the Tacho, Speedo and oil pressure now
At the moment the data logger will look like this:

Just need to code the Tacho, Speedo and oil pressure now
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
I'm using ms3 and shadow dash connected via blue tooth to ecu so dash is on a 7 inch tablet that has speed gear mpg afr water temp air temp ect its pretty cool, the speed signal is a 5v square wave with 9 pulse per rev if you take it after its been through the spedo custer
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
That speed signal is very useful, thanks for that. How did you get it to detect the gears though?
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
That's sneaky! I like that!
This thing is a programmable unit, so once I've calibrated all my sensors I can do whatever I want with it, as long as I can work out the logic. But I'm using the original Motronic 1.3, so there won't be any actual modification of engine parameters; it'll be a glorified OBC effectively.
Have you got any idea how the econometer/ injector pulse is calculated? I need that for fuel rate/mpg calculations.
This thing is a programmable unit, so once I've calibrated all my sensors I can do whatever I want with it, as long as I can work out the logic. But I'm using the original Motronic 1.3, so there won't be any actual modification of engine parameters; it'll be a glorified OBC effectively.
Have you got any idea how the econometer/ injector pulse is calculated? I need that for fuel rate/mpg calculations.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
i connected the fuel flow that would have come out of the stock motronic to one of my injectors switched earth from megasquirt im fully sequential so that would be 1 injection event per engine cycle 720 deg crank rotation, motronic is batch fire injection im assuming that it fires the both banks alternating eg 1,3,5 bank one then 2,4,6 bank 2 360 deg late, i believe its connected to one of the banks so still gives 1 injection event per cycle. my econometer agrees with what i get on the computer from the ecu within 2mpg.
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
It's not anything. The input/outboard board is called a Fusion Brain; it's got 15 analogue inputs and 31 digital outputs. I'm using the software that comes with it, which is based on C# in a .NET environment. I've got it running on a Windows laptop, and you can see the built-in screen in the link in my signature.
I need to build a few frequency-to-voltage converters to get some readings off speedo and tacho, then I'll examine the fuel rate. I've just tapped into the wires coming out of the cluster, so there's no interfering with the ECU.
I need to build a few frequency-to-voltage converters to get some readings off speedo and tacho, then I'll examine the fuel rate. I've just tapped into the wires coming out of the cluster, so there's no interfering with the ECU.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Demlotcrew
- E30 Zone Team Member

- Posts: 13329
- Joined: Mon Dec 20, 2004 11:00 pm
- Location: East Anglia
Im pretty sure the OBC calculates MPG from injector duty cycles?
-
Demlotcrew
- E30 Zone Team Member

- Posts: 13329
- Joined: Mon Dec 20, 2004 11:00 pm
- Location: East Anglia
I would have to dig through all my documents, Just cant remember 
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Completely depends how you write the code, but yes, it all depends on input voltage. This one works on 0-3.3V with 1024 bits resolution, so you can just write "input > 0 = ON" as a basic idea. Because it's 3.3V I have to use a load of voltage dividers to bring all the signals in line, but that's no big drama.
Andy, knowing how the OBC calculates MPG would be useful, cos at the moment I'm using the econometer signal rather than the injectors themselves so I have no idea what the ECU is outputting there.
Andy, knowing how the OBC calculates MPG would be useful, cos at the moment I'm using the econometer signal rather than the injectors themselves so I have no idea what the ECU is outputting there.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
- Brianmoooore
- E30 Zone Team Member

- Posts: 49358
- Joined: Mon Jan 10, 2005 11:00 pm
OBC uses the pulse width and frequency of the injector feeds to calculate fuel used, then divides this by the road speed signal from the yellow (also available at the green) socket on the instrument cluster.
Will you be doing anything with fuel level? Was playing with my obc today and realised it has how many liters are in tank, I would assume this it fed down from the clocks to the obc? Anyone have any info on this I assume it varies the resistance according to the fuel level?
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Depending on which tank you have, resistance runs from 60 Ohms (55L) or 120 Ohms (63L) down to 0 Ohms.
It's a linear drop so there's no fancy formula to it. Again, I took a wire from the back of the clocks.
If you want to tap into the instrument wires, it's these ones:
Speedo- pin 26 of the yellow connector, or pin 1 of the green connector (brown/red of yellow plug to obc green plug)
fuel level- pin4 white plug (BR/GN) or pin 6 yellow plug (BR/GN) to pin 16 OBC
coolant temp- pin26 blue plug (BR/VI)
Tacho - pin7 blue plug (BK)
fuel rate - pin31 blue plug (YL/WT) or pin25 yellow plug (WT/BU)
Outside air temp - Pin 2 green plug on OBC (BU)
If you're using BMW's wiring diagrams, then:
blue plug - C1
white plug - C2
yellow plug - C3
It's a linear drop so there's no fancy formula to it. Again, I took a wire from the back of the clocks.
If you want to tap into the instrument wires, it's these ones:
Speedo- pin 26 of the yellow connector, or pin 1 of the green connector (brown/red of yellow plug to obc green plug)
fuel level- pin4 white plug (BR/GN) or pin 6 yellow plug (BR/GN) to pin 16 OBC
coolant temp- pin26 blue plug (BR/VI)
Tacho - pin7 blue plug (BK)
fuel rate - pin31 blue plug (YL/WT) or pin25 yellow plug (WT/BU)
Outside air temp - Pin 2 green plug on OBC (BU)
If you're using BMW's wiring diagrams, then:
blue plug - C1
white plug - C2
yellow plug - C3
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Got a problem
As soon as I plug in the wire coming from the Tacho, both the tacho gauge and econometer go dead. I've used pin 7 from the blue plug, going into a frequency-to-voltage converter. I guess the gauges don't like it.
Any ideas?
As soon as I plug in the wire coming from the Tacho, both the tacho gauge and econometer go dead. I've used pin 7 from the blue plug, going into a frequency-to-voltage converter. I guess the gauges don't like it.
Any ideas?
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
- Brianmoooore
- E30 Zone Team Member

- Posts: 49358
- Joined: Mon Jan 10, 2005 11:00 pm
Use a transistor in an emitter follower arrangement as a buffer, or even simpler, just try including a resistor in the wire.
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
Thanks Brian, a simple 1k resistor sorted that out. I've also got volts coming through from the econometer now, but I need to run some live tests to make sure they're related to the movement of the eco needle.
I now need to sort out the speedo, but I'm not getting a signal out of the yellow plug, so I'll have to tap into the green one that feeds the cruise control... which has never worked. Hmmm.
I now need to sort out the speedo, but I'm not getting a signal out of the yellow plug, so I'll have to tap into the green one that feeds the cruise control... which has never worked. Hmmm.
'89 325i Touring | Touring Resto Thread | In-Dash Screen install
-
Grrrmachine
- E30 Zone Wiki / Team Member

- Posts: 8043
- Joined: Sat Feb 09, 2008 11:00 pm
- Location: Warsaw, Poland
You win some, you lose some.
I got my calculations wrong for the coolant and oil temp, so I'll have to start again on that one. I've managed to access the Tacho now, and that's sending out a steady linear signal too. Fuel gauge is accurate, and I've got raw voltages for the oil pressure and fuel rate that I can decipher later.
But I'm having a real problem with the speedo. Absolutely nothing coming out that I can detect with my frequency-to-voltage converters, and I don't have access to an oscilloscope. The speedo on the cluster works, and I'm getting continuity between the OBC plug pin (yellow plug on the cluster) and the green plug that feeds the cruise control, but no signal to my data logger.
As grom said, it should be chucking out a square wave - any idea what basic tools I can measure that with aside from an oscilloscope?
I got my calculations wrong for the coolant and oil temp, so I'll have to start again on that one. I've managed to access the Tacho now, and that's sending out a steady linear signal too. Fuel gauge is accurate, and I've got raw voltages for the oil pressure and fuel rate that I can decipher later.
But I'm having a real problem with the speedo. Absolutely nothing coming out that I can detect with my frequency-to-voltage converters, and I don't have access to an oscilloscope. The speedo on the cluster works, and I'm getting continuity between the OBC plug pin (yellow plug on the cluster) and the green plug that feeds the cruise control, but no signal to my data logger.
As grom said, it should be chucking out a square wave - any idea what basic tools I can measure that with aside from an oscilloscope?
'89 325i Touring | Touring Resto Thread | In-Dash Screen install




