Grade 9 Coding Cheat Sheet - C++, Scratch, FreeCAD, and Robotics

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/44

flashcard set

Earn XP

Description and Tags

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.

45 Terms

1
New cards

int

A C++ keyword that creates an integer variable (a named place to store a whole number).

2
New cards

const int

A C++ keyword combination that creates an integer value that should not change.

3
New cards

= (Assignment Operator)

Assigns or stores a value in C++ (for example, int led = 55; stores 55 in led).

4
New cards

; (Semicolon)

A C++ punctuation symbol that ends an instruction.

5
New cards

{ } (Curly Braces)

Punctuation that marks the beginning and end of a group of instructions in C++.

6
New cards

// (Double Slash)

Starts a single-line comment in C++ that is ignored by the computer.

7
New cards

== (Equality Operator)

Checks whether two values are equal in C++; distinct from the assignment operator =.

8
New cards

++ / --

C++ operators that increase or decrease a number by 11.

9
New cards

include

A preprocessor directive that adds a library so the C++ program can use extra features.

10
New cards

include

Adds the Servo library, providing commands for controlling a servo motor in C++.

11
New cards

Servo servo1;

Creates a software object called servo1, which acts as the program's way of referring to the servo.

12
New cards

void setup()

The Arduino setup section that runs once when the Arduino board starts or resets.

13
New cards

void loop()

The Arduino loop section that repeats continuously while the board is powered and running.

14
New cards

pinMode(pin, OUTPUT)

Configures a specific pin to send a signal out, such as to an LED circuit.

15
New cards

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.

16
New cards

digitalWrite(pin, HIGH)

Sets a digital output pin to HIGH (normally ON in an LED circuit).

17
New cards

digitalWrite(pin, LOW)

Sets a digital output pin to LOW (normally OFF in an LED circuit).

18
New cards

digitalRead(pin)

Reads the state of a digital input pin and returns either HIGH or LOW.

19
New cards

analogRead(pin)

Reads an analogue input pin; on a typical 10-bit Arduino, it returns an integer value ranging from 00 to 10231023.

20
New cards

map(value, 0, 1023, 0, 180)

Scales a numerical input value from the range 0–10230\text{--}1023 proportionally into the range 0–1800\text{--}180.

21
New cards

servo1.attach(9)

Connects the software servo object to digital pin 99 for sending its control signal.

22
New cards

servo1.write(angle)

Commands the servo motor to move to a specified angular position (such as 0o0^\text{o}, 90o90^\text{o}, or 180o180^\text{o}).

23
New cards

delay(1000)

Temporarily pauses program execution for 1000 ms=1 s1000\text{ ms} = 1\text{ s}.

24
New cards

MOD (Scratch)

A mathematical operator block that calculates the remainder after division (for example, 10 MOD 3=110\text{ MOD }3 = 1 and 12 MOD 4=012\text{ MOD }4 = 0).

25
New cards

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.

26
New cards

Repeat Until (Scratch)

A loop block that continues repeating its enclosed blocks until a specified condition evaluates to true.

27
New cards

Set variable (Scratch)

A variable block that replaces the current value of a variable entirely with a new specified value.

28
New cards

Change variable (Scratch)

A variable block that adds to or subtracts from the existing value stored in a variable.

29
New cards

Join (Scratch)

A string operator block that concatenates two text items together without performing numerical addition.

30
New cards

Sketch (FreeCAD)

A 2D drawing or profile used as the base geometry to create or modify a 3D model.

31
New cards

Pad (FreeCAD)

A feature tool that adds material to a part by extending a 2D sketch outward into 3D.

32
New cards

Pocket (FreeCAD)

A feature tool that removes material from a solid body using a closed 2D sketch profile.

33
New cards

Fillet (FreeCAD)

A modification tool that rounds off a sharp edge on a 3D model.

34
New cards

Chamfer (FreeCAD)

A modification tool that creates a bevel or angled transition along an edge.

35
New cards

Constraint (FreeCAD)

A rule applied in a sketch to control a geometric relationship or fix a specific dimension.

36
New cards

Fully constrained (FreeCAD)

The status of a sketch when all degrees of freedom are defined, leaving no permitted movement.

37
New cards

Coincident Constraint (FreeCAD)

A geometric constraint that forces two points or vertices to meet at the exact same location.

38
New cards

Perpendicular Constraint (FreeCAD)

A geometric constraint that forces two lines to meet at an angle of 90o90^\text{o}.

39
New cards

Arduino

An open-source electronics development platform and board used to build, wire, and program interactive physical computing projects.

40
New cards

Microcontroller

A compact, programmable computer integrated circuit designed to govern and control electronic devices.

41
New cards

Actuator

A mechanical or electrical device that converts input energy into physical movement.

42
New cards

DC motor

An electrical actuator that produces continuous rotational motion when powered.

43
New cards

Servo motor

An actuator that rotates to and maintains a commanded, precisely controlled angular position.

44
New cards

Pneumatics

A branch of engineering and technology that uses pressurized air to transmit power and achieve motion.

45
New cards

Pneumatic cylinder

An actuator that utilizes the force of compressed air to generate mechanical linear movement.