As seen in
The displayed value was within the acceptable margin of error for the program. See the below screencaps of the oscilloscope to verify the measurements.
This
Shows the output of the LED's
The output is ask requested in Binary Coded Decimal, with the left 3 LED's displaying the 10's digit of a decimal number in binary and the right 4 LED's displaying the ones digit in binary. A lit LED is a 1.
Unfortunately, due to technical difficulties near the deadline, contiguous video showing the programming, oscilloscope, and lights is not available.
The program calculates the temperature by polling for 1's until the voltage drops to 0, then polling 0's until the voltage rises again. It then uses the formula 235-((400*T1)\T2) with T1 being the number of 1's polled and T2 being 0's. This effectively measures the relative amounts of time that the signal is high and low(1 and 0 respectively).
Using interrupts would likely prove to be more accurate, but due to time constraints, that method was not explored.

No comments:
Post a Comment