We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c873588 + c8a1904 commit b89b320Copy full SHA for b89b320
adc/temperature.py
@@ -7,6 +7,8 @@
7
while True:
8
reading = sensor_temp.read_u16() * conversion_factor
9
10
+ # The temperature sensor measures the Vbe voltage of a biased bipolar diode, connected to the fifth ADC channel
11
+ # Typically, Vbe = 0.706V at 27 degrees C, with a slope of -1.721mV (0.001721) per degree.
12
temperature = 27 - (reading - 0.706)/0.001721
13
print(temperature)
14
utime.sleep(2)
0 commit comments