Page 107 - Toucpad robotics C11
P. 107

21 st
                                                                                                    Century    #Digital Literacy
                                  In a self-driving car, the vehicle must process multiple types of sensor   Skills
                                  data, including cameras, LIDAR, and radar, to understand its environment. The car uses Boolean
                                  logic to make decisions such as whether to stop at a red light or avoid a pedestrian crossing. How
                                  does  Boolean  logic  facilitate  these  decisions,  and what are the potential  risks associated  with
                     deep         misinterpreting  sensor data?  Additionally,  how can these risks be mitigated  through improved
                   thinking       sensor calibration and more complex decision-making algorithms?





                                                                                     21 st
                   LAB ACTIVITY                                                    Century    #Coding & Computational Thinking
                                                                                    Skills
                      Blink an LED with Logic

                      ∑   Tools: Arduino Uno, Breadboard, LED, Resistor, Push Button.
                      ∑   Task: Implement a simple logic gate using Arduino.
                      ∑  Steps:

                         1.  Connect an LED to Arduino digital pin.
                         2.  Connect two push buttons as inputs.
                         3.  Write Arduino code for an AND condition (LED ON only when both buttons are pressed).
                         4.  Extend it with OR logic.
                      ∑   Outcome: Students understand Boolean logic and how computing translates into physical output.































                     Answers
                  Exercise (Solved)
                  A.  1. ii    2. iii    3. ii    4. iv   5. ii    6. iv   7. ii    8. iii    9. ii    10. i
                  B.  1.  George Boole     2.  Flowchart   3.  Both inputs are 0   4.  Brain          5.  Microcontroller
                      6.  Oval             7.  Instructions   8.  Brain         9.  Raspberry Pi     10.  Boolean
                  C.  1.  False            2.  False     3.  True               4.  False             5.  True
                  D.  1.  c                2.  a         3.  b                  4.  d                 5.  e


                                                                                                                      105
                                                                                                          Computing System
   102   103   104   105   106   107   108   109   110   111   112