SlideShare a Scribd company logo
EXPERIMENT – 3
OBJECTIVE: To interface temperature sensor with microcontroller and perform closed loop
control operation using the LabVIEW.
APPARATUS USED: Arduino board, Temperature sensor, LABVIEW setup.
THEORY:
Introduction to LABVIEW: LabVIEW is an integrated development environment designed
specifically for engineers and scientists. Native to LabVIEW is a graphical programming language
(G) that uses a dataflow model instead of sequential lines of text code, empowering you to write
functional code using a visual layout that resembles your thought process. This means you spend
less time worrying about semicolons and syntax and more time solving the problems that matter.
Introduction to Arduino: Arduino is an open-source electronics platform based on easy-to-use
hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button,
or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board. To do so you use the Arduino programming language (based on Wiring),
and the Arduino Software (IDE), based on Processing.
Over the years Arduino has been the brain of thousands of projects, from everyday objects to
complex scientific instruments. A worldwide community of makers - students, hobbyists, artists,
programmers, and professionals - has gathered around this open-source platform, their
contributions have added up to an incredible amount of accessible knowledge that can be of great
help to novices and experts alike.
Temperature Sensor: A thermistor is a type of resistor whose resistance is dependent on
temperature, more so than in standard resistors. The word is a portmanteau of thermal and resistor.
Thermistors are widely used as inrush current limiter, temperature sensors (Negative Temperature
Coefficient or NTC type typically), self-resetting overcurrent protectors, and self-regulating
heating elements (Positive Temperature Coefficient or PTC type typically).
Thermistors are of two opposite fundamental types:
 With NTC, resistance decreases as temperature rises to protect against inrush overvoltage
conditions. Commonly installed parallel in a circuit. As current sink.
 With PTC, resistance increases as temperature rises to protect against overcurrent conditions.
Commonly installed series in a circuit. As resettable fuse.
Thermistors differ from resistance temperature detectors (RTDs) in that the material used in a
thermistor is generally a ceramic or polymer, while RTDs use pure metals. The temperature
response is also different; RTDs are useful over larger temperature ranges, while thermistors
typically achieve a greater precision within a limited temperature range, typically −90 °C to 130
°C.
Interfacing Thermistor with Arduino:
These thermistors are pretty hardy, you can strip the PVC insulation and stick the wires into a
breadboard or solder to them directly. Of course you can cut or extend the wires. Since the
resistance is pretty high (10Kohm) the wire resistance won't make a huge difference.
Interface Arduino through LabVIEW:
Step 1: In LabVIEW (any version) establish the following front panel
Step 2: Establish the following block diagram.
Step 4: This virtual instrument:
>> Starts communication with Arduino.
>> Detects if there is a change in control knob value.
>> If there is a change it sends the new value to Arduino.
>> Else, it clears serial port Input/output register to avoid data overflow and serial port
overloading.
>> When pressing STOP, it sends “0” (brake or hold order) to Arduino.
Step 5: Arduino Code
(Attachment available)
Checks if LabVIEW sent a new value. If there is a new value, it converts it into integer byte with
the same value. This integer byte represents the delay interval used in stepping sequence. That,
the greater the delay the lower the speed and vice versa. Else, Arduino continue running the
motor at current speed. This prevents the processor from overloading the serial port and pushes it
to avoid Arduino Serial port hanging.
Calculates temperature from its resolution and delay intervals between steps as following:
The Steinhart and Hart equation is an empirical expression that has been determined to be the best
mathematical expression for resistance temperature relationship of NTC thermistors and NTC
probe assemblies.
The most common equation is:
1/T= a+ b(LnR)+c(LnR)^3 (Eqn 5)
where: T = degrees Kelvin
a,b, and c = coefficients derived from measurement
To solve for a, b and c coefficients, measure the thermistor at three different temperatures. The
temperatures should be evenly spaced and at least 10 degrees apart. Use the three temperatures to
solve three simultaneous equations.
1/T1 = a +b(LnR1)+c(LnR1)^3
1/T2 = a +b(LnR2)+c(LnR2)^3
1/T1 = a +b(LnR3)+c(LnR3)^3
These equations allow you to derive a, b and c for any temperature range. Knowing a, b and c for
the thermistor allows you to use the Steinhart and Hart equation in two ways.
1) If resistance is known and temperature desired then use eqn 5.
2) If temperature is known and expected resistance is desired than use this equation:
R= e exp [(ß – (ά/2))^1/3 – (ß + (ά/2))^1/3]
Where
ά=(a-(1/T))/c and ß=[((b/3c)^3) + ((ά^2)/4)]^1/2
Sends the calculated motor speed to another Serial port of Arduino UNO to show if our code
works
RESULT: Successfully reading the temperature variation by interfacing thermistor with Arduino
and LabVIEW.
Ad

More Related Content

What's hot (20)

Microcontroller Programming & Hardware Introduction
Microcontroller Programming & Hardware IntroductionMicrocontroller Programming & Hardware Introduction
Microcontroller Programming & Hardware Introduction
Joseph Sanchez
 
Lec 4
Lec 4Lec 4
Lec 4
Mohamed Zain Allam
 
The fundemental of electronics ebook
The fundemental of electronics ebookThe fundemental of electronics ebook
The fundemental of electronics ebook
Le Thanh Nhan
 
#5 logic probe
#5 logic probe#5 logic probe
#5 logic probe
sscholle
 
GCC 4-1-16
GCC 4-1-16GCC 4-1-16
GCC 4-1-16
Kayla Leung
 
LDR Counter
LDR CounterLDR Counter
LDR Counter
Ali Faizan Wattoo
 
Bidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra DhakaBidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra Dhaka
NIT srinagar
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
Mohit Awasthi
 
Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)
Xi Qiu
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
Ravikumar Tiwari
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
soma saikiran
 
2 Digit Object counter
2 Digit Object counter2 Digit Object counter
2 Digit Object counter
JiaahRajpout123
 
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
Lec 3
Lec 3Lec 3
Lec 3
Mohamed Zain Allam
 
11 ADV KEY VOCABULARY
11 ADV KEY VOCABULARY 11 ADV KEY VOCABULARY
11 ADV KEY VOCABULARY
CDI Aljeer
 
Key vocabulary 10 adv
Key vocabulary 10 advKey vocabulary 10 adv
Key vocabulary 10 adv
CDI Aljeer
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
9766686371
 
Ecd302 unit 03 (part a)(ewb quick reference)
Ecd302 unit 03 (part a)(ewb quick reference)Ecd302 unit 03 (part a)(ewb quick reference)
Ecd302 unit 03 (part a)(ewb quick reference)
Xi Qiu
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
Saylee joshi
 
Gcc 4 22-16
Gcc 4 22-16Gcc 4 22-16
Gcc 4 22-16
Kayla Leung
 
Microcontroller Programming & Hardware Introduction
Microcontroller Programming & Hardware IntroductionMicrocontroller Programming & Hardware Introduction
Microcontroller Programming & Hardware Introduction
Joseph Sanchez
 
The fundemental of electronics ebook
The fundemental of electronics ebookThe fundemental of electronics ebook
The fundemental of electronics ebook
Le Thanh Nhan
 
#5 logic probe
#5 logic probe#5 logic probe
#5 logic probe
sscholle
 
Bidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra DhakaBidirectional visitor counter & home automation by Jitendra Dhaka
Bidirectional visitor counter & home automation by Jitendra Dhaka
NIT srinagar
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
Mohit Awasthi
 
Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)Ecd302 unit 05(misc simulation tools)(new version)
Ecd302 unit 05(misc simulation tools)(new version)
Xi Qiu
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
soma saikiran
 
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
11 ADV KEY VOCABULARY
11 ADV KEY VOCABULARY 11 ADV KEY VOCABULARY
11 ADV KEY VOCABULARY
CDI Aljeer
 
Key vocabulary 10 adv
Key vocabulary 10 advKey vocabulary 10 adv
Key vocabulary 10 adv
CDI Aljeer
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
9766686371
 
Ecd302 unit 03 (part a)(ewb quick reference)
Ecd302 unit 03 (part a)(ewb quick reference)Ecd302 unit 03 (part a)(ewb quick reference)
Ecd302 unit 03 (part a)(ewb quick reference)
Xi Qiu
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
Saylee joshi
 

Similar to To interface temperature sensor with microcontroller and perform closed loop control operation using the LabVIEW (20)

Electronz_Chapter_3.pptx
Electronz_Chapter_3.pptxElectronz_Chapter_3.pptx
Electronz_Chapter_3.pptx
Mokete5
 
Automation of temperature variation setup for impedance analyzer using LabVIEW
Automation of temperature variation setup for impedance analyzer using LabVIEWAutomation of temperature variation setup for impedance analyzer using LabVIEW
Automation of temperature variation setup for impedance analyzer using LabVIEW
Not yet working. I am still studying
 
10 adv _revision_notes_term_3
10 adv _revision_notes_term_310 adv _revision_notes_term_3
10 adv _revision_notes_term_3
CDI Aljeer
 
Temperature Sensors – Types
Temperature Sensors – TypesTemperature Sensors – Types
Temperature Sensors – Types
elprocus
 
Automatic room temperature controlled fan using arduino uno microcontroller
Automatic room temperature controlled fan using   arduino uno  microcontrollerAutomatic room temperature controlled fan using   arduino uno  microcontroller
Automatic room temperature controlled fan using arduino uno microcontroller
Mohammod Al Emran
 
WiTS Final Poster
WiTS Final PosterWiTS Final Poster
WiTS Final Poster
Audrey McNicholas
 
Child Pneumonia Monitor
Child Pneumonia Monitor Child Pneumonia Monitor
Child Pneumonia Monitor
Dominick Squillace
 
Transducer & sensors
Transducer & sensorsTransducer & sensors
Transducer & sensors
asbala
 
Xbee Wireless Throttle Position Sensor And Control
Xbee Wireless Throttle Position Sensor  And ControlXbee Wireless Throttle Position Sensor  And Control
Xbee Wireless Throttle Position Sensor And Control
kians64
 
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptxGROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
Ryan Cortes
 
Humidity and Temperature Measurement Using Arduino
Humidity and Temperature Measurement Using ArduinoHumidity and Temperature Measurement Using Arduino
Humidity and Temperature Measurement Using Arduino
dollonhaider
 
Ultrasonic level meter
Ultrasonic level meterUltrasonic level meter
Ultrasonic level meter
handson28
 
Amvdd Data Converter Fundamentals
Amvdd Data Converter FundamentalsAmvdd Data Converter Fundamentals
Amvdd Data Converter Fundamentals
Niket Chandrashekar
 
UNIT- I.pptx
UNIT- I.pptxUNIT- I.pptx
UNIT- I.pptx
Infant Jegan Rakesh A J
 
Application of sensors : Thermistors and potentiometer
Application of sensors : Thermistors and potentiometerApplication of sensors : Thermistors and potentiometer
Application of sensors : Thermistors and potentiometer
Anaseem Hanini
 
Sensors-Interfacing Techniques
Sensors-Interfacing TechniquesSensors-Interfacing Techniques
Sensors-Interfacing Techniques
Dr.YNM
 
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdfFUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
natyesu
 
A Unique Approach to Developing Sensor Signal Path Solutions
A Unique Approach to Developing Sensor Signal Path SolutionsA Unique Approach to Developing Sensor Signal Path Solutions
A Unique Approach to Developing Sensor Signal Path Solutions
Harold Joseph
 
CRO PRObes,thermistor& Strip chart recorder
CRO PRObes,thermistor& Strip chart recorderCRO PRObes,thermistor& Strip chart recorder
CRO PRObes,thermistor& Strip chart recorder
Chandrakant Bhardwaj
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Electronz_Chapter_3.pptx
Electronz_Chapter_3.pptxElectronz_Chapter_3.pptx
Electronz_Chapter_3.pptx
Mokete5
 
Automation of temperature variation setup for impedance analyzer using LabVIEW
Automation of temperature variation setup for impedance analyzer using LabVIEWAutomation of temperature variation setup for impedance analyzer using LabVIEW
Automation of temperature variation setup for impedance analyzer using LabVIEW
Not yet working. I am still studying
 
10 adv _revision_notes_term_3
10 adv _revision_notes_term_310 adv _revision_notes_term_3
10 adv _revision_notes_term_3
CDI Aljeer
 
Temperature Sensors – Types
Temperature Sensors – TypesTemperature Sensors – Types
Temperature Sensors – Types
elprocus
 
Automatic room temperature controlled fan using arduino uno microcontroller
Automatic room temperature controlled fan using   arduino uno  microcontrollerAutomatic room temperature controlled fan using   arduino uno  microcontroller
Automatic room temperature controlled fan using arduino uno microcontroller
Mohammod Al Emran
 
Transducer & sensors
Transducer & sensorsTransducer & sensors
Transducer & sensors
asbala
 
Xbee Wireless Throttle Position Sensor And Control
Xbee Wireless Throttle Position Sensor  And ControlXbee Wireless Throttle Position Sensor  And Control
Xbee Wireless Throttle Position Sensor And Control
kians64
 
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptxGROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
Ryan Cortes
 
Humidity and Temperature Measurement Using Arduino
Humidity and Temperature Measurement Using ArduinoHumidity and Temperature Measurement Using Arduino
Humidity and Temperature Measurement Using Arduino
dollonhaider
 
Ultrasonic level meter
Ultrasonic level meterUltrasonic level meter
Ultrasonic level meter
handson28
 
Amvdd Data Converter Fundamentals
Amvdd Data Converter FundamentalsAmvdd Data Converter Fundamentals
Amvdd Data Converter Fundamentals
Niket Chandrashekar
 
Application of sensors : Thermistors and potentiometer
Application of sensors : Thermistors and potentiometerApplication of sensors : Thermistors and potentiometer
Application of sensors : Thermistors and potentiometer
Anaseem Hanini
 
Sensors-Interfacing Techniques
Sensors-Interfacing TechniquesSensors-Interfacing Techniques
Sensors-Interfacing Techniques
Dr.YNM
 
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdfFUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
FUNDAMENTAL OF ELECTERONIS MEASUREMENT 111.pdf
natyesu
 
A Unique Approach to Developing Sensor Signal Path Solutions
A Unique Approach to Developing Sensor Signal Path SolutionsA Unique Approach to Developing Sensor Signal Path Solutions
A Unique Approach to Developing Sensor Signal Path Solutions
Harold Joseph
 
CRO PRObes,thermistor& Strip chart recorder
CRO PRObes,thermistor& Strip chart recorderCRO PRObes,thermistor& Strip chart recorder
CRO PRObes,thermistor& Strip chart recorder
Chandrakant Bhardwaj
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Ad

More from Ankita Tiwari (20)

EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
Ankita Tiwari
 
surveyofdnnlearning.pdf
surveyofdnnlearning.pdfsurveyofdnnlearning.pdf
surveyofdnnlearning.pdf
Ankita Tiwari
 
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfBasic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Ankita Tiwari
 
Relation of Big Data and E-Commerce
Relation of Big Data and E-CommerceRelation of Big Data and E-Commerce
Relation of Big Data and E-Commerce
Ankita Tiwari
 
Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...
Ankita Tiwari
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
Ankita Tiwari
 
What is IEEE and why?
What is IEEE and why?What is IEEE and why?
What is IEEE and why?
Ankita Tiwari
 
To control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEWTo control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEW
Ankita Tiwari
 
Linux operating systems and Bootable Pendrive
Linux operating systems and Bootable PendriveLinux operating systems and Bootable Pendrive
Linux operating systems and Bootable Pendrive
Ankita Tiwari
 
Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.
Ankita Tiwari
 
Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.
Ankita Tiwari
 
Design the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy GridDesign the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy Grid
Ankita Tiwari
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
Ankita Tiwari
 
Design the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with ConstraintsDesign the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with Constraints
Ankita Tiwari
 
Design the implementation of CDEx flexible joints
Design the implementation of CDEx flexible jointsDesign the implementation of CDEx flexible joints
Design the implementation of CDEx flexible joints
Ankita Tiwari
 
Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.
Ankita Tiwari
 
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Ankita Tiwari
 
Design the implementation of NMEA Get GPS Data from Record
Design the implementation of NMEA Get GPS Data from RecordDesign the implementation of NMEA Get GPS Data from Record
Design the implementation of NMEA Get GPS Data from Record
Ankita Tiwari
 
design the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loopdesign the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loop
Ankita Tiwari
 
Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...
Ankita Tiwari
 
EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
Ankita Tiwari
 
surveyofdnnlearning.pdf
surveyofdnnlearning.pdfsurveyofdnnlearning.pdf
surveyofdnnlearning.pdf
Ankita Tiwari
 
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfBasic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Ankita Tiwari
 
Relation of Big Data and E-Commerce
Relation of Big Data and E-CommerceRelation of Big Data and E-Commerce
Relation of Big Data and E-Commerce
Ankita Tiwari
 
Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...
Ankita Tiwari
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
Ankita Tiwari
 
What is IEEE and why?
What is IEEE and why?What is IEEE and why?
What is IEEE and why?
Ankita Tiwari
 
To control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEWTo control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEW
Ankita Tiwari
 
Linux operating systems and Bootable Pendrive
Linux operating systems and Bootable PendriveLinux operating systems and Bootable Pendrive
Linux operating systems and Bootable Pendrive
Ankita Tiwari
 
Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.
Ankita Tiwari
 
Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.
Ankita Tiwari
 
Design the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy GridDesign the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy Grid
Ankita Tiwari
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
Ankita Tiwari
 
Design the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with ConstraintsDesign the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with Constraints
Ankita Tiwari
 
Design the implementation of CDEx flexible joints
Design the implementation of CDEx flexible jointsDesign the implementation of CDEx flexible joints
Design the implementation of CDEx flexible joints
Ankita Tiwari
 
Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.
Ankita Tiwari
 
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Ankita Tiwari
 
Design the implementation of NMEA Get GPS Data from Record
Design the implementation of NMEA Get GPS Data from RecordDesign the implementation of NMEA Get GPS Data from Record
Design the implementation of NMEA Get GPS Data from Record
Ankita Tiwari
 
design the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loopdesign the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loop
Ankita Tiwari
 
Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...
Ankita Tiwari
 
Ad

Recently uploaded (20)

Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxbMain cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
SunilSingh610661
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIHlecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
Abodahab
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Resistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff modelResistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff model
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Data Structures_Linear data structures Linked Lists.pptx
Data Structures_Linear data structures Linked Lists.pptxData Structures_Linear data structures Linked Lists.pptx
Data Structures_Linear data structures Linked Lists.pptx
RushaliDeshmukh2
 
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxbMain cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
SunilSingh610661
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIHlecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
lecture5.pptxJHKGJFHDGTFGYIUOIUIPIOIPUOHIYGUYFGIH
Abodahab
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Data Structures_Linear data structures Linked Lists.pptx
Data Structures_Linear data structures Linked Lists.pptxData Structures_Linear data structures Linked Lists.pptx
Data Structures_Linear data structures Linked Lists.pptx
RushaliDeshmukh2
 

To interface temperature sensor with microcontroller and perform closed loop control operation using the LabVIEW

  • 1. EXPERIMENT – 3 OBJECTIVE: To interface temperature sensor with microcontroller and perform closed loop control operation using the LabVIEW. APPARATUS USED: Arduino board, Temperature sensor, LABVIEW setup. THEORY: Introduction to LABVIEW: LabVIEW is an integrated development environment designed specifically for engineers and scientists. Native to LabVIEW is a graphical programming language (G) that uses a dataflow model instead of sequential lines of text code, empowering you to write functional code using a visual layout that resembles your thought process. This means you spend less time worrying about semicolons and syntax and more time solving the problems that matter. Introduction to Arduino: Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.
  • 2. Over the years Arduino has been the brain of thousands of projects, from everyday objects to complex scientific instruments. A worldwide community of makers - students, hobbyists, artists, programmers, and professionals - has gathered around this open-source platform, their contributions have added up to an incredible amount of accessible knowledge that can be of great help to novices and experts alike. Temperature Sensor: A thermistor is a type of resistor whose resistance is dependent on temperature, more so than in standard resistors. The word is a portmanteau of thermal and resistor. Thermistors are widely used as inrush current limiter, temperature sensors (Negative Temperature Coefficient or NTC type typically), self-resetting overcurrent protectors, and self-regulating heating elements (Positive Temperature Coefficient or PTC type typically). Thermistors are of two opposite fundamental types:  With NTC, resistance decreases as temperature rises to protect against inrush overvoltage conditions. Commonly installed parallel in a circuit. As current sink.  With PTC, resistance increases as temperature rises to protect against overcurrent conditions. Commonly installed series in a circuit. As resettable fuse. Thermistors differ from resistance temperature detectors (RTDs) in that the material used in a thermistor is generally a ceramic or polymer, while RTDs use pure metals. The temperature response is also different; RTDs are useful over larger temperature ranges, while thermistors typically achieve a greater precision within a limited temperature range, typically −90 °C to 130 °C. Interfacing Thermistor with Arduino: These thermistors are pretty hardy, you can strip the PVC insulation and stick the wires into a breadboard or solder to them directly. Of course you can cut or extend the wires. Since the resistance is pretty high (10Kohm) the wire resistance won't make a huge difference.
  • 3. Interface Arduino through LabVIEW: Step 1: In LabVIEW (any version) establish the following front panel Step 2: Establish the following block diagram. Step 4: This virtual instrument: >> Starts communication with Arduino. >> Detects if there is a change in control knob value. >> If there is a change it sends the new value to Arduino. >> Else, it clears serial port Input/output register to avoid data overflow and serial port overloading. >> When pressing STOP, it sends “0” (brake or hold order) to Arduino. Step 5: Arduino Code (Attachment available)
  • 4. Checks if LabVIEW sent a new value. If there is a new value, it converts it into integer byte with the same value. This integer byte represents the delay interval used in stepping sequence. That, the greater the delay the lower the speed and vice versa. Else, Arduino continue running the motor at current speed. This prevents the processor from overloading the serial port and pushes it to avoid Arduino Serial port hanging. Calculates temperature from its resolution and delay intervals between steps as following: The Steinhart and Hart equation is an empirical expression that has been determined to be the best mathematical expression for resistance temperature relationship of NTC thermistors and NTC probe assemblies. The most common equation is: 1/T= a+ b(LnR)+c(LnR)^3 (Eqn 5) where: T = degrees Kelvin a,b, and c = coefficients derived from measurement To solve for a, b and c coefficients, measure the thermistor at three different temperatures. The temperatures should be evenly spaced and at least 10 degrees apart. Use the three temperatures to solve three simultaneous equations. 1/T1 = a +b(LnR1)+c(LnR1)^3 1/T2 = a +b(LnR2)+c(LnR2)^3 1/T1 = a +b(LnR3)+c(LnR3)^3 These equations allow you to derive a, b and c for any temperature range. Knowing a, b and c for the thermistor allows you to use the Steinhart and Hart equation in two ways. 1) If resistance is known and temperature desired then use eqn 5. 2) If temperature is known and expected resistance is desired than use this equation: R= e exp [(ß – (ά/2))^1/3 – (ß + (ά/2))^1/3] Where ά=(a-(1/T))/c and ß=[((b/3c)^3) + ((ά^2)/4)]^1/2 Sends the calculated motor speed to another Serial port of Arduino UNO to show if our code works RESULT: Successfully reading the temperature variation by interfacing thermistor with Arduino and LabVIEW.