Skip to content

Commit c523bd6

Browse files
authored
Update README.md
1 parent ee9f579 commit c523bd6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Taking the Temperature
22

3-
![Image]()
3+
[![Image]()](https://raw.githubusercontent.com/ComputationalExpression/assignment-thermometer-template/refs/heads/media/media/thermometer.png)
44

55
|Date | |
66
|:----|:------|
@@ -83,6 +83,7 @@ ADC(4)
8383
```
8484
8585
One _might_ think that reading a temperature sensor results in a temperature. Here, that's not the case. The sensor reports a relative voltage which we need to calculate using the following formula:
86+
8687
$$ reading \times \frac{3.3}{65535} $$
8788

8889
This should result from a _method_ of `Sensor` named `read_sensor_voltage` called in `main`.
@@ -92,8 +93,11 @@ This should result from a _method_ of `Sensor` named `read_sensor_voltage` calle
9293
#### Temperatures
9394

9495
Now that we have the reading of the voltage of the sensor, we convert to a `Celsius` temperature using the following conversion:
96+
9597
$$ 27 - \frac{(voltage - 0.706)}{0.001721} $$
98+
9699
From there, we can calculate the temperature in Fahrenheit, which we'll use to determine relative warmth:
100+
97101
$$ (celsius \times \frac{9}{5}) + 32$$
98102

99103
The functions that do this work should be named, respectively:

0 commit comments

Comments
 (0)