1/44
Practice vocabulary flashcards covering basic C++ syntax, Arduino functions, Scratch blocks, FreeCAD tools and constraints, and robotics terminology from the Grade 9 Coding Cheat Sheet.
int
A C++ keyword that creates an integer variable (a named place to store a whole number).
const int
A C++ keyword combination that creates an integer value that should not change.
= (Assignment Operator)
Assigns or stores a value in C++ (for example, int led = 5; stores 5 in led).
; (Semicolon)
A C++ punctuation symbol that ends an instruction.
{ } (Curly Braces)
Punctuation that marks the beginning and end of a group of instructions in C++.
// (Double Slash)
Starts a single-line comment in C++ that is ignored by the computer.
== (Equality Operator)
Checks whether two values are equal in C++; distinct from the assignment operator =.
++ / --
C++ operators that increase or decrease a number by 1.
A preprocessor directive that adds a library so the C++ program can use extra features.
Adds the Servo library, providing commands for controlling a servo motor in C++.
Servo servo1;
Creates a software object called servo1, which acts as the program's way of referring to the servo.
void setup()
The Arduino setup section that runs once when the Arduino board starts or resets.
void loop()
The Arduino loop section that repeats continuously while the board is powered and running.
pinMode(pin, OUTPUT)
Configures a specific pin to send a signal out, such as to an LED circuit.
pinMode(pin, INPUT_PULLUP)
Sets a pin to read an input and activates the internal pull-up resistor of the Arduino, causing a pressed button to read LOW.
digitalWrite(pin, HIGH)
Sets a digital output pin to HIGH (normally ON in an LED circuit).
digitalWrite(pin, LOW)
Sets a digital output pin to LOW (normally OFF in an LED circuit).
digitalRead(pin)
Reads the state of a digital input pin and returns either HIGH or LOW.
analogRead(pin)
Reads an analogue input pin; on a typical 10-bit Arduino, it returns an integer value ranging from 0 to 1023.
map(value, 0, 1023, 0, 180)
Scales a numerical input value from the range 0–1023 proportionally into the range 0–180.
servo1.attach(9)
Connects the software servo object to digital pin 9 for sending its control signal.
servo1.write(angle)
Commands the servo motor to move to a specified angular position (such as 0o, 90o, or 180o).
delay(1000)
Temporarily pauses program execution for 1000 ms=1 s.
MOD (Scratch)
A mathematical operator block that calculates the remainder after division (for example, 10 MOD 3=1 and 12 MOD 4=0).
If–Then (Scratch)
A control block that checks a condition and executes the instructions inside once if the condition is true, without repeating on its own.
Repeat Until (Scratch)
A loop block that continues repeating its enclosed blocks until a specified condition evaluates to true.
Set variable (Scratch)
A variable block that replaces the current value of a variable entirely with a new specified value.
Change variable (Scratch)
A variable block that adds to or subtracts from the existing value stored in a variable.
Join (Scratch)
A string operator block that concatenates two text items together without performing numerical addition.
Sketch (FreeCAD)
A 2D drawing or profile used as the base geometry to create or modify a 3D model.
Pad (FreeCAD)
A feature tool that adds material to a part by extending a 2D sketch outward into 3D.
Pocket (FreeCAD)
A feature tool that removes material from a solid body using a closed 2D sketch profile.
Fillet (FreeCAD)
A modification tool that rounds off a sharp edge on a 3D model.
Chamfer (FreeCAD)
A modification tool that creates a bevel or angled transition along an edge.
Constraint (FreeCAD)
A rule applied in a sketch to control a geometric relationship or fix a specific dimension.
Fully constrained (FreeCAD)
The status of a sketch when all degrees of freedom are defined, leaving no permitted movement.
Coincident Constraint (FreeCAD)
A geometric constraint that forces two points or vertices to meet at the exact same location.
Perpendicular Constraint (FreeCAD)
A geometric constraint that forces two lines to meet at an angle of 90o.
Arduino
An open-source electronics development platform and board used to build, wire, and program interactive physical computing projects.
Microcontroller
A compact, programmable computer integrated circuit designed to govern and control electronic devices.
Actuator
A mechanical or electrical device that converts input energy into physical movement.
DC motor
An electrical actuator that produces continuous rotational motion when powered.
Servo motor
An actuator that rotates to and maintains a commanded, precisely controlled angular position.
Pneumatics
A branch of engineering and technology that uses pressurized air to transmit power and achieve motion.
Pneumatic cylinder
An actuator that utilizes the force of compressed air to generate mechanical linear movement.