{"id":26783,"date":"2024-05-03T12:28:05","date_gmt":"2024-05-03T04:28:05","guid":{"rendered":"http:\/\/hazlina-backup-26783"},"modified":"2024-05-03T12:28:05","modified_gmt":"2024-05-03T04:28:05","slug":"bte1522-innovation-python-week-9-bme-280","status":"publish","type":"post","link":"\/hazlina-blog\/2024\/05\/03\/bte1522-innovation-python-week-9-bme-280\/","title":{"rendered":"BTE1522 \u2013 Innovation (Python) \u2013 Week 9 \u2013 BME 280"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26784\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide35-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide35-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide35-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide35-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide35-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide35.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26785\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide36-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide36-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide36-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide36-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide36-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide36.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26786\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide37-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide37-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide37-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide37-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide37-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide37.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><strong>Exploring Temperature &amp; Humidity Sensing with Python<\/strong><\/p>\n<p>In Week 9 of our BTE 1522 Innovation (Python) class, we explored temperature and humidity sensing using Python programming. Let&#8217;s recap the key activities and learning outcomes from this week&#8217;s session:<\/p>\n<p><strong>Activity 5 &#8211; Temperature &amp; Humidity Sensor<\/strong><\/p>\n<p>We learned about working with the I2C communication protocol, which is commonly used for connecting and communicating with external sensors.<br \/>\nReading data from external sensors and interpreting the sensor data were the main coding concepts covered in this activity.<\/p>\n<p><strong>Level up Activities<\/strong><\/p>\n<p>In the Level Up challenge for Week 9, students were tasked with building upon their knowledge from previous labs and enhancing their Python programs to incorporate additional features and functionalities.<\/p>\n<p><strong>1. Completed Lab 4 with BME 280 Sensor<\/strong><\/p>\n<p>Students revisited Lab 4, which involved reading ambient temperature, pressure, and humidity using the BME 280 sensor. This sensor is commonly used for environmental sensing applications and provides accurate measurements of these parameters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26791\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1-1024x768.jpeg\" alt=\"\" width=\"840\" height=\"630\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1-1024x768.jpeg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1-300x225.jpeg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1-768x576.jpeg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1.jpeg 1156w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26792\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1024x768.jpeg\" alt=\"\" width=\"840\" height=\"630\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-1024x768.jpeg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-300x225.jpeg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12-768x576.jpeg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.12.jpeg 1080w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26793\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.11-1024x768.jpeg\" alt=\"\" width=\"840\" height=\"630\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.11-1024x768.jpeg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.11-300x225.jpeg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.11-768x576.jpeg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-03-at-12.26.11.jpeg 1080w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><strong>2. Modified Codes to Incorporate Enhancements<\/strong><\/p>\n<ul>\n<li>Displayed Sensor Readings with Units: Students modified their Python codes to display temperature, pressure, and humidity readings with appropriate units. This enhancement ensured that the data presented to users was clear, informative, and easy to interpret.<\/li>\n<li>Captured Data Every 6 Seconds: To enhance the data acquisition process, students adjusted their programs to capture sensor data at regular intervals of 6 seconds. This modification allowed for more frequent updates of sensor readings, enabling users to track changes in environmental conditions over time.<br \/>\nImplemented Red LED Blinking for Temperature Readings: As a visual indicator of sensor activity, students incorporated red LED blinking whenever temperature readings were taken. This feature provided immediate feedback to users, indicating when temperature data was being sampled by the sensor.<\/li>\n<\/ul>\n<p><strong>3. Level Up Challenge: Displayed Data on an OLED Screen<\/strong><\/p>\n<ul>\n<li>In the ultimate level up challenge, students were tasked with integrating an OLED (Organic Light Emitting Diode) screen into their projects to display sensor data in real-time. OLED screens offer advantages such as high contrast, wide viewing angles, and low power consumption, making them ideal for displaying text and graphics.<\/li>\n<li>By successfully implementing this feature, students elevated the functionality of their Python programs to a new level. Displaying sensor data on an OLED screen provided a visually appealing and intuitive way for users to monitor environmental conditions and interact with the system.<\/li>\n<\/ul>\n<p>The level up activities encouraged students to innovate and enhance their Python programs beyond the basic requirements. By incorporating OLED display integration, students elevated their projects to a new level of sophistication. OLED displays provide a visually appealing way to present sensor data in real-time, offering clear and concise information to users. Through this enhancement, students not only demonstrated their mastery of sensor data acquisition and interpretation but also showcased their creativity in user interface design and data visualization. Overall, the level up activities served as a platform for students to explore advanced concepts and apply innovative solutions to real-world challenges, fostering a spirit of creativity and experimentation in their Python projects.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26788\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide49-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide49-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide49-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide49-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide49-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide49.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26789\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide50-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide50-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide50-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide50-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide50-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide50.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26790\" src=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide51-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/05\/Slide51-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide51-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide51-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide51-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/05\/Slide51.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploring Temperature &amp; Humidity Sensing with Python In Week 9 of our BTE 1522 Innovation (Python) class, we explored temperature and humidity sensing using Python programming. Let&#8217;s recap the key activities and learning outcomes from this week&#8217;s session: Activity 5 &#8211; Temperature &amp; Humidity Sensor We learned about working with the I2C communication protocol, which &hellip; <a href=\"\/hazlina\/2024\/05\/03\/bte1522-innovation-python-week-9-bme-280\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;BTE1522 \u2013 Innovation (Python) \u2013 Week 9 \u2013 BME 280&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[13],"class_list":["post-26783","post","type-post","status-publish","format-standard","hentry","category-information","tag-academia-python-prog"],"_links":{"self":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts\/26783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/comments?post=26783"}],"version-history":[{"count":0,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts\/26783\/revisions"}],"wp:attachment":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/media?parent=26783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/categories?post=26783"},{"taxonomy":"post_tag","embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/tags?post=26783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}