Page 57 - Robo_Genius_V1.0_flipbook_C8
P. 57

Step 3  See the output
                            A few seconds after the upload is complete, you should see the output on your Tinker Orbits
                            kit. For example, if your code tells an LED light to turn on, it will light up on your hardware.

                 Coding Block Description


                             CATEGORIES/BLOCKS                                      DESCRIPTION

                  Lights
                                                                   This pin is used to set the LED high/low.


                  Sensors

                                                                   It read the value from the LDR sensor.


                                                                   It read the value from the Soil moisture sensor.


                                                                   It read the value from the IR sensor.


                                                                   It read the value that from the DHT11 module.

                                                                   It  read  the  value  that  comes  from  the  DHT11
                                                                   module.

                  Output

                                                                   It is used to display the value that is read by the
                                                                   sensors.

                                                                   It is used to set the buzzer high/low.


                                                                   This pin is used to set the value of servo motor.

                                                                   It is used to set the motor high/low.



                  Logic

                                                                   The “if do else” and comparison block (=) is found
                                                                   under the category of loops. The “if do else” block
                                                                   helps a program make decisions and also check
                                                                   the  conditions.  The  comparison  block  uses  the
                                                                   mathematical operations (=, <.>, <+=,>= and.) to
                                                                   compare two conditions/quantities.



                                                                           Programming with Tinker Orbits Kit  55
   52   53   54   55   56   57   58   59   60   61   62