- Thread Starter
- #61
That one makes sense to me, it's just horrendously crude is all.
I want to find one that you calibrate by setting a few variables and it extrapolates the temp between 'em.
I don't know that it's even possible without writing the equation myself (not likely to happen, heh, more likely to give me a massive headache).
Here's some info they gave us...
You can calculate the voltage of a circuit with known resistance with the equation:
Vout = Vin *(R2/(R1+R2))
R1 refers to the thermistor resistor and R2 refers to the fixed resistor.
For example, if it is 25C, using a 10K Ohm resistor, the calculation becomes:
3.40V= 5*(10000/(10000+4700))
So, at room temperature, you’d expect the voltage to by 3.57V.
This can be rearranged to calculate the resistance of the thermistor using the following
equation:
R1 = ((R2 x Vin)/Vout) - R2
So for room temperature, the resultant calculation is:
(10000 x (5/3.40)) – 10000 = 4700 Ohm.
Use this to calculate the resistance of the thermistor from the voltage you read from
the circuit in (1).
I wonder if it could be done like I did the other one with a switch case statement? That made a lot of sense to me....but it would be pretty clunky.
Clunky isn't really my concern though...I'm kind of at the point where I'm just trying to scrape by in this unit....and these labs aren't weighted highly at all. The exam is worth heaps and we've been told there won't be many arduino questions in it....but we have 2 projects coming up and we need to use our knowledge from these labs to build them. The first is to make a climate control device...so you can see why they want you to complete the labs.