Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 72 - Robo_Genius_V1.0_flipbook_C3
P. 72

    be programmed to use this environmental
                      information  as an  input  to  carry-out

                      further  instructions in  computer  systems.
                      For example, you can code the micro:bit to

                      make a sun light that shines brightly when
                      the  light  sensor  senses  it  is  bright;  when
                      the light levels are very low.

                      The micro:bit uses the LED display as the

                      light  sensor.  The  LED display  performs
                      two  functions  on  the  micro:bit,  to  light  up                START
                      and glow brightly and to also detect, measure                     FOREVER

                      and respond to the level of light wherever it is                      READ THE LIGHT VALUE
                      placed.                                                               IF MORE THAN 100

                                                                                            TURN LEDS ON
                      Algorithm Used
                                                                                            ELSE
                      The algorithm used for the activity is:                               CLEAR SCREEN

                                                                                        END

                                                                                                    21 st   #Creativity
                                                                                                  Century
                                                                                                    Skills  #Technology Literacy
                        Activity       Programming a Sunlight Sensor
                                       Using Micro:bit

                      Step 1       Go to Microsoft make code https://makecode.microbit.org/

                      Step 2       Click on new projects.

                                             Click on new
                                             project

                      Step 3       Create a project.

                           70    RoboGenius (V1.0)-III

| 67 68 69 70 71 72 73 74 75 76 77 |