Let me start by saying when it comes to the Arduino IDE I am a novice with just a little experience and a very basic understanding of programming structure and basic commands. Whenever I am working on a project I normally combine and modify bits of example code to use for my projects.
Let me explain what I am trying to do. I have a TIG welder that has a very loud cooling fan that runs constant. For my very light duty requirements, this is not necessary. So, I am planning on placing at least one thermistor on an internal heatsink and using the temperature to activate a relay if it goes above a threshold, which will power the fan.
My plan was to use the code I found online a while ago which converts a thermistor reading to a temperature value in the serial monitor (Thermistor_100k), and combine it with a simple if-else statement.
The confusion comes from all of the math and conversions needed in the thermistor code to convert it to a temperature. I have no idea how I would set a threshold to power a pin at or above a predetermined temperature.
Any help would be greatly appreciated and Thank You in advance!
Thermistor_100k.ino (632 Bytes)