Guide

ROBOTICS ADVENTURE BOOK  SCOUTER MANUAL  STEM 10
ArduBlocks Programming Tools
Control: lets you execute instructions based on certain conditions
• Loop – keep running the set of instructions (every program should be written inside a loop).
• If – run a set of instructions if the test condition is true.
• If else – run one set of instructions if the test condition is true, and another if it is false.
• While – run a set of instructions as long as the test condition is true.
Pin: lets you name and describe the pins on the Arduino board to the program
• Set digital pin – lets you assign a value to a digital pin
• Set analog pin – sets a value for a PWM (Pulse Width Modulates) digital pin
• Servo – lets you specify which pin controls a servo motor
Number/Constants: used to set up variables and give them initial values
• Set digital var – create a variable that takes only two values
• Set number var – create a numeric variable that can take many values
• Constants – a number, HIGH, LOW, TRUE, FALSE
Operators: where you find logical and mathematical operations
• Logical operators – and, or, not
• Mathematical operators - +, -, x, ÷, %, min, max, and a bunch more
Utilities: common functions you can use
• Delay – stops the program for # of milliseconds or microseconds