LM35 with Arduino | Temperature Sensor | SdevElectronics

Поділитися
Вставка
  • Опубліковано 25 сер 2024
  • In this Tutorial, we'll see about How to interface LM35 Temperature Sensor with Arduino & demonstration.
    G-Drive Link:
    drive.google.c...
    Get Ckt Diagram, Codes from 𝗕𝗹𝗼𝗴 𝗼𝗿 𝗔𝗻𝗱𝗿𝗼𝗶𝗱 𝗔𝗽𝗽.
    𝗗𝗼𝗻'𝘁 𝗖𝗹𝗶𝗰𝗸 𝗛𝗲𝗿𝗲...
    / @sdevelectronics
    Your 𝗟𝗶𝗸𝗲𝘀, 𝗖𝗼𝗺𝗺𝗲𝗻𝘁𝘀, 𝗦𝗵𝗮𝗿𝗲𝘀 keeps us Motivated to make Better Contents.
    𝗦𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 for my Videos in Notification.
    💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢
    MY LINKS
    💚 Android App
    sdevelectronic...
    💚 WhatsApp
    sdevelectronic...
    💚 Blog
    sdevelectronic...
    💚 Tamil Channel
    / sathishdeva
    *** This Channel formerly known as "Staysay"
    *** Due to some Issues, I removed FB & Insta Accounts
    💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢
    POPULAR PLAYLISTS
    💜 Arduino Games
    • Arduino Games
    💜 IOT Projects
    • IOT Projects
    💜 Arduino Projects
    • Arduino projects
    💜 Arduino Tutorials
    • Arduino Tutorials
    💜 DIY | How to
    • DIY | How to
    💜 Mini Projects | Electronics Circuits
    • Mini Projects | Electr...
    💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢💢
    Promo Link:
    www.utsource.net/ is a online platform for electronic technicians, Makers, Enthusiasts, Kids to find electronic components.
    #SdevElectronics #Arduino #LM35

КОМЕНТАРІ • 95

  • @toaster_oven.
    @toaster_oven. 2 роки тому +2

    GREAT VID KEEP IT UP!🤩

  • @KshitijBhatnagar
    @KshitijBhatnagar 3 роки тому +3

    Your formula to calculate temperature is bit wrong. It has to be "float millivolts= (rawvoltage/1024.0) * 5000; ". As lm35 is of 5 volt, you need to multiply it with 5000. and its output ranges from 1024. So dividing with same.

    • @ashishit4134
      @ashishit4134 3 роки тому

      why 5000?

    • @limitedbraingame9382
      @limitedbraingame9382 Рік тому

      You see though, he wasn't calculating the millivolts from the lm35. He was calculating the actual temperature.

    • @sad8548
      @sad8548 Рік тому

      @@limitedbraingame9382 1

    • @arunrastogi170
      @arunrastogi170 Рік тому

      ua-cam.com/video/M3eEOLkACmc/v-deo.html

  • @MasterKoala777
    @MasterKoala777 4 роки тому +2

    Thank you, this tutorial was awesome. :)

  • @binaryprotrader3871
    @binaryprotrader3871 5 років тому +4

    this is good, can this lm35 be used to determine the cooling temperature of a fridge or 1horse power A/C?

  • @KH_V7
    @KH_V7 25 днів тому

    when i plug it the sensore got very hot it almost burned if i didn't unplug it even when i use 3.3 voltage

  • @lucasmatsuoca
    @lucasmatsuoca 5 років тому +3

    i'm having some problems, i don't know if my arduino is not working, or the sensor, it's my first time testing both, but the monitor shows numbers that keep increasing and then decreasing the value, even when the sensor is not connected in the Analogic output,

    • @SDevElectronics
      @SDevElectronics  5 років тому

      You'll get random values, when nothing connected in analog Pin.
      I think your LM35 may be damaged, Try another one.

    • @houtmann774
      @houtmann774 29 днів тому

      You are most propably encountering Electro Magnetic Interference induced on the wire that connects to the Analog input pin. Eg: led lamps, cfl lamps, badly shielded switching psu's and even RF noise. Measuring unbalanced unfiltered small signal analog voltages is always a pain. However, this exercise will give deeper insights on how the adc works. (Linearity errors, reference voltages, etc.

    • @lucasmatsuoca
      @lucasmatsuoca 29 днів тому

      @@houtmann774 it was 5 years ago, I can barely remember the topic but if im not mistaken my sensor was fried or something like this. I remember testing a different sensor and it was working fine.
      Thank you nevertheless 🙏

  • @sihabib8241
    @sihabib8241 4 роки тому +1

    thanks its very easy to understand.

  • @cesarkaka8176
    @cesarkaka8176 4 роки тому +1

    Good

  • @JhelumMusic
    @JhelumMusic 2 місяці тому

    My sensor beacomes too hot and shows value more than 200 in the output. Can you help me with this ?

  • @prasad6523
    @prasad6523 2 роки тому +1

    Ur explanation was so gud ... But I have a doubt ..there r 4 types of temperature sensor right ... So thermocouples for measuring water state nd liquid state thermistor ... In this vedio u measured a solid state so which type of temperature sensor it is...?? Plz respond

  • @abdulhamityasar3611
    @abdulhamityasar3611 3 роки тому +3

    Hi,
    can i make the same princip with a NTC resistor instead of LM35?
    If yes, can i make it with 5 NTC‘s during the same time?
    Many Thanks in advance fot help and reply.
    Best regards

  • @roberthoegg4119
    @roberthoegg4119 Рік тому +1

    I like this circuit, can it be reversed to show red with low temperature instead ? I want to use it to show if the heat isn’t working !

  • @sologrind9895
    @sologrind9895 Рік тому

    When I powered my arduino with a 9v external power supply adapter, the reading temperature every sec is not stable, it fluctuates from 32, to 19, to 22, to 27 so on.. please help

  • @liana9328
    @liana9328 Рік тому

    Hey, can I use 10k or 220 resistor instead of 100k ? I just dont have 100k resistor

  • @s.j.p6394
    @s.j.p6394 3 роки тому

    Yes I noticed the Long Pinky Nail too...

  • @j.r.scaryy
    @j.r.scaryy 5 місяців тому

    Hello there. Your video is very informative. I have a question. Is there a way to code an alert in difference of temperature change, for example, when the temperature increases or decreases within 5 degrees?

  • @ANURAGBOHRE
    @ANURAGBOHRE 4 роки тому +1

    Good explanation

  • @claudiadoduaa3478
    @claudiadoduaa3478 2 роки тому

    Please can a triton board be used in place of the bread board

  • @fikajlo
    @fikajlo Рік тому

    this guy really wrote tempr instad of temp

  • @jer-el3499
    @jer-el3499 3 роки тому +1

    Please help I want to understand the (lmvalue * 500)/1023; in the code, can someone please explain.

    • @dejv1111
      @dejv1111 Рік тому

      Přivedené napětí na lm35 je 5V. V analogové řeči arduina je hodnota1023 rovna právě 5V. Dále platí z datasheetu k lm35, že 10mV=1°C. A vy potřebujete převést signál ze senzoru, který je ve voltech na milivolty, konkrétně na 10mV, proto je násobeno 500. Kdybyste násobil 5000, dostane 1mV, ale vy chcete 10mV, abyste poté zobrazil °C.

  • @niksaladin
    @niksaladin 4 роки тому +1

    do i need to design the circuit in the proteus first before writing the coding?

    • @SDevElectronics
      @SDevElectronics  4 роки тому

      No need,
      Connect as per the circuit diagram, and upload Arduino Sketch

    • @niksaladin
      @niksaladin 4 роки тому

      @@SDevElectronics when itry to open the serial monitor, it said that "Error opening serial port COM3. (Port busy)" so how????

  • @coolmaster8795
    @coolmaster8795 5 років тому +1

    What kind of wires did you use to connect the LEDs to the Arduino board?

    • @SDevElectronics
      @SDevElectronics  5 років тому

      Dupont wires...
      I used DIY Dupont wires with PCB headers

  • @izzulhanif5822
    @izzulhanif5822 5 років тому +1

    Hi, I just wanted to ask you..how can I change the temperature?? Like I want to set it 35°C and when it hit 35°C the buzzer will on...

    • @SDevElectronics
      @SDevElectronics  5 років тому

      You can change temperature in 18th line of 5:57

    • @izzulhanif5822
      @izzulhanif5822 5 років тому

      @@SDevElectronics ok thanks youuu

  • @GappleXD
    @GappleXD 4 роки тому

    is there a library for this? because when I inserted the sensor the Arduino turns off please help.

  • @sitinurbaya6157
    @sitinurbaya6157 4 роки тому +1

    hi can I know to which pin did you connect the blue wire? appareciate the help.

    • @SDevElectronics
      @SDevElectronics  4 роки тому

      Ground...
      Circuit diagram inside the video
      Refer circuit diagram ..

    • @sitinurbaya6157
      @sitinurbaya6157 4 роки тому

      @@SDevElectronics thank you so much:)

  • @arifahzulfah7788
    @arifahzulfah7788 3 роки тому +1

    thank you for this beneficial video. i have a question, why when i hold the lm35, the temperature becomes 0? isn't it supposed to be body temperature, 37?

    • @prxz77
      @prxz77 3 роки тому

      Max 150 graus

    • @DailyFactDive
      @DailyFactDive 2 роки тому

      it doesnt show body temperature because it cant detect temperature through skin

    • @arunrastogi170
      @arunrastogi170 Рік тому

      ua-cam.com/video/M3eEOLkACmc/v-deo.html

  • @annabaldocchi4899
    @annabaldocchi4899 5 років тому +1

    Does it work with skin temperature? The sensor

    • @SDevElectronics
      @SDevElectronics  5 років тому

      Yes,
      It's range = −55o to +150oC
      Accuracy = 0.5oC

  • @liammchugh9439
    @liammchugh9439 3 роки тому +2

    Why multiply by 500 and divide by 1023?

    • @limitedbraingame9382
      @limitedbraingame9382 Рік тому +4

      There are two prerequisites. Firstly, the LM35 can only output a max of 1.5 volts and does so when the temperature is 150 degrees celsius. Secondly, analogRead returns a value between 0 and 1023. It returns 1023 when the analog pin measures 5v, 0 for 0v, and anything between.
      Let's first convert the analogRead to volts. Let's first divide by 1023. This will give a ratio between the given analogRead and the maximum value a read can give. The result is between 0 and 1. Then multiply by 5. This will give the correct voltage reading of the analog pin (because as mentioned before, the max volt reading is 5v). Now, let's imagine a situation where the LM35 is outputting the full 1.5 volts. This means the temperature is 150 degrees celsius. What do you need to multiply 1.5 by to get 150? 100. Because the voltage output of the LM35 is linear with the temperature, we will only ever need to multiply by 100. A slightly less voltage reading will give slightly less than 150 and so on.
      So, in summary, we divided by 1023 to get a usable ratio, then multiplied by 5 to get the actual voltage reading, then multiplied by 100 to get the temperature:
      tempr = lmvalue / 1023 * 5 * 100.
      This is equivalent to what was shown in the video:
      tempr = lmvalue * 500 / 1023
      tempr = (lmvalue * 500) / 1023 (with the needless brackets)

  • @fritzzgeraldtambio9128
    @fritzzgeraldtambio9128 11 місяців тому +2

    Hi .can we use the DHT11 temperature and humidity module as a substitute to the lmd35 ic?if yes does the wiring the same

    • @houtmann774
      @houtmann774 29 днів тому

      DHT11 is much, much better option.

  • @preethaelumalai7722
    @preethaelumalai7722 5 років тому +1

    Can you please upload a video of another circuit contating temperature sensor LM35

    • @SDevElectronics
      @SDevElectronics  5 років тому

      What's up for this project...

    • @preethaelumalai7722
      @preethaelumalai7722 5 років тому

      @@SDevElectronics it is great... Easy to understand.. Bt when i tried it the ends of the jumper wire started to melt and temperature of arnd 315 was show... How do i rectify this can u please tell?

  • @ISNLFN
    @ISNLFN Рік тому

    sir i have have a problem my value decreases when i rise the temperature near lm35 ...what should i do in code kindly tell this.

    • @karma5706
      @karma5706 9 місяців тому

      same problem i tried it in different lm35 same code same wiring i dont know why it happening

  • @christene2724
    @christene2724 4 роки тому +2

    @7:18 what is that thing called?

    • @SDevElectronics
      @SDevElectronics  4 роки тому

      Buzzer, used to make noise

    • @Aryan-lh7rr
      @Aryan-lh7rr 4 роки тому

      sir, it is known as piezo electric buzzer or simply as a buzzer.

  • @rimmersbryggeri
    @rimmersbryggeri 4 роки тому +1

    If you want to send the temperature to a screen like an i2c oled rather than the serial monitor how do you do that?

  • @NazrulHelmi37
    @NazrulHelmi37 3 роки тому

    bro kenapa led tu tak suka kecik

  • @i.salimismail
    @i.salimismail 5 років тому

    Nice. Can we use two LM35 connected to two analog pin (A0,A1) to read the temperature of an AC room and a NON_AC room? When I try that, the second sensor gives erranious reading. Please help me to know the reason. Thankyou.

    • @SDevElectronics
      @SDevElectronics  5 років тому

      void setup() {
      Serial.begin(9600); }
      void loop() {
      float lmvalue0 = analogRead(A0);
      float tempr0 = (lmvalue0 * 500)/1023;
      Serial.println(tempr0);
      float lmvalue1 = analogRead(A1);
      float tempr1 = (lmvalue1 * 500)/1023;
      Serial.println(tempr1);
      delay(200); }
      Use A0 & A1
      If you get error, change LM35

    • @i.salimismail
      @i.salimismail 5 років тому +1

      @@SDevElectronics Thankyou verymuch Brother.

  • @franziilove1276
    @franziilove1276 4 роки тому +1

    what means lmvalue?

    • @SDevElectronics
      @SDevElectronics  4 роки тому

      User defined variable to store LM35 values, You can change to any text...

  • @energyrage5872
    @energyrage5872 5 років тому +1

    Hi, how to make it without arduino liby (without analogRead)

    • @SDevElectronics
      @SDevElectronics  5 років тому

      Simply connect 5v gnd pound respectively...
      In output pin, it gives 10mV for every 1°C.
      0.2V = 200mV = 20°C
      0.5V = 500mV = 50°C
      You can use comparator here...

  • @yemimasandrayulandewi5213
    @yemimasandrayulandewi5213 5 років тому +1

    Why the resistors 100 ohm?

    • @SDevElectronics
      @SDevElectronics  5 років тому

      It is current limiting resistor...
      I don't have 220 ohm resistor, so I used 100 ohm resistor

  • @clarissamaelagrana9245
    @clarissamaelagrana9245 4 роки тому +1

    @4:06 what is that thing called? The white wire

  • @getrelaxed_India
    @getrelaxed_India 4 роки тому +1

    NIce Bro, My project is on glucose detection by non invasive technique. If you have any idea regarding this, can you please do a video on this including code for that

  • @swapnilmakasare3955
    @swapnilmakasare3955 5 років тому +1

    With lcd 16x2 display and code

  • @CleberSousa10
    @CleberSousa10 5 років тому

    A unha do Zé do caixão

  • @ticochats2999
    @ticochats2999 5 років тому +1

    How tomonitor an array of sensors?

    • @SDevElectronics
      @SDevElectronics  5 років тому +1

      You can connect the sensors from A0 to A5...
      Read the value. Store them into arrays....

    • @ticochats2999
      @ticochats2999 5 років тому +1

      @@SDevElectronics thanks the problem its bigger my baterry has 35 cells i want to monitor each cell for overheating.

    • @SDevElectronics
      @SDevElectronics  5 років тому +1

      To monitor each cells, you should use a Sensor for each cells.
      But reading 35 analog pins require 6 Arduinos,
      By resolving this problem, you can connect the sensor and Arduino with 8:1 or 16:1 multiplexer ics ...
      For example if you use 16:1 mux, you can read 48 inputs with 3 analog pins & 15 digital pins ...
      With one Arduino...
      I think the problem solved

    • @ticochats2999
      @ticochats2999 5 років тому +1

      @@SDevElectronics great thx

  • @statusguru5805
    @statusguru5805 4 роки тому +2

    Give me arduino code please

    • @SDevElectronics
      @SDevElectronics  4 роки тому

      sdevelectronics.blogspot.com/2018/04/arduino-lm35-temperature-sensor-b.html

  • @alejandromartinezbaena7387
    @alejandromartinezbaena7387 Місяць тому

    Great video but please cut your nails