Display Temperature on LCD1602 using LM35 Temperature Sensor with Arduino

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 103

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

    Thank you , very informative , very much appreciated

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

      You are very welcome.

  • @user-tr6co8mw4j
    @user-tr6co8mw4j 4 роки тому +1

    Good job Mr Ahmed thank you shokran

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

      You are welcome

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

    thanks from Turkiye

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

      You are welcome from Canada. The best thank you for me is to subscribe to my channel. Your subscription is stamp of approval and my videos will be suggested to more people and this will help me. I appreciate it. thanks❤️

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

      @@robojax ok ı subscribed :)

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

    Excellent explaination and good work sir

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

      Thanks and welcome

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

    بارك الله فيك

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

      و ایاکم

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

    wooow, that's gonna be useful, thanks!

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

      Glad you think so!

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

    Faydalı bir video olmuş. Teşekkür ederim

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

      Rica ederim. Beğendiğine sevindim.

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

      vayy bunu izleyen tek Türk ben değilmişim

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

      @@Karbonatlicay 😀

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

    Couple of things. The extra clips were confusing. Some impossible K and C values indicated without explanation. The other point is that the LM35 is capable (at least two version are) of measureing down to -50 degrees C but the arrangement shown only from 0-150C. There are system examples in the Data Sheet. Negative temperatures require some biasing components or a +/- supply.
    I have only used this (with a PIC device) for low C temperatures (Chilled Water) but I was hoping to use it to check Freezer temperatures.

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

      I put the word "extra" so it means some extra stuff. This video has introduction to LM35 and needed to be watched and most stuff were explained there. this is just to display it on LCD. the K and C impossible value did not need explanation because when I moved the sensor or heat gun, it got connected/disconnected and the value jumped.

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

      @@robojax I was not being critical just observing.
      The data sheet shows a way to achieve what I require. using a couple of 1N914 s to lift the LM35 from the deck and bias the output to ground with an 18k 10% resistor.
      You seem to have struck out some parts of my mail. Why is that?
      I have purchased your Arduino Course but have yet to get engrossed. I am only at the basic, obvious stuff so far but it is early days.
      Regarding the temperature capture - main, possibly only reson for playing with an Arduino and I am fast thinking of going back to the PIC solution, I am reluctant to take the NTC Thermister route because there are so many different profiles. But if I have to I shall. I still have several steps of development to get past.

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

    Nice video keep it up

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

      Thanks, will do!

  • @RajRaj-fh4mm
    @RajRaj-fh4mm 4 роки тому

    thank you so much sir

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

    Thank you so much for this video
    Is it possible to add an battery voltage sensor along with the temperature sensor in the same Arduino, How can we combine the both programs

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

      To measure any voltage you don't need any sensor. watch this video ua-cam.com/video/t8xwrVj2aFs/v-deo.html to learn how to measure any DC voltage. Here is better video for LM35 with wiring diagram which is part of a course ua-cam.com/video/vHS6gGLFBh8/v-deo.html I have explained them fully. simply combine them. meaning nothing should be repeated in the code when you combine for example setup() function should appear once and loop() the same. follow my Arduino course to learn.

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

      @@robojax Thank you so much

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

    Is it possible to also include a 3.3v signal to a relay switch so I can turn a fan on and off when reaching set temperatures?

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

      Yes. and you can learn it from this video ua-cam.com/video/yJYXfaU9J34/v-deo.html

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

    Your really amazing sir.

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

      That's very kind of you. So are you.

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

      I am also a hobbyists sir thats why ilike your channel thankyou so much

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

      You are welcome and good cluck .

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

    no matching function for call to 'LiquidCrystal_I2C::begin()'
    ayuda me sale ese error

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

      Dice que no vio el video y lo saltó. Míralo sin saltarte y sabrás por qué.

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

      technoelectronics44.blogspot.com/2020/08/lm35-temperature-sensor.html
      LM35-interfacing & code

  • @SJH.
    @SJH. 2 роки тому

    Hello can you please help me. I want to know can we can add a 5v relay which turns ON and OFF based on the temperature (I need the code to how to do that)

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

      Search my channel. I have it

  • @SurenderKumar-mg9iv
    @SurenderKumar-mg9iv 3 роки тому +1

    Sir thank you very much for your valuable information regarding temperature measurement through the Arduino board. Sir, I have a simple 16 x 2 LCD instead of an I2C LCD. So please guide me on how can I measure the temperature with a simple LCD. What will be the circuit diagram & code? Please help me.

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

      you are welcome. here is the code for LCD without I2C robojax.com/learn/arduino/?vid=robojax-LCD1602 but you should learn from the current video on how to send the text on display. good luck

    • @SurenderKumar-mg9iv
      @SurenderKumar-mg9iv 3 роки тому +1

      Thank you very much sir.

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

    Hello Ahmad, i have an issue with this program, when i out the code into the IDE, i got an error with lcd.begin() and that it requires 3 values, when i types 16, 2 it uploaded bu the lcd didnt do anything, everything is working and wired correctly i checked it seperately.

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

      Could you please help?

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

      Please watch introduction to LCD video before commenting to this video.

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

    Your code link is not redirecting rightly/Please work on that link for easy access of code for beginner

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

      we are sorry, today we are migrating to a new system and many links are dead. I've just fixed this link. try it and if you faced problem, try it later today or tomorrow. We do our best to fix this issue.

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

    float getTemperature(char type)
    {
    float value;
    float averageTemperature =0;
    int sensorValue = analogRead(inPin);
    float voltage = sensorValue * (5.0 / 1023.0);
    float temperature = voltage / LM35_FACTOR;
    for(int i=0; i< iteration; i++)
    {
    averageTemperature += temperature;
    }
    averageTemperature /=iteration;
    Correct me if I am wrong. THe For Next loop will just ad up the same value of temperature for 1000 times and divide it again with 1000(no. of Itteration) as analog read(inpin) is outside of this for next loop.

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

      In a way, it is just a glorified time delay. Because you just add the same number 1000 times and divide it by 1000.

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

      you did not explain that this is. No introduction nothing. code and then "if I am wrong". Always put an introduction and so for example: "I believe the code below would be better" or "I am getting error with this code". you can click on the 3 code beside the code and edit it. this way others learn or help you.

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

      This is the code for this project according to you from the link that you provided. What i am trying to convey is that your code is not iterating.

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

      than you for letting me know. I just checked it and it is correct
      float voltage = sensorValue * (5.0 / 1023.0);
      float temperature = voltage / LM35_FACTOR;
      for(int i=0; i< iteration; i++)
      {
      averageTemperature += temperature;
      }
      averageTemperature /=iteration;

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

      @@robojax I had learnt a lot from your videos and codes. Usually, i will just gets into your code and gets the Idea, and recode myself. This is how i get curious about your code.
      Thank you and keep up the good works.

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

    sir can we use Oled display to show the temperature ?

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

      yes you can. here ua-cam.com/video/RjyulqVsz2o/v-deo.html and ua-cam.com/video/UmYiHTOz-5k/v-deo.html first learn how LM35 Works with LCD and then use it with OLED.

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

    yo tengo este problema no matching function for call to 'LiquidCrystal_I2C::begin()'
    , veo el vídeo una y otra ves pero no encuentro cual es el error que tengo en codigo.

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

      dice que no vio el video omitido. si miras 100 veces y no miras continuamente, perderás la parte importante y nunca funcionarás. No se puede explicar mejor que esto.

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

      @@robojax no me salte nada del vídeo, no es largo como para saltarse partes, lo que no entiendo es porque me pone ese error, ya que mi pantalla funciona con (0x27) y le puse ese pero sigue igual.
      Y si la respuesta esta en alguna parte del vídeo, solo quisiera saber en que minuto del vídeo, para poder arreglar el error.

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

    why my lcd did not display the temperature reading when there is no error

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

      Assalamu alaikum sister, this video requires two other parts. 1-Introduction to LM35 and make sure you read temperature on the serial monitor. 2- Introduction to LCD and make sure you can display some text. Then come his video. The links are under the video.

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

    Sir please reply that i have the same arduino genuine uno but code uploaded only once and from second time code is not uploading actually my laptop is also toooo old and second handed so i have to change my laptop?
    Or, l have read trouble shooting and they said that we should burn bootloader but that too is not happening
    So should I change my laptop??
    Sir please reply only you can help a student of your 🙏🙏🙏🙏

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

      Hello, it should work with any Arduino. this is very simple Analog reading. I have mentioned that you need to watch the Introduction to LCD1602 and make sure you can display a text. if you can't do that, you should not come to this video. the link is in the description but here once again. ua-cam.com/video/q9YC_GVHy5A/v-deo.html .

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

    exit status 1
    no matching function for call to 'LiquidCrystal_I2C::begin()'
    please help

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

      it means you skipped the video. Watch it fully, the instruction is there.

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

    why i have error in the header of

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

      you did not mention the error. But usually when the viewer skips the video and do not follow the the instruction, this happened. my videos are unlike any other. you should not have any questions left without answer if you watch it fully.

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

    it says done aploading. but nothing happens to the lcd. still boxes. and when i open the serial monitor. it says robojax lm35 with lcd for arduino. pls help

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

      I mentioned that for this video, you need to watch 1-itroduction to LM35 so you can print temperature on the serial monitor 2-Watch introduction to LCD so you are able to print "hello world" or something on the LCd. then come to this. if you haven't, then the link to those videos are in the description and in the page where the code is. good luck.

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

      @@robojax i just change the lcd adress 0x26 to 0x27. and it works. btw thankyou for the great project.

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

      you are welcome.

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

    HOW DID YOU DISPLAY IT IN CELCUIS?

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

      Have you watch the introduction to LM35? Here the video part of my Arduino course ua-cam.com/video/DRIC4wDu878/v-deo.html

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

    Sir plzz make a video on moving four servo motor using Potentiometer you had made a video 2 servo but sir plzz make a video on 4 servo and give the code plzz i am from india plzz help sir

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

      hi, this is temperature sensor? shouldn't this comment be posted under a servo video? Here are my videos on servo. I have got over 20 videos I believe ua-cam.com/users/robojaxTVsearch?query=servo

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

    Hi Robojax.
    Please can you help me out with the other project using the Nextion Screen with your Arduino Code your Code ( nexswitch ) i can not get it to load on my two Arduino boards.
    The erro message is ( expected initializer before numeric constant ) Arduino: 1.8.10 (Windows 10), Board: "Arduino Uno"
    nexswitch:1:21: error: expected initializer before numeric constant
    const int SWITCH_ON 1
    ^
    C:\Users\User\Documents\Arduino\New Projects\NEXTION_ON_OFF_DUALBUTTON
    exswitch
    exswitch.ino: In function 'void switch_control()':
    nexswitch:26:44: error: 'received_data' was not declared in this scope
    int size = Serial.readBytesUntil('
    ', received_data, 4);
    ^~~~~~~~~~~~~
    nexswitch:30:23: error: 'SWITCH_ON' was not declared in this scope
    if (switch_pos == SWITCH_ON) {
    ^~~~~~~~~
    nexswitch:33:30: error: 'SWITCH_OFF' was not declared in this scope
    } else if (switch_pos == SWITCH_OFF) {
    ^~~~~~~~~~
    exit status 1
    expected initializer before numeric constant
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

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

      I don't worked with that module and have no experience with it. Sorry

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

      @@robojax Sorry i sent it to wrong person.

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

    are you from Iran?

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

      سلام من فارس خراسانی هستم که فعلا افغانستان نامش نهادند و یکدگوشه کوچک آن دردایران امروز است. سلامت باشید

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

      همچنین

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

      سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
      www.youtube.com/@ilmofan

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

    Sir i have lcd. Init() error

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

      Provide error
      Have your watched introduction to LCD! Watch that first

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

      Here is the latest video of this lm35 ua-cam.com/video/vHS6gGLFBh8/v-deo.html

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

    ohhh

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

    Hello Mr Ahmed,
    I would like to ask you about an error I find in my arduino code. It keeps giving the same error over and over again in the line lcdDisplay (getTemperature ('C'), 'C');.
    I tap verify and it says that 'getTemperature' was not declared in this scope. Could you please help me fix that error?
    Thanks for your time,
    Apostolos.

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

      It means you skipped the video and did not follow the instruction. You have not installed the library for LCd. I mentioned it in the video. Please watch again and follow the instruction.

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

    i hade a probleme

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

      that is not enough. provide error. this is combination of separate introduction to LM35 and introduction to LCD, have you watch them separately before coming this video? if not do it. the link is under this video. Watch both and make sure to you succeed, then come to this and it will work.

  • @hungnguyen-yn1io
    @hungnguyen-yn1io 3 роки тому

    Bạn là người nước ngoài và tại sao bạn lại ghi bằng tiếng việt mà không phải tiếng anh ?

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

      Bởi vì tôi biết làm thế nào để nói những thứ. Tôi cung cấp thông tin này bằng 40 ngôn ngữ để mọi người từ bất kỳ quốc gia nào cũng có thể hiểu được.

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

    Good but dnt work on my pc

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

      You must have skipped the required. Idea Afro this 1- introduction to lm35 and 2-introduction to lcd. If you watch both before coming this video , I can assure you that will not have any issue. The links are in the description of video.

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

      Here the better version of this video which is part of the course which includes wiring diagram and more ua-cam.com/video/vHS6gGLFBh8/v-deo.html

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

      @@robojax i think the part of the problem is i use the lm35dt not the lm 35(i think only the estetic is déférent and i Search IT on Google and the Ground and the out pin was inversed and i plug IT as you Says but with the pin order of lm35dt

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

      Also why Do we need the code like 0x26?

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

      @@robojax Now IT work but how can i Do if i want only the celcius degres

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

    you can send me the code

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

      Watch first 45 seconds, it will tell you how to get it.