In this project, we are going to turn our BBC micro:bit into a digital spirit level, a tool designed to indicate whether a surface is horizontally flat. A spirit level is an instrument used by carpenters, stonemasons, bricklayers, and other building trades workers.
During this project, we will use the accelerometer to get the angle of the micro:bit and then we’ll use that reading to display information on the micro:bit’s screen to indicate whether or not the surface is flat.