Page 38 - ODV Training outline_EN
P. 38







               Fully interactive robots

               Despite the use of sensors being a simple application in itself, they can be used to
               build and program robots capable of autonomously performing predetermined
               operations that adapt to the surrounding world by exploiting sensor readings.
               Therefore,  by  adding  sensors  to  the  previously  built  two-wheeled  robot,
               progressively more complex behaviours can be conceived based on conditional
               logic, corresponding to specific programming blocks.





























                                       Stop with obstacle - ultrasonic sensor

               A  first  example  of  an  interactive  mobile  robot  could  involve  incorporating  an
               ultrasonic sensor, capable of detecting the presence and distance of an obstacle.
               This can lead to generating code that instructs the robot to perform a specific
               movement based on the obstacle's presence condition. Typically, the robot would
               start moving and only stop when the sensor detects the presence of an obstacle
               closer than a specified threshold.

               The construction of robots and their programming can become  progressively
               more complex, allowing the achievement of  behaviours  with conditional logic
               based  on  more  than  one  sensor  or  the  various  levels  of  their  readings  and
               thresholds.

               For example, one could add a colour sensor to the previous robot, in addition to
               the ultrasonic sensor. The movement of the robot could then be conditioned by
               both  the  colour  perceived  by  the  sensor  (usually  positioned  downward  to

               influence its behaviour by colouring the surface it moves on) and the presence of
               any  obstacles  in  front  of  the  ultrasonic  sensor.  An  example  of  a


                                         Funded  by  the  European  Union.  Views  and  opinions  expressed  are  however  those  of  the
                                         author(s) only and do not necessarily reflect those of the European Union or the European
                                         Education and Culture Executive Agency (EACEA). Neither the European Union nor EACEA can
                                         be held responsible for them. Proposal number: 101087107.

   33   34   35   36   37   38   39   40   41   42   43