Page 47 - Robo_Genius_V1.0_flipbook_C7
P. 47

Objective

                  How does an IR sensor work with the motor.

                  How the sensors are helpful in saving energy.


                 Component Required









                     Brain       USB cable       Motor with       IR Sensor module    3 pin connector    Power bank
                                               propeller module
                 Circuit Diagram























                 Programming

                 Step 1  From block palatte select loops option. Drag and drop repeat while block on the workspace.












                 Step 2  Click on Logic option, drag and drop block True and attach it with repeat while block.










                 Step 3  Click on Logic option, drag If do block and comparison operator block, attach them with
                          each other inside the repeat while block on the workspace.





                                                                Introduction to Programming using Tinker Orbits  45
   42   43   44   45   46   47   48   49   50   51   52