This shows you the differences between two versions of the page.
pm:prj2022:apredescu:humidity_and_temperature_sensor [2022/06/02 01:41] alhassan.idrees [Software Design] |
pm:prj2022:apredescu:humidity_and_temperature_sensor [2022/06/02 02:11] (current) alhassan.idrees |
||
---|---|---|---|
Line 30: | Line 30: | ||
<note type> | <note type> | ||
For the realization of this project we used as development medium the Arduino IDE program, in which we selected from the Tools menu the motherboard used. Also, to make the connection between the board and the OLED display, I imported from the internet the library "Adafruit_SSD1306.h", and for the correct use of the DHT11 temperature and humidity sensor I included the libraries "DHT" and "Wire". | For the realization of this project we used as development medium the Arduino IDE program, in which we selected from the Tools menu the motherboard used. Also, to make the connection between the board and the OLED display, I imported from the internet the library "Adafruit_SSD1306.h", and for the correct use of the DHT11 temperature and humidity sensor I included the libraries "DHT" and "Wire". | ||
- | {{:pm:prj2022:apredescu:1_code.jpg?350 |}} | ||
</note> | </note> | ||
+ | {{:pm:prj2022:apredescu:1_code.jpg?500 |}} | ||
+ | <note type> | ||
In terms of complexity, the code is relatively simple, consisting of two functions ("setup" and "loop"). Before implementing the two functions, i used the OLED display, also the humidity sensor. | In terms of complexity, the code is relatively simple, consisting of two functions ("setup" and "loop"). Before implementing the two functions, i used the OLED display, also the humidity sensor. | ||
- | {{:pm:prj2022:apredescu:2_code.jpg?350 |}} | + | </note> |
+ | {{:pm:prj2022:apredescu:2_code.jpg?500 |}} | ||
+ | <note type> | ||
In the "Setup" function, for the beginning,I started the display. To display the text, first I selected the lines on which I want the text to be written and then I printed it. in order not to have a text overlapping with the information provided by the device, I reset the display and turn on the sensor (begin () function). | In the "Setup" function, for the beginning,I started the display. To display the text, first I selected the lines on which I want the text to be written and then I printed it. in order not to have a text overlapping with the information provided by the device, I reset the display and turn on the sensor (begin () function). | ||
- | {{:pm:prj2022:apredescu:3_code.jpg?350 |}} | + | </note> |
+ | {{:pm:prj2022:apredescu:3_code.jpg?500 |}} | ||
+ | <note type> | ||
The "Loop" function is the function where the whole process of determining the temperature and humidity takes place. In this function, the first step I took was to declare two variables (humidity and temperature) that read the values in the sensor. The readTemperature () function has a false value as a parameter because I decided to display the temperature in degrees Celsius. If the value was true, it was displayed in degrees Fahrenheit on the screen. | The "Loop" function is the function where the whole process of determining the temperature and humidity takes place. In this function, the first step I took was to declare two variables (humidity and temperature) that read the values in the sensor. The readTemperature () function has a false value as a parameter because I decided to display the temperature in degrees Celsius. If the value was true, it was displayed in degrees Fahrenheit on the screen. | ||
Line 42: | Line 47: | ||
For the display I used the same method as in the "Setup" function. | For the display I used the same method as in the "Setup" function. | ||
- | {{:pm:prj2022:apredescu:4_code.jpg?400 |}} | + | </note> |
+ | {{:pm:prj2022:apredescu:4_code.jpg?500|}} | ||
===== Results Obtained ===== | ===== Results Obtained ===== | ||
Line 48: | Line 54: | ||
What were the results of your project? | What were the results of your project? | ||
</note> | </note> | ||
+ | {{:pm:prj2022:apredescu:idrees_1.jpeg?nolink&300 |}} | ||
+ | {{:pm:prj2022:apredescu:idrees_2.jpeg?nolink&300 |}} | ||
+ | |||
- | ===== Conclusions ===== | ||
===== Download ===== | ===== Download ===== | ||
- | |||
- | <note warning> | ||
- | An archive (or more if necessary) with the files obtained from the project: sources, schemes, etc. A README file, a ChangeLog, a compile script and automatic copy on uC always make a good impression ;-). | ||
- | |||
- | Files are uploaded to the wiki using the ** Add Images or other files ** feature. The namespace in which the files are uploaded is of the type **: pm: prj20 ??: c? ** or **: pm: prj20 ??: c?: Student_name ** (if applicable). ** Example: ** Dumitru Alin, 331CC -> **: pm: prj2009: cc: dumitru_alin **. | ||
- | </note> | ||
- | |||
- | ===== Journal ===== | ||
<note type> | <note type> | ||
- | You can also have a diary section where the project assistant can track the progress of the project. | + | {{:pm:prj2022:apredescu:humidity_and_temperature_sensor_idrees_alhassan_1221ea.zip|}} |
- | </note> | + | |
- | + | ||
- | ===== Bibliography / Resources ===== | + | |
- | + | ||
- | <note> | + | |
- | List of documents, datasheets, Internet resources used, possibly grouped on ** Software Resources ** and ** Hardware Resources **. | + | |
</note> | </note> | ||
- | <html> <a class="media mediafile mf_pdf" href="?do=export_pdf"> Export to PDF </a> </html> | ||
+ | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> |