Make it mech
  • How & Why
    • Arduino
    • Leapmotion with arduino
    • Sensors/Modules
    • Basic Electronics
    • NodeMcu
    • LabView
    • MATLAB
    • Industrial Automation
  • Projects
    • arduino projects
    • Brain Wave Decoder
    • Circuit Diagrams
    • Electrical
    • IEE Projects
  • Ideas
  • Robotics
  • LeapMotion
  • EEG
  • Mechatronics
  • Videos
No Result
View All Result
Make it mech
No Result
View All Result

RECOMMENDED Articles

How to Nurture your Mind? How to Increase Mind Abilities

2 years ago
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

2 years ago
Top-10 The Most Inspirational Books Ever

How to Think Out of the Box – Self Learning Experience

2 years ago
labview install

How to use Labview and Arduino | linx labview installation

4 years ago

BROWSE BY CATEGORIES

  • Arduino
  • arduino projects
  • Basic Electronics
  • Brain Wave Decoder
  • Breadboard Circuits
  • Circuit Diagrams
  • Circuits
  • EEG
  • Electrical
  • How & Why
  • Ideas
  • IEE Projects
  • Industrial Automation
  • Inspiration & Motivation
  • IOT
  • LabView
  • Leapmotion with arduino
  • MATLAB
  • Mechatronics
  • NodeMcu
  • Projects
  • Robotics
  • Self Learning
  • Sensors/Modules
  • Soft skills
  • Startups
  • Success

How to use LM35 Temperature Sensor with Arduino | arduino tutorials

How to use LM35 Temperature Sensor with Arduino | arduino tutorials
503
SHARES
1.4k
VIEWS

Lm35 temperature sensor is used as input to measure External temperature in analog values. This is the quick tutorial about lm35 arduino. The arduino tutorials and how and why to use lm35 sensor. We will discuss how to interface lm35 temperature sensor with arduino. lm35 temperature sensor code for arduino.This is the quick tutorial series about arduino tutorials and arduino programming tutorial.

How to Interface LM35 Temperature Sensor with arduino

Welcome, Everyone
Here is the first Tutorial in the series of Learn by Doing.Learn Arduino by Doing projects.There is a long list of 100+ amazing Arduino projects.So we are going to start with some basic concepts.There are almost 10 first tutorials on Sensors then we will move towards doing amazing and cool projects.
In all these tutorials we will understand each and every component, circuit diagrams and complete Arduino codes.Stay connected on YouTube and follow for step by step Guide and source codes.
So let’s start with the basic LM35 temperature sensor.

Related posts

Mechatronics Projects for Final Year students with Industrial Aspect

Mechatronics Projects for Final Year students with Industrial Aspect

January 30, 2021
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

January 30, 2021

Contents:

  1. Introduction to LM35 Temperature Sensor
  2. Components List
  3. LM35 with Arduino Circuit Diagram
  4. code for arduino

Lm35 temperature sensor:

Lm35 is a Temperature Sensor that works with the variations in temperature.The internal structure of Lm35 consists of transistors, amplifier, and few resistors.The integrated circuit and the resistors are calibrated in the factory to produce the accurate temperature.

The Lm35 has 3 pins:

  • Input
  • Output
  • Ground
The output of Lm35 is in volts.Every 10 mv change is equal to 1 degree Celsius.
The Exact Equation to convert voltage into degree Celsius is:

( THE SUPPLY_VOLTAGE x 1000 / 1024) / 10 where  THE SUPPLY_VOLTAGE is 5.0Volts )

 1000 is used for changing the unit from Volts to mV
10 is constant and Each 10 mV is directly proportional to 1 degree Celcius.
5 is the supply voltage.

The final Equation is: [(5.0 * 1000 / 1024) / 10  ] = 0.4882

Components for lm35 arduino:

  1. Arduino Board with USB Cable
  2. LM35 Temperature sensor
  3. Bread board (for practice)
  4. Arduino jumper wires

Lm35 sesor with arduino circuit diagram:


lm 35
  1. Connect first pin with 5v on Arduino
  2. Second with analog pin of Arduino A0
  3. Third with GND on Arduino

Code for Arduino:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
float temp;                                        //Defining the temp float variable
int sensor = 0;                                 // The output pin of LM35 on arduino analog pin 0 it could be A0
void setup()
{Serial.begin(9600);                                    //start the serial monitor
}
void loop(){
temp = analogRead(sensor);                     //assigning the analog output to temp
float mv = ( temp/1024.0)*5000;             // Converting equation for voltage to Celsius
float celsius = mv/10;
Serial.print("The temperature is :");       //Display the results on serial monitor
Serial.print(celsius);
Serial.println("deg. Celsius");
Serial.println();
delay(1000);                                          //1 second delay to avoid overloop
}

There will be more on Lm35 temperature sensor. How to display Temperature on LCD and Weather displaying box Arduino Project.Stay connected and subscribe on YouTube for video Tutorials.Learn by Doing.Stay motivated and always have faith on yourself.
Mak

Mak

Mechatronics Engineer - Entrepreneur - Solution Architect Love writing & Traveling - Being Average isn't a Choice Stay Happy - Live in Freedom & Always have Faith on Yourself...

Related Posts



Comments 1

  1. Amy says:
    3 years ago

    Hello, why I get 500 deg.celcius in temperature room? I set up the components and the coding same as the tutorial above. I just change the serial.begin(115200) since the serial.begin(9600) do not allow to open the serial monitor. Does it effect? Please help me. Thanks.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts

Most Popular

  • 220v ac to 12v dc power supply

    220v AC to 12v DC Power Supply Step by Step Project

    687 shares
    Share 275 Tweet 172
  • How to use L293d Module motor shield with Arduino

    650 shares
    Share 260 Tweet 163
  • Mechatronics Projects for Final Year students with Industrial Aspect

    620 shares
    Share 248 Tweet 155
  • Circuit designing steps for EEG portable monitoring device

    615 shares
    Share 246 Tweet 154
  • EEG circuit | Schematic diagrams of brain wave project

    601 shares
    Share 240 Tweet 150

Related Posts

Mechatronics Projects for Final Year students with Industrial Aspect
Ideas

Mechatronics Projects for Final Year students with Industrial Aspect

January 30, 2021
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas
Arduino

Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

January 30, 2021
ldr with arduino
Arduino

How to control (LDR) Light Dependent Resistor with Arduino | LDR Circuit

January 30, 2021
How to use L293d Module motor shield with Arduino
Arduino

How to use L293d Module motor shield with Arduino

January 30, 2021

Next Post
How to Use Ultrasonic Sensor SR04 with arduino and How ultrasonic sensor works

How to Use Ultrasonic Sensor SR04 with arduino and How ultrasonic sensor works

  • Home
  • Privacy Policy
  • About Us
  • Contact Us

© 2021 Make it mech - All Rights Reserved

No Result
View All Result
  • How & Why
    • Arduino
    • Leapmotion with arduino
    • Sensors/Modules
    • Basic Electronics
    • NodeMcu
    • LabView
    • MATLAB
    • Industrial Automation
  • Projects
    • arduino projects
    • Brain Wave Decoder
    • Circuit Diagrams
    • Electrical
    • IEE Projects
  • Ideas
  • Robotics
  • LeapMotion
  • EEG
  • Mechatronics
  • Videos

© 2021 Make it mech - All Rights Reserved

Go to mobile version