3 Great Arduino Temperature Sensors // LM34, DS18B20, and DS3231 Real Time Clock

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • This video outlines 3 great Arduino temperature sensors for use in your personal projects, including the LM34 (LM35), DS18B20, and DS3231 real-time clock. So, whether you are building a temperature logger or a feedback controller, this video will help you determine which sensor is best for your project.
    The LM34 temperature sensor measures Farenheit at 10mV/degree, so it is very easy to program using Arduino. It is an analog temperature sensor, so you need 1 analog pin on the Arduino for each sensor. The sensor updates continuously, so it is good for high speed measurement. Be careful however to keep the wires as short as possible or use shielding, as it can be subject to interference.
    The DS18B20 uses the 1-wire library to communicate with the Arduino. It has an accuracy of ±2°C. The cool thing is that you can connect multiple DS18B20 sensors to the Arduino on a single digital input. The DS18B20 can be used far away from the Arduino, so they are great for measurements in applications such as a greenhouse.
    The DS3231 is a real-time clock (rtc) that is compatible with Arduino. It can keep track of the day, month, year, hour, minute, second, and yes…even the temperature. This makes this module a good fit for an Arduino temperature data logger.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 32

  • @readyplayerprime8195
    @readyplayerprime8195 3 ปีที่แล้ว +2

    I'm putting together a project using an Arduino Nano to control a small lake aeration system running a couple of oil-free compressors, some cooling fans for the after-coolers, indicator lights, pressure sensors, and solenoid valves to distribute air to 5 different locations throughout the water. I've used a 74hc595 to control an 8 relay module but I am still a bit short on pins. I will need to monitor temperature for the control enclosure and found your video while researching the DS3231 temperature sensor usage since I will be data-logging the system. Thanks for the video!

  • @jurzs6505
    @jurzs6505 2 ปีที่แล้ว

    i have had trouble and have spent like 8 hours on fixing my ds 18b20 sensor,thank you ,this code fixed it

  • @kellnatalia2054
    @kellnatalia2054 4 หลายเดือนก่อน

    THANK YOU THANK YOU THANK YOU SO MUCH FOR MAKING THIS VIDEO! It is really helpful for my project and I wish you all the best!!!

  • @kellnatalia2054
    @kellnatalia2054 4 หลายเดือนก่อน

    Also, for the DS3231, which DS3231 library did you use, and how to install it (do you install it from the Arduino IDE or from github?)

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 หลายเดือนก่อน

      That was so long ago... I probably got it from the Arduino IDE.

  • @limitlessbuilds
    @limitlessbuilds 2 ปีที่แล้ว

    Hey, I’m just starting to look into arduino stuff now, and might be over my head on this one. 😂. What I would like to do is control a stepper motor based on the temperature inside a box. The stepper will open and close the lid as required to maintain temp. Any chance you could help!??

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว +1

      Yes. I have videos on stepper motors, fan speed control based on temperature, and videos on linear actuators. Check out the videos on my channel. Not exactly what you are looking for, but if you pieced it all together you could get it working. Good luck!

  • @icarossavvides2641
    @icarossavvides2641 3 ปีที่แล้ว

    Quote from datasheet "The resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits,
    corresponding to increments of 0.5°C, 0.25°C, 0.125°C,
    and 0.0625°C". The datasheets are written for a reason everyone!

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      Good to know. 12 bit is much better, wonder why they just don't set it there all the time...

  • @hawkenvanguard3032
    @hawkenvanguard3032 2 ปีที่แล้ว

    Something I have noticed is that the DS18B20 sensor is not super accurate at room temperature. It seems to report values a few degrees higher than it should. It becomes more accurate the farther away it is from room temp, but my sensor was report 80 degrees instead of 73-ish degrees for the ambient temperature

    • @ScienceFunInnovations
      @ScienceFunInnovations  ปีที่แล้ว

      That is pretty far off. Mine have seemed better than that, but not super accurate.

  • @williampowell7518
    @williampowell7518 2 ปีที่แล้ว

    for the DS18B20. I am trying to figure out why the temperature doesn't update. if I apply heat or let it cool down the new temperature doesn't reflect unless I restart/reset the Arduino board. Any idea what could be causing this?

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว

      Weird. Sounds like it is not looping. Or maybe a dud sensor?

  • @jonahvimeo4276
    @jonahvimeo4276 ปีที่แล้ว

    thank you for that very loud gun shot sound which woke up my kid and almost made me a heart attack

    • @ScienceFunInnovations
      @ScienceFunInnovations  ปีที่แล้ว

      LOL. That is actually a lightning bolt. Have to make sure that my viewers are paying attention. :-)

  • @ghijorihajar2563
    @ghijorihajar2563 4 ปีที่แล้ว +1

    I used in my projet ds18b20 with ds3232 but ds3232 does not work successfully can you help me please

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว +1

      I just added the code I used to my Facebook page @ScienceFun4u
      Was there a specific problem that you are experiencing?

    • @ghijorihajar2563
      @ghijorihajar2563 4 ปีที่แล้ว

      @@ScienceFunInnovations thank you very much .I solved the problem after I changed the code

  • @otiro2045
    @otiro2045 2 ปีที่แล้ว

    hey when I connect my DS18B20 exactly the same way you did it says 0 sensors found

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว

      Weird. Maybe a bad sensor? I just had one stop working for me.

  • @Organ18
    @Organ18 2 ปีที่แล้ว

    How to rename the sensor on the display ??

  • @650_vrushabhzunjurkarzunju9
    @650_vrushabhzunjurkarzunju9 3 ปีที่แล้ว +1

    #include
    #include
    #define ONE_WIRE_BUS 2
    OneWire oneWire(ONE_WIRE_BUS);
    DallasTemperature sensors(&oneWire);
    int numberSensors=0;
    float Celsius;
    void setup(void) {
    sensors.begin();
    Serial.begin(9600);
    numberSensors= sensors.getDeviceCount();
    Serial.print(numberSensors);
    Serial.println("sensors found");
    Serial.println(Celsius);
    }
    void loop(void) {
    sensors.requestTemperatures();
    for (int i=0 ; i

  • @mihapeterle204
    @mihapeterle204 3 ปีที่แล้ว

    accurasy is lower

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      Yes. But to control something like an greenhouse fan, it is close enough. Thanks for watching.