Page 45 - Robo_Genius_V1.0_flipbook_C7
P. 45

Programming

                 Step 1  Select light option from block palette, click on SET LED ON and HIGH block and drop it on a
                          workspace two times.



















                 Step 2  Select time option from block palette. Click on wait 1000 microseconds block and drag and
                          drop it on a workspace two times.










                 Step 3  Make sure LED should be HIGH during the first drag drop
                          condition and LOW in the second condition. Run the code
                          and check the result.



                 Learning Outcomes


                 Students learnt about the interfacing of LED module with Tinker orbits brain and concept of delay.

                 Concepts

                  Interfacing of electronic components and software.

                  Programming:  Learning  to  write  simple code  to  control  the  blinking  of an  LED,  reinforcing
                   programming concepts.

                  Time Measurement: Using timers in programming to control the duration of the LED blinking.

                  Understanding LEDs: Discussing the energy efficiency of LEDs compared to traditional bulbs and
                   their applications in saving energy.

                 Observations

                 In this activity, you can see how the LED blinks for a certain amount of time. By changing the “wait”
                 value in the code, you can actually change how long the LED stays on or off!






                                                                Introduction to Programming using Tinker Orbits  43
   40   41   42   43   44   45   46   47   48   49   50