Roll and Pitch

Lesson 12/38 | Study Time: 5 Min
Roll and Pitch

Lesson Overview


In this lesson you will learn how much your Micro:bit is tilted in different directions. 

Revolution is the act of revolving, or turning round on an axis or a center; the motion of a body round a fixed point or line. 

Rotation.Pitch will tell the angle in up and down direction. 

Rotation.Roll will tell the angle in left and right direction. 

 

Performance Expectations 

  1. Understand about rotation. 

  1. Code your Micro:bit to display the angle of micro:bit. 

  1. Learn and use the coding concepts of Variable, Forever Loop, Conditional (if then) 

 

Guiding Ideas

You are going to perform the activity ‘Roll and Pitch’ to check the angle in respective direction. For this project, you will use an accelerometer sensor of your Micro:bit. When Micro:bit rotates it will show the angle in different direction on output LEDs. 

 

Disclaimer: All content under this course is customized according to the requirement of an educator/student (K12) filtered from Minecraft Education Edition, MakeCode Microbit, Code.org, and other sources.