LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

voltage to temperature conversion

hi,

I am beginner in Lab view environment ,currently i am working on real time temperature monitoring project, in which   i am accessing the data through Arduino board . the output of the Arduino  is 0-5 volts.

i want to convert the same temperature in Celsius .(0-100'C) . please guide.

 

0 Kudos
Message 1 of 7
(2,690 Views)

Well we are goin to need a lot more information. 

  1. What sensor are you using?
    1. Thermistor?
    2. Solid State Temperature sensor?
  2. What programming method are you using? I know I know you are using LabVIEW but there are two ways you can use an Arduino with LabVIEW.
    1. Program the Arduino in it's native language and using LabVIEW to communicate with it just like any other instrument on a serial port.
    2. Use the LabVIEW LINX toolkit that basically converts LabVIEW to Arduino code. Allowing you to program the Arduino using LabVIEW.

 

But in general a solid state temperature will be simpler to use because a sensor will have a mV/Degree output scaling. You read that voltage using one of the Analog inputs on the Arduino and convert it to temperature using the scaling factor.

 

Thermistors are similar but require a little more math to scale the Resistance to Degrees.

 

There are lots and lots of examples for temperature measuring with an Arduino. 

 

 

 

But there are lots and lots of examples

========================
=== Engineer Ambiguously ===
========================
Message 2 of 7
(2,663 Views)

Hi sanvish,

 


@sanvish wrote:

the output of the Arduino  is 0-5 volts.

i want to convert the same temperature in Celsius .(0-100'C) . please guide.


The general suggestion is:

  1. Read the datasheet of your sensor.
  2. Apply the conversion formula given in that datasheet!

Most often a simple formula (linear scaling, or maybe 2nd or 3rd order polynom) can be used. Sometimes a lookup table (with linear interpolation between lookup points) might be accurate enough…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(2,652 Views)

Hi GredW, 

 

Thanks for the reply..

 I am communicating to the aurdino board from a controller the out put is 0-5 v..and the sensor connected to the controller is K type thermocouple 

0 Kudos
Message 4 of 7
(2,615 Views)

Hi RTSLVU,

 

Thanks for the reply..

1. I am communicating to the aurdino board from a controller the out put is 0-5 v..and the sensor connected to the controller is K type thermocouple .

 

2.LABVIEW to arudino through LINX

0 Kudos
Message 5 of 7
(2,614 Views)

@sanvish wrote:

Hi RTSLVU,

 

Thanks for the reply..

1. I am communicating to the aurdino board from a controller the out put is 0-5 v..and the sensor connected to the controller is K type thermocouple .

 

2.LABVIEW to arudino through LINX


  1. Controller? What type of controller? What does it do? 
  2. I am pretty sure there is an example that comes with LINX that shows how to measure temperature by connecting the thermistor directly to the Arduino.

If you have some type of "controller" between the Arduino and the Thermistor, that changes everything and you probably will not be able to use LINX.

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 7
(2,592 Views)

Hi Snavsih,

 


@sanvish wrote:

Hi GredW, 

 

the sensor connected to the controller is K type thermocouple 


Do you think it's a good idea to connect a type K thermocouple directly to an Arduino AI pin?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(2,569 Views)