Getting Started Guide

SCRATCH CODING KIT
Drone Coding Activity
Coding a Drone
Compare the items below and your own!
- Make a variable that displays if the drone is on or off.
- Whenever an infrared sensor is recognized, a program must be programmed that changes the value of the
variable representing the state of the drone to on and off.
- If the value of the variable indicating the state of the drone is on, the DC motor is activated. If it is off, the motor
is not operated
Let's take a look at what could possibly be easier to create a variable. Let’s make a variable called “fanState”. Pay
close attention at the upper-case representation of “State”.
In computer programming, use uppercase letters when creating names in order to better describe the role of
variables and make them easier to read.
Instead of spacing, it is preferred to use uppercase letters to distinguish.
Please note that is is easier to read “fanState”
than “fanstate”.