Converting from resistance to voltage

All sensor specific discussions! Temperature, pressure, steering angle, brake and throttle, etc. Post adaptations of OEM-style sensors, and also your clever DIY hacks and custom designs here too!

Moderators: JeffC, rdoherty, stieg

Post Reply
paulbutcher
Posts: 42
Joined: Sat Dec 20, 2014 1:48 pm
Location: UK
Contact:

Converting from resistance to voltage

Post by paulbutcher »

Forgive what is, I'm sure, a dumb question.

I'm switching to a Bosch oil temperature sensor. The datasheet gives calibration information in ohms:

http://www.bosch-motorsport.de/content/ ... 0EQ3EZ.pdf

But clearly I need to configure my RaceCapture in volts. I'm sure that there's an easy way to convert from one to the other - perhaps someone would be kind enough to enlighten me?

Thanks in advance!
paul.butcher->msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con

BigLobsterDude
Posts: 17
Joined: Sun Dec 27, 2015 12:55 am
Location: Freehold, NJ

Post by BigLobsterDude »

Paul,

No such thing as a dumb question.

Basically you need:
- Ohms Law (voltage = current * resistance) (note: units are volts, amps, ohms respectively),
- Series resistance rule ( Resistance Total = Resistance1 + Resistance2), and
- an understanding of the complete circuit.

Your entire sensor circuit needs to look something like this:

5 volt supply --- pull-up resistor(R1) --- temp sensor(Rsensor) --- ground

Your RCP measures the voltage at the connection between R1 and Rsensor.

So what's a reasonable resistance for R1? Your datasheet suggests 1000 ohm is a reasonable value.

The voltage the RCP measures will be: Rsensor / (R1 + Rsensor) * 5 volts

Assuming R1 is 1000 ohms, than your voltage at a given temperature is:

30 deg (C): volts = 3.2 = 1707 / (1000 +1707) * 5
100 deg (C): volts = 0.8 = 187 / (1000 + 187) * 5


Hope this helps

John Robertson
Schumacher Taxi #189

paulbutcher
Posts: 42
Joined: Sat Dec 20, 2014 1:48 pm
Location: UK
Contact:

Post by paulbutcher »

Thank you! Much appreciated.
paul.butcher->msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con

Post Reply