Page 1 of 1
Converting from resistance to voltage
Author Message
Converting from resistance to voltage
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:

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?

_________________
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

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

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
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 Page 1 of 1
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou cannot download files in this forum Select a forum Autosport Labs----------------General DiscussionNews and AnnouncementsNew Project Suggestions CAN Devices----------------ShiftX2AnalogX RaceCapture App----------------RaceCapture App Operation and General Q&ARaceCapture App Bug Reporting / Feature Requests CAN bus and OBDII integration----------------CAN mapping discussionOBDII PIDs discussion RaceCapture/Pro | RaceCapture/Apex | PodiumConnect----------------RaceCapture/Pro introductionsRaceCapture/Pro General Q&ASensorsHardware and InstallationLua ScriptingTelemetryBug ReportingFeature Requests RaceCapture/Track----------------RaceCapture/Track IntroductionsRaceCapture/Track OperationRaceCapture/Track InstallationRaceCapture/Track Bug Reporting / Feature Requests Megajolt/E and Megajolt Lite Jr. (MJLJ)----------------Ignition Map LibraryPowered by Megajolt GalleryAssemblyInstallationOperationQ&AFuture UpgradesBug ReportingFixes/Patches/UpdatesHard Rev Limiter