Page 68 - Robo_Genius_V1.0_flipbook_C4
P. 68

The accelerometer measures motion. It measures motion in varying degrees
                  from slight motion to extreme motion. The accelerometer also uses gravity to

                  determine the direction of motion. Motion is not just from side to side or up
                  and down. Rotating the micro:bit is also considered as motion.

                  A great example of an application of accelerometers are airbags in modern
                  vehicles, where an accelerometer is used to detect the rapid deceleration of a

                  vehicle. If rapid deceleration were to occur, the airbags are deployed.

                  Accelerometers can also be used to detect when an object is in free fall, which
                  is when only the force gravity is acting upon an object. If you were to throw
                  a ball directly into the air, free fall would begin as soon as the ball begins its

                  decent after the acceleration from your throw has subsided.




                                                                                                         21 st
                    Activity       Programming a Blinking Arrow                                        Century   #Creativity
                                                                                                         Skills
                                   with Micro:bit

                  Step 1  Go to Microsoft make code https://makecode.microbit.org/


                  Step 2  Click on new projects.










                                          Click on new
                                          project











                      66     RoboGenius (V1.0)-IV
   63   64   65   66   67   68   69   70   71   72   73