Page 87 - Ai Robogenius
P. 87

SMART ECO ALARM SYSTEM

                                                                  Design a Smart Eco Alarm System using the
                                                                  micro:bit that senses light and temperature
                                                                  to help save energy. The alarm will flash LEDs

                                                                  or play a sound when the room is too hot or

                          CAPSTONE PROJECT                        too  bright,  encouraging  eco-friendly  actions
                                                                  like turning off lights or fans.







                 Session 1: Understanding Sensors and Planning

                 Activities:

                 1.  Learn about Input and Output Devices
                       Task: Research how the micro:bit uses light and temperature sensors as inputs and

                     the LED display or buzzer as outputs. Identify real-life uses such as alarms, weather
                     monitors or automatic lights and create a report.

                     Skills Practiced:  Understanding  sensor-based  input/output  and  environmental
                     awareness.
                 2.  Design Your Idea on Paper

                     Task: Draw a simple layout of the Smart Eco Alarm System showing the micro:bit,
                     sensor areas and outputs. Label input and output connections such as Pin 0, GND
                     and 3V.

                     Skills Practiced: Circuit representation and logical design planning.
                 Outcome for Session 1

                 A hand-drawn plan illustrating how the Smart Eco Alarm System works.

                 Session 2: Coding the Smart Eco Alarm in MakeCode
                 Activities:


                 1.  Create the Light and Temperature Alarm Code
                       Task: Open Microsoft MakeCode and create a new project named Smart Eco Alarm.
                     Use the light and temperature sensor blocks to detect changes in brightness and heat.
                     When light > 150, display a sun icon; when temperature > 30 °C, display a fire icon;

                     when both are high, play a short melody.
                     Skills Practiced: Conditional programming, sensor input handling and output control
                     using LEDs and sound.






                                                                                         Capstone Project
                                                                                                                    85
   82   83   84   85   86   87   88   89   90