Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 104 - Toucpad robotics C11
P. 104

    ∑  Pseudocode:

                                  Start
                                 While robot ON
                                     If left_sensor = black AND right_sensor = black   Move forward

                                     If left_sensor = black AND right_sensor = white   Turn left
                                     If left_sensor = white AND right_sensor = black   Turn right
                                  End
                      2.   A school wants to automate classroom lights using sensors and a microcontroller. Suggest a design, mentioning
                         the components required and how computing logic will be applied.
                         Ans.  Classroom light automation:
                               Components: Light sensor (LDR), microcontroller (Arduino), relay, LED/bulb.

                               Logic:
                               If light intensity < threshold   Switch ON light.
                               Else   Switch OFF light.

                               Application: Saves energy by automatic lighting.

                                                                                                   Unsolved Questions

                                                    SECTION A   (Objective Type Questions)
                     QUIZ
                  A.  Tick ( ) the correct option.
                      1.  Boolean logic is based on:
                           i.  Sets and subsets                            ii.  True/False values

                          iii.  Probability theory                        iv.  Natural numbers
                      2.  The NOT gate produces an output that is:
                           i.  Same as input                               ii.  Opposite of input

                          iii.  Always 1                                  iv.  Always 0
                      3.  Which of the following is most suitable for real-time control of motors and sensors?

                           i.  Raspberry Pi                                ii.  Arduino Uno
                          iii.  Laptop computer                           iv.  Cloud server

                      4.  A Raspberry Pi is primarily used when:
                           i.  Only simple switching is required

                          ii.  Complex computation and multitasking are needed
                          iii.  Input devices are unnecessary

                          iv.  Power supply is unlimited
                      5.  The flowchart symbol for a process (task execution) is:

                           i.  Diamond                                     ii.  Oval
                          iii.  Rectangle                                 iv.  Parallelogram

                  102
                  Touchpad Robotics - XI

| 99 100 101 102 103 104 105 106 107 108 109 |