No video

Using a Thermistor with Arduino FREE CODE

  Рет қаралды 24,604

Kris Kasprzak

Kris Kasprzak

Күн бұрын

Пікірлер: 36
@motoktips3024
@motoktips3024 6 жыл бұрын
Dude... I LOVE YOU!! I've been using all kinds of Thermistor guides that I could find with Google and all were total shit. This is the first one that works after 3 hours of searching and trying make it work. I'm a noob, no judging :D
@KrisKasprzak
@KrisKasprzak 6 жыл бұрын
Glad I could help.
@rotorblade9508
@rotorblade9508 3 жыл бұрын
I bought a thermistor automotive 1/8”Npt but it didn’t come with any information at all since it was supposed to be used with a specific temperature gauge. I have used a thermometer and boiled some water to plot a resistance/temperature graph. At boiling temperature I measured 96.5C so perhaps it’s not very accurate. Also if the temperature increases to quickly the two thermistors can have different reaction times. Based on the raw data I have calculated the a,b,c values. Bellow 14C I use the beta function. Next I made an excel table with all the values from -35C to 192C in my case, used concaternate function to add a “,” after each value and copy paste the values into the internet browser header that makes them a series of numbers line -36,-34,-30... instead of a column then pasted it on a vector in arduino like temp[907]={-36,-34,-30,...} so that it doesn’t calculate the logarithms to make it faster. But that’s only if you don’t need decimal places otherwise the vector gets too long, like tens of thousands of values
@ernestorivero9909
@ernestorivero9909 2 жыл бұрын
You can edit the fonts that are in the gfx library that is to say if you can change the size of the letter, the advance of the cursor the ofset
@Taran72
@Taran72 5 жыл бұрын
Thank you for doing this! It's of BIG help to my DYI projects.
@caffeinatedinsanity2324
@caffeinatedinsanity2324 2 жыл бұрын
Pretty great video. I was wondering about the equation... Doesn't the Steinhart-Hart equation only requires 3 coefficients? Your datasheet's shows 4 and an a ln squared term. Maybe the 4 coefficients equation is more accurate idk. Also little fun fact: at our job how our hvac controllers work, thermistor input configurations use a lookup table of values for figuring out the temperature that is read.
@KrisKasprzak
@KrisKasprzak 2 жыл бұрын
Not sure about that equation, I just followed the datasheet.
@philipreed2758
@philipreed2758 4 жыл бұрын
Really like this video thanks. i want to make a program that has 3 temp sensors and this will help me alot. mainly with the calculations side of it.
@KrisKasprzak
@KrisKasprzak 4 жыл бұрын
Glad I could help. Not sure what components you will use in your project, but if you run out of memory, take a look at a Teensy 3.2 I use them 99% of the time as they are faster and more capable.
@mother-fng-bonswa3612
@mother-fng-bonswa3612 6 жыл бұрын
i was hoping for a better explenation around that formula .. i don't have the formula in my data sheet to copy paste in to arduino
@oOSephirothOo
@oOSephirothOo 7 жыл бұрын
Amazing! Thank you very much.
@KrisKasprzak
@KrisKasprzak 7 жыл бұрын
Your're very welcome.
@boydbros.3659
@boydbros.3659 7 жыл бұрын
the only way I could get my generic thermistor to serial write the correct temp was to adjust R1 value manually in the sketch.
@MusaabIbrahimpharmacy
@MusaabIbrahimpharmacy 3 жыл бұрын
I am getting an error for tempK not declared (the long equation)
@kermets
@kermets 7 жыл бұрын
Hi Kris, thanks for the video, I pulled a thermistor from old laptop battery works great How do I change code to get only 1 decimal place and slow down refresh alittle to slow numbers flicking between each other ? cheers Brett
@theintelarif
@theintelarif 6 жыл бұрын
Use Serial.println(floating value, no. of decimal places) Example: Serial.println(1.23456, 4) gives "1.2346"
@oneforall200
@oneforall200 Жыл бұрын
Can I get code for lcd i2c 16×2 display?
@lafkihkhalid3473
@lafkihkhalid3473 6 жыл бұрын
Great tutorial, thank you a lot
@KrisKasprzak
@KrisKasprzak 6 жыл бұрын
Glad I could help
@theintelarif
@theintelarif 6 жыл бұрын
2:10 You could've simplified the math. Because Vo=ViR1/(R1+R2) => R2=(Vi/Vo-1)R1 So this would've given the same result and could've saved some people from the algebra phobia 😉
@kyungjindaum
@kyungjindaum 5 жыл бұрын
Wow, super informative. I want to use thermistor to monitor respiratory rate. What is the max sampling rate of the thermistor for this? Is the detection almost instantaneous? thank you so much!
@KrisKasprzak
@KrisKasprzak 5 жыл бұрын
According to the data sheet response time is 1.2 seconds (submersed in oil), I suspect air will be slower.
@choly72
@choly72 4 жыл бұрын
not find Code for writing to a 480 x 320 display ?
@KrisKasprzak
@KrisKasprzak 4 жыл бұрын
You will have to be more specific than that
@choly72
@choly72 4 жыл бұрын
@@KrisKasprzak I can't download (Code for writing to a 480 x 320 display) The link is corrupt
@darrenlee6898
@darrenlee6898 Жыл бұрын
why do you divide vo by 204.6?
@KrisKasprzak
@KrisKasprzak Жыл бұрын
An analog pin will read the number of bits measured for the 10 bit device. That would be a maximum of 1024 bits since the max voltage is five. Since the goal is to get volts, you have to use a conversion factor 5 V divided by 1024 which is 204.6.
@darrenlee6898
@darrenlee6898 Жыл бұрын
@@KrisKasprzak after some great staring I figured it out. So you had 1023/5=204.6… I am using 3.3 volts as my reference so I used (1023/vref). Thank you for this! I had a couple tutorials help with this. Yours helped me get the proper resistance reading and another helped me convert the resistance to temp reading. A beautiful exercise and always exciting when it works
@ramav2578
@ramav2578 4 жыл бұрын
Any chance you are still around and can answer why my temperature values reduce when I warm the thermistor?
@KrisKasprzak
@KrisKasprzak 4 жыл бұрын
I'm guessing you have your thermistor wired on the high side of your voltage divider or you don't have an NTC type thermistor
@ramav2578
@ramav2578 4 жыл бұрын
@@KrisKasprzak it seems I have a pt100 type thermistor. I didn't know it but this is the item needed for this application. Any chance you have any experience with these thermistors?
@KrisKasprzak
@KrisKasprzak 4 жыл бұрын
@@ramav2578 never used one but from what i can see its and NTC device. Is one end gets connected to ground?
@ramav2578
@ramav2578 4 жыл бұрын
@@KrisKasprzak yes one side goes tot the negative and the other side is connected between a resistor and the A0 pin
@KrisKasprzak
@KrisKasprzak 4 жыл бұрын
@@ramav2578 I think I know the answer here but put it on meter across your thermistor and then heat up your thermistor. What happens to the resistance?
@shutdahellup69420
@shutdahellup69420 7 жыл бұрын
Man what dafuk?
DIY Oscilloscope for $20 - FREE CODE
4:13
Kris Kasprzak
Рет қаралды 40 М.
Arduino Coolant Sensor | Thermistor
15:15
Ovens Garage
Рет қаралды 18 М.
الذرة أنقذت حياتي🌽😱
00:27
Cool Tool SHORTS Arabic
Рет қаралды 6 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 118 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 42 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 43 МЛН
Thermistor for measuring/controlling temperature
4:51
RimstarOrg
Рет қаралды 477 М.
NTC thermistor thermometer with STM32/Arduino
29:23
Curious Scientist
Рет қаралды 17 М.
How to measure temperature using arduino
7:54
Electro Retro
Рет қаралды 25 М.
Thermistors - NTC & PTC - Thermal Resistors - Temperature Sensors & Resettable Fuses
13:33
The Organic Chemistry Tutor
Рет қаралды 117 М.
Measuring Temperature with Arduino - 5 Sensors
29:55
DroneBot Workshop
Рет қаралды 141 М.
Doing multiple timed things with Arduino: Unleash the millis()!
12:25
Programming Electronics Academy
Рет қаралды 122 М.
Arduino Tutorial #12 (Thermistor Temp Sensor)
32:44
Pete Vree
Рет қаралды 18 М.
How To Wire It! Thermistors
7:15
ItKindaWorks
Рет қаралды 35 М.
الذرة أنقذت حياتي🌽😱
00:27
Cool Tool SHORTS Arabic
Рет қаралды 6 МЛН