Page 60 - Robo_Genius_V1.0_flipbook_C8
P. 60

Extend the if do block with else.


























                  Step 5  Click on output tab, drag block SET LED on and HIGH, drop it inside an if condition and
                           change pin 0 to pin 8. Similarly, drag Set LED block again from the output, change the pin
                           number to 6 and attach it with logic LOW inside a condition else.




















                  Step 6   Connect the brain and Mobile/Desktop/Laptop with the cable to upload the code.
                  Step 7   Once the code is uploaded connect the brain with power bank and check for the result.


                  Concept

                  This activity helps students understand the working of a basic electric circuit. A switch controls
                  the flow of electricity by either completing or breaking the circuit. When the switch is in the “ON”
                  position, the circuit is complete, and electricity can flow from the battery to the LED, causing it to




                       58    RoboGenius (V1.0)-VIII
   55   56   57   58   59   60   61   62   63   64   65