Session 1 – Data Types & Arithmetic (Arduino Basics)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

40 vocabulary flashcards summarizing Arduino hardware parts, programming structure, variables, data types, arithmetic operators, compound assignments, and comparison operators covered in Session 1.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

Arduino UNO Rev 3

An Arduino board model that contains the microcontroller, power section, USB port, DC jack, and I/O pins.

2
New cards

Microcontroller

The most important integrated circuit on the Arduino board; executes uploaded programs and controls I/O pins.

3
New cards

Reset Button

Push-button that restarts (resets) the Arduino board and reruns the code from the beginning.

4
New cards

USB Port

Connector used to upload programs to the Arduino and to provide power from a computer or USB supply.

5
New cards

DC Jack

2.1 mm center-positive barrel connector for powering the Arduino from an external DC source.

6
New cards

Power Section (5 V & 3.3 V)

On-board voltage regulators that supply 5 V or 3.3 V to small external components.

7
New cards

Analog Input Pins

Pins labeled A0–A5 that can read analog signals (via ADC) and also be used as digital I/O.

8
New cards

Digital Pins

Pins labeled 0–13 that can act as digital input or output; some support PWM (~).

9
New cards

TX (Pin 1)

Digital pin used for transmitting serial data from the Arduino.

10
New cards

RX (Pin 0)

Digital pin used for receiving serial data into the Arduino.

11
New cards

void setup()

Arduino function that runs once at startup; used for initializations.

12
New cards

void loop()

Arduino function that runs continuously after setup(); main program logic is placed here.

13
New cards

Curly Braces { }

Symbols that enclose the beginning and end of a function or statement block.

14
New cards

Semicolon ;

Character that terminates a statement in Arduino/C++ code.

15
New cards

Block Comments /* … */

Comment style for multi-line descriptions in code.

16
New cards

Line Comments //

Comment style for single-line notes or reminders in code.

17
New cards

Variable

A named location in memory used to store a piece of data that can change during program execution.

18
New cards

Data Type

Defines the kind of information a variable holds (e.g., integer, byte, float).

19
New cards

byte

8-bit unsigned integer data type; range 0–255 (e.g., byte someVariable = 180;).

20
New cards

int

16-bit signed integer data type; range -32,768 to 32,767 (e.g., int someVariable = 1500;).

21
New cards

long

32-bit signed integer data type for larger whole numbers; range -2,147,483,648 to 2,147,483,647.

22
New cards

float

32-bit floating-point data type for numbers with decimals (e.g., 3.14).

23
New cards

array

Ordered collection that stores multiple values of the same data type (e.g., int array[5] = {3,5,2,8,9};).

24
New cards

Compound Assignment

Operation that combines arithmetic/bitwise work with assignment to the same variable (e.g., +=).

25
New cards

Increment Operator ++

Adds 1 to an integer variable (A++ produces 11 if A was 10).

26
New cards

Decrement Operator --

Subtracts 1 from an integer variable (A-- produces 9 if A was 10).

27
New cards

Addition Assignment +=

Adds right operand to left operand and assigns the result (B += A is B = B + A).

28
New cards

Subtraction Assignment -=

Subtracts right operand from left operand and assigns the result (B -= A).

29
New cards

Multiplication Assignment *=

Multiplies left operand by right operand and assigns the result (B *= A).

30
New cards

Division Assignment /=

Divides left operand by right operand and assigns the result (B /= A).

31
New cards

Modulo Assignment %=

Stores remainder of left operand divided by right operand (B %= A).

32
New cards

Bitwise OR Assignment |=

Performs bitwise inclusive OR with right operand and assigns (A |= 2).

33
New cards

Bitwise AND Assignment &=

Performs bitwise AND with right operand and assigns (A &= 2).

34
New cards

Comparison Operator

Symbol used to compare two values, often in if statements (==, !=,

35
New cards

Equal To ==

Returns true if two operands have the same value (A == B).

36
New cards

Not Equal To !=

Returns true if operands have different values (A != B).

37
New cards

Less Than <

Returns true if left operand is smaller than right operand (A < B).

38
New cards

Greater Than >

Returns true if left operand is larger than right operand (A > B).

39
New cards

Less Than or Equal To <=

Returns true if left operand is smaller than or equal to right operand (A <= B).

40
New cards

Greater Than or Equal To >=

Returns true if left operand is larger than or equal to right operand (A >= B).