Guide

1/22/2018 micro:bot Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#about-the-motobit-board 52/75
But, you can also make your own custom variables. To do this click on the Variables drawer and select Make New
Variable. You can then name it and use it in your program.
Set To
To store a value or piece of information in a variable you use the Set to block. This allows you to select a variable
and set it to a value block of your choice. In this case the line sensor value on pin A0. We do this once in
the On Start block to get a base reading from the sensor.
Analog Read Pin
To get that base reading from the line sensor we use the Analog Read Pin block to get an analog value (0 - 1023)
from the line sensor. 0 is totally black and 1023 is totally saturated white. Your surface will be something probably in
between.
If