Arduino IDE: Variables

Introduction A variable is used to store a value or an information so that we can refer or/and manipulate it at a later stage during the life of the Arduino sketch. Memory…

Continue Reading Arduino IDE: Variables

Arduino IDE: Arithmetic Operators

Introduction Arduino IDE is capable doing basic arithmetic operations. Arduino has the following five arithmetic operators for basic mathematical operations: Addition The addition operator is used for adding two numbers.…

Continue Reading Arduino IDE: Arithmetic Operators

Arduino IDE: Boolean or Logical Operators

Introduction Logical operators evaluate either one or two relational or logical statements. There are 3 logical operators in Arduino IDE: Logic OR (||) Operator Structure (Statement 1) || (Statement2) The…

Continue Reading Arduino IDE: Boolean or Logical Operators

Arduino IDE: for Loop

Introduction A loop statement allows us to execute a statement or group of statements multiple times. Below is the general form of a loop statement in most programming languages :…

Continue Reading Arduino IDE: for Loop

Arduino IDE: while Loop

Introduction While loops execute a statement, or a group of statements continuously, and infinitely, until the expression inside the parenthesis, () results in false. Something must change the tested variable…

Continue Reading Arduino IDE: while Loop