LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thermistor Readings using LabVIEW and Arduino

Hi, 

 

I am doing measurements on a NTC thermistor to see its unique characteristics. I am using an inAmp (INA122P) for the first time, I read the specs, though I am still trying to fully grasp the theory. 

 

My idea is to use a Wheatstone bridge as the voltage divider, with equal measured resistors (balanced) that corresponds to a known room temperature of a thermistor. Then using an inAmp, calculate the voltage output with a gain that equates to about 5.4 Volts (test gain) using Arduino. Once voltage is converted, use the equation that relates resistance of a thermistor at a given voltage. Finally, use that data to get the temperature using the Stein Hart equation and put that through LabVIEW to see the temperature change realtime!  

 

I would like some hints on a more effecient way of the code itself if possible, I know it is bad.

Also, I am having troubles reading in two strings from Arduino to LabVIEW, i.e. I have "Output A0 = a,b,c..." and "Rtherm = q,w,e..." and my LabVIEW code only reads in the value for A0 pin. My prediction is that, my serial Read is getting confused at which string to use and at the end just goes for the first string. Some hints on a effecient way of writing LabVIEW code would also greatly help. 

 

I have the code I have done thus far along with LabVIEW and further specs of my circuitory:

 

Microcontroller: Arduino Micro 

Resistors: 10k ohms

Thermistor: 10k NTC Thermistor at 25 degree celcius

Battery: 9V

 

(I use "rxxx" to read in values from 0 to 255 from the A0 pin || I am giving 5V to the bridge itself || links to equations: https://www.ametherm.com/thermistor/ntc-thermistors-steinhart-and-hart-equation // https://www.skyeinstruments.com/wp-content/uploads/Steinhart-Hart-Eqn-for-10k-Thermistors.pdf // https://en.wikipedia.org/wiki/Wheatstone_bridge ||

link to inAmp spec: https://www.ti.com/lit/ds/symlink/ina122.pdf?ts=1618263007757&ref_url=https%253A%252F%252Fwww.ti.com... )

 

Edit: Forgot to add LTSpice simulation of the circuit, sorry for the bad design - I tried my best to replicate the circuit!

 

Any advice would be greatly appreciated! 

0 Kudos
Message 1 of 1
(1,514 Views)