This shows you the differences between two versions of the page.
pm:prj2023:tmiu:weathermonitoringsystem [2023/05/27 22:06] malak.safiya [Software Design] |
pm:prj2023:tmiu:weathermonitoringsystem [2023/05/30 12:43] (current) malak.safiya [Bibliography/Resources] |
||
---|---|---|---|
Line 125: | Line 125: | ||
| | ||
- | What were the results obtained after the realization of your project. | + | For example if the temperature = 37.2 °C and this is the value which the Adafruit library returns using the function dht.readTemperature(), by multiplying this value by 10 we get 372. |
+ | yields: (372 / 100) % 10 = 3 | ||
+ | (372 / 10) % 10 = 7 | ||
+ | 372 % 10 = 2 | ||
+ | The number 48 is used to convert decimal numbers to AscII because the LCD works with AscII format. | ||
+ | The line temperature[11] = 223; is for the degree symbol ( °). | ||
===== Conclusions ===== | ===== Conclusions ===== | ||
+ | The conclusion is that the code converts the floating-point values of temperature and humidity into a formatted string representation with one decimal place. This string representation is stored in character arrays, which can be used to display the values on an LCD or any other output device that can handle character arrays. | ||
===== Download ===== | ===== Download ===== | ||
Line 153: | Line 158: | ||
| | ||
- | List of documents, datasheets, Internet resources used, possibly grouped by **Software Resources** and **Hardware Resources**. | + | https://www.youtube.com/watch?v=pgOvNURUoT0 |
+ | https://www.youtube.com/watch?v=l5VVnn-Wl3A | ||
+ | https://www.youtube.com/watch?v=Xsde8OmxxBU | ||
+ | https://www.youtube.com/watch?v=Br79h2zSfKg | ||
+ | https://www.youtube.com/@simple-circuit | ||