Тёмный

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

Science Fun
Подписаться 6 тыс.
Просмотров 14 тыс.
50% 1

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.

Наука

Опубликовано:

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@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
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Glad it could help!
@readyplayerprime8195
@readyplayerprime8195 3 года назад
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!
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Glad it was helpful!
@kellnatalia2054
@kellnatalia2054 6 месяцев назад
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!!!
@ScienceFunInnovations
@ScienceFunInnovations 6 месяцев назад
You're very welcome!
@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. :-)
@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...
@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 года назад
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!
@kellnatalia2054
@kellnatalia2054 6 месяцев назад
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 6 месяцев назад
That was so long ago... I probably got it from the Arduino IDE.
@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?
@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 2 года назад
That is pretty far off. Mine have seemed better than that, but not super accurate.
@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.
@ghijorihajar2563
@ghijorihajar2563 4 года назад
I used in my projet ds18b20 with ds3232 but ds3232 does not work successfully can you help me please
@ScienceFunInnovations
@ScienceFunInnovations 4 года назад
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
@user-hh6uq5oq4h
@user-hh6uq5oq4h 5 дней назад
Can i use THIS project for My School does IT help me ?
@ScienceFunInnovations
@ScienceFunInnovations 4 дня назад
Go for it!
@Organ18
@Organ18 2 года назад
How to rename the sensor on the display ??
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
What exactly are you trying to do?
@pkmathclasses1038
@pkmathclasses1038 Месяц назад
Kitna ka hai
@ScienceFunInnovations
@ScienceFunInnovations Месяц назад
How much is what?
@650_vrushabhzunjurkarzunju9
@650_vrushabhzunjurkarzunju9 3 года назад
#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
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Thanks!
@bugfinder9733
@bugfinder9733 3 года назад
Hey sir please give one Arduino mega board 🙏🙏
@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.
Далее
Measuring Temperature with Arduino - 5 Sensors
29:55
Просмотров 141 тыс.
Угадай МОБА 1 🥵 | WICSUR #shorts
01:00
Просмотров 718 тыс.
БАТЯ И ТЁЩА😂#shorts
00:58
Просмотров 2,4 млн
Как вам наш дуэт?❤️
00:37
Просмотров 368 тыс.
PT100 - Temperatur messen mit dem Arduino
41:22
Просмотров 3,2 тыс.
5 temperature sensors for arduino projects
16:34
Просмотров 10 тыс.
HYDRAULIC PRESS VS ARMOR, USA AND RUSSIA
10:16
Просмотров 81 тыс.
Sensors - which one to use
17:06
Просмотров 1,3 млн
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 27 млн