LED Matrix 4 - Temperature
Anweisungen:
In this exercise you have the possibility to control an LED-Matrix with JavaScript.This is realized by a given temperature sensor value and a matrix template (available by the function weathericons.getThermometer() ) to display the temperature value. For the realization you have to evaluate the temperature sensor value given by the ADC (Analog Digital Converter) of the embedded system. The temperature sensor value is available in the variable temperature in the following format ("TEMP value", e.g. "TEMP 2027"). This value is between 0 and 4095 and you should find out how to remove additional useless data. You have to think about a formula to calculate the ADC value in degree Celsius. The ADC value is between 0 and 4095 and represents linearly a voltage between 0 and 2.9V. Every 5mV represent 1 degree in Kelvin. Finally you have to convert degree Kelvin in degree Celsius (Note: 0°C are 273.15°K). Please round degree Celsius to integers according to mathematical rounding rules.
Task:
Display in the given template the current temperature in degree Celsius between 19°C and 33°C. An example at 22°C is shown in the picture below.
- Mit dieser Aufgabe können Bonuspunkte verdient werden.
- 2.0 Punkte
- Abgabe bis Juli 17, 2015 um 20:00 Uhr (UTC)