Display Temperature on LCD1602 using LM35 Temperature Sensor with Arduino

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 101

  • @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 :)

  • @رجلالسلام-خ2و
    @رجلالسلام-خ2و 4 года назад +1

    Good job Mr Ahmed thank you shokran

    • @robojax
      @robojax  4 года назад

      You are welcome

  • @ahmedawat9940
    @ahmedawat9940 4 года назад +1

    بارك الله فيك

    • @robojax
      @robojax  4 года назад +1

      و ایاکم

  • @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.

  • @panniechristou9644
    @panniechristou9644 4 года назад +1

    Thank you , very informative , very much appreciated

    • @robojax
      @robojax  4 года назад

      You are very welcome.

  • @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 😀

  • @AAdnaanmtl
    @AAdnaanmtl 4 года назад

    Excellent explaination and good work sir

    • @robojax
      @robojax  4 года назад

      Thanks and welcome

  • @TheSchneidItworld
    @TheSchneidItworld 4 года назад

    wooow, that's gonna be useful, thanks!

    • @robojax
      @robojax  4 года назад

      Glad you think so!

  • @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 ruclips.net/video/yJYXfaU9J34/видео.html

  • @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

  • @ajith6840
    @ajith6840 2 года назад

    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  2 года назад

      To measure any voltage you don't need any sensor. watch this video ruclips.net/video/t8xwrVj2aFs/видео.html to learn how to measure any DC voltage. Here is better video for LM35 with wiring diagram which is part of a course ruclips.net/video/vHS6gGLFBh8/видео.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 2 года назад

      @@robojax Thank you so much

  • @engrsharifkakar
    @engrsharifkakar 4 года назад

    Nice video keep it up

    • @robojax
      @robojax  4 года назад

      Thanks, will do!

  • @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.

  • @davidgalstyan1569
    @davidgalstyan1569 2 года назад

    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 2 года назад

      Could you please help?

    • @robojax
      @robojax  2 года назад

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

  • @RajRaj-fh4mm
    @RajRaj-fh4mm 4 года назад

    thank you so much sir

    • @robojax
      @robojax  4 года назад

      All the best

  • @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.

  • @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

  • @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 .

  • @kabirbaf
    @kabirbaf 3 года назад

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

    • @robojax
      @robojax  3 года назад

      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.

  • @gulshan0799
    @gulshan0799 4 года назад

    sir can we use Oled display to show the temperature ?

    • @robojax
      @robojax  4 года назад

      yes you can. here ruclips.net/video/RjyulqVsz2o/видео.html and ruclips.net/video/UmYiHTOz-5k/видео.html first learn how LM35 Works with LCD and then use it with OLED.

  • @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. ruclips.net/video/q9YC_GVHy5A/видео.html .

  • @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.

  • @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 4 года назад

    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  4 года назад

      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 4 года назад

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

    • @robojax
      @robojax  4 года назад

      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 ruclips.net/video/DRIC4wDu878/видео.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.

  • @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.

  • @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 ruclips.net/user/robojaxTVsearch?query=servo

  • @erfanmansouri9335
    @erfanmansouri9335 3 года назад

    are you from Iran?

    • @robojax
      @robojax  3 года назад +1

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

    • @erfanmansouri9335
      @erfanmansouri9335 3 года назад

      همچنین

    • @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 ruclips.net/video/vHS6gGLFBh8/видео.html

  • @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.

  • @TheSchneidItworld
    @TheSchneidItworld 4 года назад

    ohhh

  • @hungnguyen-yn1io
    @hungnguyen-yn1io 4 года назад

    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  4 года назад

      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 ruclips.net/video/vHS6gGLFBh8/видео.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

  • @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.

  • @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.