Page 48 - RoboGenius Pro C4
P. 48

A sensor is a special electronic part that can detect changes such as movement,
                  light, sound, direction or temperature. It collects information and sends it to the

                  robot’s brain or microcontroller, which decides what to do next.
                  Robots cannot see or hear like humans do, but they use sensors to understand the

                  world around them. Sensors can detect movement, direction, temperature, light
                  and more.

                                                                      Think about  your smartphone.  It turns
                                                                      the screen automatically when you tilt

                                                                      it or counts your steps when you walk.
                                                                      This happens because  of sensors. The

                                                                      Micro:bit also has built-in sensors that
                                                                      allow it to do similar things.



                  MOTION SENSOR


                  The Micro:bit can sense movement through its motion
                  sensor, also known as the accelerometer.

                  It detects when you shake, tilt or turn the board in
                  different directions. which means it can detect changes

                  in speed and direction. When you move or shake the                 Motion
                  Micro:bit, the accelerometer reacts to those changes.              Sensor

                  For example,  when you  shake  the  Micro:bit,  the  accelerometer  detects  the
                  sudden change in the board's position. It quickly measures how much the Micro:bit

                  has moved.

                  Similarly, if you tilt the Micro:bit (left, right, up or down), the accelerometer can tell
                  in which direction you’ve moved the device.

                  It measures the angle of tilt  and sends this information  to  the Micro:bit’s  brain
                  (the microcontroller), which can then trigger an action.

                  These movement  signals  are sent as data to  the Micro:bit,  which  can then use

                  the data to perform different tasks. For example, shaking the board might make
                  the Micro:bit show a smiley face or tilting it left could make an arrow appear on

                  the screen pointing left.
                  You  can use  these  signals  to  create  interactive  projects,  such  as  games  where

                  shaking the Micro:bit triggers an event, like rolling a dice or jumping over an obstacle.
                  You can also create timers where tilting the Micro:bit counts down the seconds.


                                 RoboGenius Pro - IV
                 46
   43   44   45   46   47   48   49   50   51   52   53