UNIT 21
UNIT 21
Lesson 21 40 mins
SPIRIT LEVEL (PLUTO BLOCKS) (40 mins)
Spirit Levels are used to check whether the surface is perfectly horizontal and vertical. Pluto enables you to replace this age old traditional tool and make the application more interesting by involving a drone.
The sensors give the current values of Roll, Pitch and Yaw angles. If we use this real time data of angles along with the on board LEDs, we can create our own customizable Spirit Level. Use the current Roll angle and program the LEDs to blink if the value of Roll angle is outside the given range. Change the loop time for better toggle frequency.

Use this project to check if all the components at your home are perfectly horizontal. Simply keep the drone on the surface to be tested. Blinking LED will indicate that the surface is not perfectly horizontal but White LED will indicate that it is perfectly horizontal.
⇀ Change the range of angle to ± 1 instead of ± 3
⇀ Try to hold the done in your hand and maintain the white light. ⇀ Whoever is able to hold the drone perfectly flat for the most amount of time is the winner!