Temperature Controller Project using LabVIEW and Arduino

Hi friends, here we are going to build a small engineering project based on LabVIEW and Arduino. In this project we are making Temperature controller using Arduino and LabVIEW. We will operate a cooling fan when the temperature goes above set point.

Before you start this project make sure that you have installed LabVIEW Interface For Arduino (LIFA) on your system. If not follow this article for installing LIFA: How to Interface Arduino with LabVIEW

Components required:

  • Arduino Uno (or Freeduino)
  • 10K ohm resistor
  • Thermistor (Click here to buy)
  • RGB LED (or separate LEDS can also be used)
  • DC fan (5V)

Theory:

In this temperature controller project, we will use thermistor for measuring the temperature of liquid or any other material. We are using three LEDs to indicate temperature range. Red LED is used to indicate the temperature is above set opint. Blue LED will indicate temperature lies between upper and lower set point. Green LED will indicate temperature below set point.

Front Panel of Temperature Controller
Front Panel of Temperature Controller

When the RED LED glows the cooling fan will turned on. Due to cool air (or you can also use cooler water pump with relay circuitry) your object (liquid) will get cooled. When the temperature falls down DC cooling fan will get turned off.

Construction of Temperature Controller Project:

Interfacing thermistor with Arduino
fig 1: Interfacing thermistor with Arduino

 

Temperature controller using LabVIEW and Arduino
fig2: Temperature controller using LabVIEW and Arduino

 

  • Connect thermistor and Resistor with the analog port of Arduino as shown in first image.
  • Now connect three LEDs with positive terminals of each led to pin number 8,9 and 10. Connect negative terminal of LED with common (ground of arduino).
  • Now depends on your application i.e. if you are using small 5V dc fan you can connect it directly with the Arduino (pin number 3 and ground) using motor driver IC L293D (In figure we have connected motor directly but it should be not so. You should use motor driver IC). If you are using 230V AC appliance you need a relay circuit. You can buy it from here.

Download LabVIEW Program: Click Here

You may like these articles:

Hope your Temperature controller project is working fine. If you have any doubts feel free to ask in comments. If you liked this article please share it with your friends and like our facebook page for future projects.

How to Interface Arduino with LabVIEW

Hi friends, here we will see how to interface arduino (or freeduino) with LabVIEW. In this post a step by step tutorial is given on LabVIEW Interface For Arduino (i.e. LIFA). Follow the steps in given order and configure your LabVIEW to make it comaptible with Arduino or Freeduino.

LabVIEW Interface For Arduino:

Step 1: Download LabVIEW Interface For Arduino (LIFA) 

Step 2: Don’t install LIFA directly. If you install LIFA directly you will get an error like

"VIPM could not continue. Please fix the error and try again.
VIPM could not connect to Labview 2013. VIPM requires LabVIEW access as a part of the current task execution in progress.
please verify the VI SERVER : Exported VIs and Machine access settings in LabVIEW 2013...... "

Complete the following steps to enable VI server access

Step 3: Open LabVIEW go to Tools > Options > VI Server

LabVIEW Settings for Arduino 005

 

Configuring VI Servers in LabVIEW 006

 

Step 4: After clicking on VI Server scroll down to check Machine Access. Here you have to add machine access list manually. So make sure that you have added “10.211.55.13”, “localhost”, “*” in the Machine access list as shown in above image. Then click on OK.

Step 5: Now open downloaded VI Package Manager.

Step 6: Search for LabVIEW Interface For Arduino and double click on it to install it.

LabVIEW Interface For Arduino LIFA

 

LabVIEW Interface for Arduino 002

 

Step 7: Click on continue and after installation complete click on finish.

LabVIEW Interface for Arduino 003

 

LabVIEW Interface for Arduino 004

 

Now you are ready to connect arduino with LabVIEW. In the next post we will see how to connect Arduino with LabVIEW practically and we will do a simple project using Arduino and LabVIEW.

For more details you may refer: Configuring VI Server 

See also:  How to save LabVIEW Program in Image format

I hope you have successfully installed LabVIEW Interface for Arduino and ready to do some stuff with Arduino. If you have any doubt feel free to ask. Share this article with your friends and like our facebook page for future updates.

How to save LabVIEW Program in Image format

In this short tutorial I am going to show how to export Labview Block Diagram in image format. Using these steps you can save LabVIEW block Diagram in different image formats like PNG, JPG or GIF. Do following steps one by one.

Export Labview Block Diagram in image format:

Step 1: Click on File > Print

Step 2: Select VI (already selected) click on next

Step 3: Select icon, description, panel and diagram and then click on next.

Export Labview Block Diagram in image format.

Step 4: Now select destination as HTML file and click on next.

Exporting LabVIEW file in image format

Step 5: At this stage you have to choose desired image format. I will recommend to use PNG format of image. Because it is loss less image and also has small size.

Saving Labview program in image format

Step 6: Finally click on save and choose the destination where you want to save the image.

In this way you can easily convert Labview Block Diagram in image format for your project work, journals or other things.

See also: LabVIEW Program for celsius to fahrenheit conversion

I hope you liked this article. Please share it with your friends and like our social media pages for such articles. Have a nice day!

LabVIEW Program for degree Celsius to Fahrenheit Conversion

Hi friends, today we are going to learn a simple program using LabVIEW. This might be your first program using LabVIEW. Here we are going to convert temperature readings from degree Celsius into degree Fahrenheit. Without wasting too much time let us start programming with LabVIEW for our first program.

LabVIEW Program for degree Celsius to Fahrenheit Conversion

Step 1: Open the LabVIEW and click on Blank VI

Open new VI project

Step 2: Now you will see two windows on your computer screen. One is ‘front panel’ and other is ‘block diagram’. To properly adjust both of them on your screen press “Ctrl+t” from your keyboard.

Step 3: Now you will see both the windows are adjusted on single screen. Move your cursor on block diagram window and right click on empty space. Available function will appear. Click on structures and then click on while loop. Now draw the while loop (box) by dragging your mouse on block diagram window.

Creating while loop in labview

Step 4: In this first LabVIEW program we are converting temperature readings from degree Celsius to degree Fahrenheit. So in short we are implementing the formula to convert C>F as shown below.

Celsius to Fahrenheit conversion formula

Step 5: First of all we have to take a slider to vary the Celsius readings. To bring a slider, right click on front panel. Available controls will appear. Move cursor on “Numeric” and click on “vertical fill slide”. You can give name to slider. Here we are using this slider for degree Celsius readings therefore I have name as “Deg C”. In this way we have completed “C”. Now we have to multiply this “C” with “9/5” as shown in formula.

Taking slider in labview

Step 6: To multiply “C” with “9/5”, we will first multiply it with 9 and then divide it by 5. To multiply “C” with 9 we have to take “multiplier”. Right click on block diagram > numeric > multiply. Same steps will be needed for taking divider and for addition with 32 as from formula.

numeric operations in labview

Step 7: for taking “9” i.e. constant right click on block diagram > numeric > numeric constant.

numeric constant in labview

Step 8: Similarly take divider and divide by 5. Take addition and add 32. Now your block diagram will look like this:

6 celsius to fahrenheit

Step 9: Now we have show this converted temperature readings (which are now in Fahrenheit) on numeric indicator. Right click on front panel > numeric > numeric indicator. I have given name as “Deg F” to this numeric indicator.

numeric indicator in labview

Step 10: Finally we have to create a control for the while loop to stop the program at any time. To create a control right click on red button i.e. “loop condition” and select “create control”.

8 creating control in labview

Step 11:  Save the program by pressing “Ctrl+S”.

Step 12: Click on run button available in block diagram window.

Run

Step 13: Now vary the slider you will see corresponding change in degree Fahrenheit output.

Output

Labview_program_for_degree_to_fahrenheit_conversionp

If you are having any problems while doing your first LabVIEW program feel free to ask in comments. I am also providing a LabVIEW program file for converting Celsius to Fahrenheit which you can download here.

Click here to download the LabVIEW program.

I hope you liked this article. Please share it with your friends and like our facebook page for future updates.