An actuator turns a control command and supplied energy into a physical action.
More explanation of Actuator
A motor that moves a shaft is one example. The control command can come from a board, but the energy for movement may need a separate, stronger supply. A driver is an additional circuit that handles the actuator’s current while following the board’s smaller control signal.
- Why it matters
It separates giving a command from supplying enough electrical energy to perform the action.
- A small example
A board can request motor rotation through a driver. The driver and matched supply carry the motor current; the board pin alone does not.
- Safety
Do not power an ordinary motor directly from a microcontroller signal pin.
Read in depth → ActuatorAn analog-to-digital converter measures a permitted voltage and represents it as a number.
Also called: analog-to-digital converter
More explanation of ADC
This circuit takes a measurement at a particular moment and chooses one of a finite set of numbers to represent it. You can use the result to track changes or estimate voltage. The number alone does not specify volts: you need the allowed measurement range and the chosen comparison voltage. More advanced accuracy questions belong in the deep guide.
- Why it matters
It explains how a changing knob voltage becomes a value the program can compare.
- A small example
An Uno analog input can produce a reading from its documented conversion range. Lab 5 uses such readings to respond to a potentiometer.
Read in depth → ADCAn analog signal varies over a range rather than representing only a small set of distinct states.
More explanation of Analog
A voltage can gradually change with a physical quantity, such as knob position. The board may measure that voltage and turn it into a number. That conversion still has a limited range and a smallest distinguishable step. A pin called analog does not accept arbitrary voltage or directly measure every kind of sensor.
- Why it matters
It explains why a knob can give more information than just pressed/not pressed.
- A small example
A potentiometer’s wiper voltage changes as you turn it. An allowed analog input converts samples into numbers for the program.
Read in depth → AnalogArduino can name boards, related programming support, or the organization that provides them.
More explanation of Arduino
People sometimes use Arduino to mean a board, the programming support used with it, or the organization. Ask which meaning is intended. Our Intro Labs use an Uno R3 board and Arduino programming support inside a PlatformIO project. Other compatible boards still need their own checked settings selecting that board for Build and Upload.
- Why it matters
It prevents the board name, programming language and editor from being treated as the same thing.
- A small example
The physical Uno is the board. C++ is the language; VS Code is the editor; PlatformIO manages the project used to prepare and upload it.
- Common confusion
Arduino does not mean C++ itself, and “compatible” is not proof that every pin or shield behaves identically.
Read in depth → ArduinoThe Arduino framework supplies common startup and hardware functions for a supported board.
More explanation of Arduino framework
A framework is supporting code and conventions that your program uses. Here it provides the startup arrangement that calls setup and loop, plus functions for pins, timing and communication. Your project still uses C++, and the board-specific implementation must match your target. In our normal .cpp files, include Arduino.h explicitly.
- Why it matters
It explains where familiar function names come from without confusing them with C++ itself.
- A small example
#include <Arduino.h> makes the Arduino function declarations available to a normal C++ source file in the reviewed project.
- Common confusion
Arduino-style functions are supplied by a framework. They are not built into every C++ environment.
Read in depth → Arduino frameworkAn argument is a value supplied to a function call.
More explanation of Argument
The function uses the supplied information while performing its task. Different functions expect different numbers and kinds of arguments. Parentheses surround them; commas separate multiple arguments. The function’s documentation tells you what each position means.
- Why it matters
It explains why a copied line contains numbers or names that must match your circuit.
- A small example
digitalWrite(8, HIGH); supplies two arguments: the pin identifier 8 and the requested state HIGH.
- Common confusion
Changing the pin argument changes which electrical connection is controlled; moving a wire alone does not change the program.
Read in depth → ArgumentV, A, Ω and W name volts, amps, ohms and watts; prefixes describe how large or small a value is.
More explanation of Basic electrical units
Volts measure voltage, amps measure current, ohms measure resistance, and watts measure power. Milli means one thousandth: 1 mA is 0.001 A. Kilo means one thousand: 1 kΩ is 1,000 Ω. The unit is part of the number’s meaning, not decoration.
- Why it matters
Recognizing units keeps a small current from being confused with a large one and a resistor label from becoming mysterious.
- A small example
10 mA is 0.010 A. A 1 kΩ resistor has a nominal resistance of 1,000 Ω; 330 Ω is a different value.
Read in depth → Basic electrical unitsA branch is a movable Git name for one line of work, pointing at a commit.
More explanation of Branch
When you add a normal new commit on the current branch, that branch’s name then points to the new commit. The files displayed in your working folder reflect the selected state; Git does not require a second permanent folder for each branch. A branch allows related experimental work to have its own history line.
- Why it matters
It gives collaborators a way to work on changes without immediately changing the shared main line.
- A small example
An experiment branch can record blink-pattern changes while main continues to refer to the agreed shared history.
- Common confusion
A branch is not a complete second computer or a guarantee that work has been uploaded to GitHub.
Read in depth → BranchA breadboard holds component legs and wires in reusable holes joined by hidden metal contacts.
More explanation of Breadboard
On many ordinary breadboards, each group of five main holes is connected internally. The group across the center groove is separate. Long side rows are commonly used for supply connections, but some are split midway. Printed colors and lines are labels, not proof of continuity. Learn the contact layout before placing a circuit.
- Why it matters
It lets you assemble and change a circuit without permanently soldering its parts.
- A small example
Put the two LED legs in different unconnected groups. If they share one group, hidden metal joins them and defeats the intended circuit.
- Common confusion
Neighboring holes are not all connected, and a breadboard does not automatically contain power.
- What you will see
Rows of small holes, often a center groove and long marked strips near the edges.
Read in depth → BreadboardA bug is a mistake that makes a program or system behave differently from what was intended.
More explanation of Bug
Some mistakes prevent a build. Others produce a program that builds successfully but uses the wrong pin, wrong condition or wrong timing. A hardware connection can also cause unexpected behavior. First describe the expected result and the actual result; that gives you something concrete to investigate.
- Why it matters
An unexpected result is a testable problem rather than proof that you cannot program.
- A small example
The code controls D8 but the wire is on D9. The build succeeds, yet the intended LED does not blink.
Read in depth → BugBuild runs the preparation steps that turn project source and settings into a program for the selected target.
More explanation of Build
For our C++ board projects, those steps include compilation and linking. Compilation translates source; linking joins the prepared parts. The build reports errors or warnings and can reuse unchanged prepared pieces. A successful build means the preparation succeeded, not that the firmware was uploaded or physically tested.
- Why it matters
It is the first major check before attempting a transfer to the board.
- A small example
Press PlatformIO Build after saving. If it succeeds, a prepared firmware image exists for the configured board.
- Common confusion
Build, Save and Upload are different actions.
Read in depth → BuildA button or switch changes which electrical contacts are connected.
More explanation of Button / switch
Pressing an ordinary pushbutton mechanically joins certain metal contacts; releasing it separates them. Some four-leg buttons already connect pairs of legs internally, so identify the actual switched pair. A board can read the resulting voltage change, provided the connection the board reads has a defined resting level rather than being left electrically disconnected.
- Why it matters
It gives a person a way to affect the program through a real electrical event.
- A small example
A button can join an input to GND when pressed. A pull-up connection keeps it at a defined higher level when released.
- Common confusion
In this common arrangement, pressed reads LOW. LOW does not universally mean “off” or “not pressed.”
Read in depth → Button / switchC++ is the programming language used for the current club microcontroller examples.
More explanation of C++
A programming language provides rules for writing values, statements, functions and other program structure. C++ is distinct from the editor where you type and from the tools that build or upload the result. Our examples use Arduino support functions, explicitly declared through Arduino.h, within C++ source files.
- Why it matters
It separates the language from the surrounding development tools.
- A small example
A .cpp source file can contain C++ variables and functions plus Arduino calls supported by the selected board framework.
- Common confusion
VS Code and PlatformIO are tools around the language, not alternative names for C++.
Read in depth → C++A circuit is an arrangement of connected electrical parts that provides paths for energy transfer and current.
More explanation of Circuit
The arrangement matters: connecting the same parts differently can change the result. In our steady battery or USB-powered examples, sustained current needs a complete route from one source connection, through the parts, and back to the source. The return route is sometimes partly inside the board, so you may not see all of it.
- Why it matters
This explains why a light does not work merely because one wire reaches it.
- A small example
An output connection feeds a resistor and LED. The LED’s other connection returns to board ground; the board’s internal connections complete the source path.
Read in depth → CircuitCloning creates a local Git copy of an existing repository and its history.
More explanation of Clone
The new local copy includes working files and Git history so you can inspect and work on them. It normally records where the source repository is hosted. Cloning does not publish your later edits automatically. Afterward, open the cloned project folder rather than a separate downloaded source file.
- Why it matters
It is the usual way to bring shared club work onto a new computer.
- A small example
Clone the intended club repository, open its folder in VS Code and inspect the project instructions before building.
Read in depth → CloneA closed circuit has an unbroken path that can support current under the circuit’s operating conditions.
More explanation of Closed circuit
Closed describes the electrical path, not whether something is inside a box. A closed switch joins its contacts and can complete a route. The source still needs to provide the right voltage, and every part must be connected appropriately. An unbroken path alone does not guarantee that an LED is forward-facing or working.
- Why it matters
It helps distinguish missing connections from other reasons a circuit may fail.
- A small example
Closing a switch in a simple battery-and-light circuit completes the return route. Opening that switch interrupts it.
Read in depth → Closed circuitSource code is the program text that a person writes in a programming language.
Also called: code
More explanation of Code / source code
The words and symbols follow the language’s rules. They describe operations for software to prepare into executable instructions. A comment can explain your intention to a reader, but the computer’s behavior comes from the actual operations. In these labs the language is C++, using Arduino programming support.
- Why it matters
It identifies what you type and distinguishes that text from the finished instructions installed on the board.
- A small example
You write a C++ statement asking D8 to become HIGH. After Build and Upload, the board can carry out that request.
Read in depth → Code / source codeA command is a written request telling a shell or another tool what action to perform.
More explanation of Command
A command can name a program followed by options or arguments. Some commands only show information; others change files or publish work. Read what the action does before running unfamiliar text. Commands belong in the appropriate terminal or tool, not in a C++ file.
- Why it matters
It makes copied command examples understandable as actions with consequences.
- A small example
git status asks Git to report the state of your working files; it does not save, commit or upload firmware.
Read in depth → CommandA commit records a selected version of project content as a named point in Git history.
More explanation of Commit
A commit records the staged content and information such as a message and parent history. It normally remains local until shared. Saving changes a working file; staging selects content; committing records it. Write a message that explains the actual change. A commit is not automatically a backup stored on another computer.
- Why it matters
It creates a reference point you and other members can understand later.
- A small example
After selecting the change, git commit -m "Adjust blink timing" records it with an explanation.
- Common confusion
Commit and Push are separate. Saving a file is neither one.
Read in depth → CommitA compiler is software that translates your program into instructions or intermediate pieces suitable for the selected processor.
More explanation of Compiler
It checks language rules and turns source operations into lower-level code. A build also uses other preparation tools, including a linker that joins the pieces into a final program. The resulting firmware must be prepared for the correct board and its supported programming framework.
- Why it matters
It explains why spelling, punctuation and project settings affect whether the board can receive a usable program.
- A small example
A missing semicolon can stop compilation. Fixing it allows preparation to continue; it does not by itself prove the circuit is wired correctly.
- Common confusion
The compiler prepares instructions. Upload is a separate transfer operation.
Read in depth → CompilerA component is one part of a larger electrical system, such as a resistor, light or switch.
More explanation of Component
Different parts do different jobs. One can limit the rate of moving charge, called current, another can emit light, and another can connect or disconnect a path. We join parts through their metal connections to make a working circuit. An individual part is not necessarily a complete device that can be connected directly to a computer.
- Why it matters
Recognizing each part’s job helps you follow a circuit instead of merely copying the shape of a drawing.
- A small example
In an LED circuit, the resistor and LED are two separate components. Each needs the correct connections to do its job.
Read in depth → ComponentA computer is a machine that follows stored instructions to process information.
More explanation of Computer
Your laptop can run many programs, store files and display their results. A much smaller computer can also exist inside an electronic part. Both use a processor—the part carrying out instructions—and memory—places holding information. Their connections and supporting software can be very different.
- Why it matters
It makes a little programmable board less mysterious without pretending every computer works like your laptop.
- A small example
Your laptop prepares an LED program. A small computer on the Uno then runs that prepared program independently.
Read in depth → ComputerA condition is a question a program evaluates as true or false.
More explanation of Condition
The question may compare a value with a limit or check a stored yes/no state. The result can select a branch of code or decide whether repetition continues. The program evaluates the written expression; it cannot infer what you meant if you write a different test.
- Why it matters
It explains how a program can react to current information rather than always doing one fixed sequence.
- A small example
count > 3 asks whether the stored count exceeds three. It does not change count.
Read in depth → ConditionCurrent is the rate at which electric charge passes a point.
More explanation of Current
In a working steady circuit, charged particles move through connected parts. The amount of charge passing each second is current, measured in amperes or amps, written A. In a single unbranched path, the same current passes through the resistor and LED. The parts transfer electrical energy; they do not consume charge and make it disappear.
- Why it matters
Too much current can overheat or damage a part even when the source voltage seems reasonable.
- A small example
If 10 milliamps (a milliamp is one thousandth of an amp) flow through a series resistor and LED, 10 milliamps also return along that same unbranched path.
- Common confusion
Current is not the same thing as voltage. Conventional-current arrows follow positive-charge flow; metal electrons move in the opposite direction.
Read in depth → CurrentDebugging is the process of finding and correcting the cause of an unexpected result.
More explanation of Debugging
Change one thing at a time and check the evidence. Confirm power and connections, then the selected board, upload result and code behavior. A printed value can reveal what the program thinks it read. A debugger is a particular tool; you can debug systematically without having that tool attached.
- Why it matters
Small controlled checks turn a confusing failure into a narrower question.
- A small example
First confirm the onboard blink works. Then check the external LED’s direction, series resistor, contact groups and code pin.
Read in depth → Debuggingdelay() pauses the normal flow of the Arduino program for a specified number of milliseconds.
More explanation of delay()
A millisecond is one thousandth of a second. For example, 1000 milliseconds is one second. In a simple blink, the output remains at its last requested state during the pause. This waiting makes changes visible, but it also delays ordinary code that would check a button or update another task.
- Why it matters
It connects a timing value in code to the pattern you physically see.
- A small example
An on delay of 1000 and an off delay of 1000 produce roughly a two-second complete blink cycle.
- Common confusion
delay does not turn the LED on by itself; the preceding output action determines its state.
Read in depth → delay()A development board makes a small computer chip easier to power, program and connect to other parts.
Also called: dev board, board
More explanation of Development board
The board carries the computing chip and supporting circuitry, with connection points around it. It may include a USB connector, circuitry that maintains a suitable supply voltage and labeled pins. The whole board is more than the chip, and similar-looking boards can have different electrical limits and programming requirements.
- Why it matters
Choosing the board tells you which project settings and wiring rules apply.
- A small example
An Uno R3 development board exposes labeled connections such as D8 and GND and accepts its documented USB programming connection.
- Common confusion
A breadboard only joins physical connections; a development board contains electronics and can run a program.
Read in depth → Development boardDigital information uses distinct states or values, such as two electrical ranges representing LOW and HIGH.
More explanation of Digital
A digital pin does not contain a written number 0 or 1. It has a real voltage that the circuit interprets as one of two states under its rules. Voltages between valid ranges can be ambiguous. A digital state gains meaning from the program and connection arrangement.
- Why it matters
It makes HIGH/LOW understandable while preserving the need for real electrical limits.
- A small example
The same LOW reading can mean “button pressed” in one circuit and “no event” in another.
Read in depth → DigitalAn editor is software for viewing and changing text or other saved content.
More explanation of Editor
A code editor helps you type, navigate and organize program text. It may color keywords or point out possible mistakes. Editing does not by itself prepare the final firmware or transfer it to a board; other tools perform those jobs.
- Why it matters
It separates writing a program from building and running it.
- A small example
You change a waiting duration in the editor and save the source file. The board’s behavior changes only after an appropriate successful build and upload.
Read in depth → EditorElectric charge is a property of matter that makes electrical attraction, repulsion and electric current possible.
More explanation of Electric charge
Matter contains particles with positive or negative electric charge. Opposite charges attract; like charges repel. Metal already contains movable charged particles before you connect a battery. A powered circuit can make those charges move together. You do not need to track individual particles to build your first circuit.
- Why it matters
This gives electricity a physical meaning and explains why a wire is more than a line on a drawing.
- A small example
A metal wire has movable negatively charged electrons in it even when it is disconnected. Connecting a suitable source can produce an organized flow.
Read in depth → Electric chargeAn electrical connection joins conductive parts so charge can move between them.
More explanation of Electrical connection
Conductive means able to carry moving electric charge. A wire touching a metal pin securely can make a connection. Merely placing two parts beside each other does not. Several connected points can behave as one electrical point even when they look separate on the table.
- Why it matters
You need to know which metal points are actually joined before a wiring picture becomes understandable.
- A small example
Five holes in one ordinary breadboard contact group are joined by hidden metal. A wire in one hole connects to a component leg in another hole of that same group.
Read in depth → Electrical connectionElectricity involves electric charges and the transfer of energy through electrical systems.
More explanation of Electricity
In our first circuits, a source such as power from a computer’s USB cable establishes an electrical difference between two connections. The connected circuit lets energy reach a component, such as a light. Charged particles already in the materials participate in the process. The source provides energy; it does not make a light by sending a program through the light.
- Why it matters
It separates the energy that powers hardware from the information that tells hardware what to do.
- A small example
The computer sends program data through USB and also supplies energy to the board. These are different jobs carried by the same cable.
Read in depth → ElectricityAn error reports a problem that prevented an operation from completing correctly.
More explanation of Error
Read which tool produced it and what action you were trying to perform. A compiler error concerns preparation of code; an upload error may concern the connection, port or board. The first specific message is often more useful than a final generic failure line. Fix and retry one cause at a time.
- Why it matters
It points you toward the relevant stage instead of making every failure look identical.
- A small example
A syntax error while building is a different problem from “port not found” while uploading.
Read in depth → ErrorESP32 names a family of microcontrollers commonly used for connected projects with built-in wireless capability.
More explanation of ESP32
An ESP32 development board combines a member of that chip family with power and programming connections. Family variants differ in USB, radio and pin behavior. The original ESP32 board in club guidance uses 3.3 V signal levels. Start with its actual model rather than copying arbitrary ESP32 pin numbers.
- Why it matters
It is useful for networked projects, but wireless features do not remove power and voltage checks.
- A small example
A matched ESP32 board can send a sensor reading over Wi-Fi. The selected measurement pin and wiring must still fit the documented model.
Read in depth → ESP32An extension adds a capability to an application such as VS Code.
More explanation of Extension
An extension can provide project tools, language help or another feature. Installing one does not change which physical board is connected. Some extensions start additional software to do their work. For our lessons, PlatformIO IDE is the extension that exposes the embedded project workflow in VS Code.
- Why it matters
It explains why tools may appear inside VS Code even though they are not part of the language.
- A small example
After installing PlatformIO IDE, VS Code provides a place to create and operate a board project.
Read in depth → ExtensionA file is a named unit of information saved on a storage device.
More explanation of File
A text file can hold the code you type. Its name and location let software find it later. Saving writes your current changes into that file. The filename extension, such as .cpp, helps tools recognize its intended format, but renaming arbitrary text does not make it a correct program.
- Why it matters
It explains where your work goes when you press Save.
- A small example
The reviewed PlatformIO project places the main C++ source in a file called main.cpp inside its src folder.
Read in depth → FileFirmware is the program installed in a device to run and control its behavior.
More explanation of Firmware
After you prepare and upload a microcontroller program, it normally resides in memory on the board. On an Uno, flash retains it when power is removed. The board restarts the program when powered again; changing a file on your laptop does not automatically change the installed firmware.
- Why it matters
It explains what Upload changes and why saving a new file alone does not alter the board’s behavior.
- A small example
Change a delay in the source file but do not upload. The board still runs its old firmware until a new upload succeeds.
Read in depth → FirmwareA folder groups files and other folders under a named location.
More explanation of Folder
Folders organize a storage device so a project’s files can stay together. A path lists the route to a file: src/main.cpp means main.cpp inside the src folder. Opening the correct project folder matters because tools look for configuration and source files in specific places.
- Why it matters
It prevents editing a disconnected copy that the build process never uses.
- A small example
Open the whole PlatformIO project folder in VS Code, rather than opening only a loose copy of main.cpp.
Read in depth → FolderA for loop repeats a task using a starting action, a continuing condition and an update.
Also called: for
More explanation of For loop
A common pattern starts a counter, checks whether it is below a limit, runs the body, then advances the counter. The check repeats before the next body execution. These three parts are written in the parentheses after for. The body is the group of statements being repeated.
- Why it matters
It expresses a counted sequence without writing the same action many times.
- A small example
for (int n = 0; n < 3; n++) starts a whole-number counter at 0, checks that it is less than 3, and adds one after each repetition. Its instruction group uses counter values 0, 1 and 2, running three times.
Read in depth → For loopA single-board computer puts a fuller computer system on one board, often running an operating system such as Linux.
Also called: Raspberry Pi 4, Raspberry Pi 5, single-board computer
More explanation of Full Raspberry Pi / SBC
Raspberry Pi 4 and 5 belong in this category. They commonly boot from storage, run programs within an operating system, software that manages programs and the computer’s resources, and provide connections for screens or keyboards. Their GPIO pins can interact with circuits, but their 3.3 V signal limits still matter. They are not simply bigger Uno boards.
- Why it matters
It explains why setting up a full Pi involves an OS, storage and model-matched power rather than the Uno upload procedure.
- A small example
A Pi 5 can collect and store measurements while a Pico handles electrical measurements with tightly controlled timing.
- Common confusion
Pico is a microcontroller board; Pi 4/5 are Linux-capable computers. Similar brand names do not make workflows interchangeable.
Read in depth → Full Raspberry Pi / SBCA function is a named part of a program that performs a task when called.
More explanation of Function
A call requests the task by writing the function name followed by parentheses. Some functions receive values inside those parentheses; some return a result. Their internal instructions run as part of the program. Defining a function describes it, while calling it actually asks it to run.
- Why it matters
Functions let you read actions by name and reuse a task without rewriting its instructions.
- A small example
delay(1000); calls a waiting function. Its parentheses contain the duration to use.
- Common confusion
A function name alone is not the same as a call. The language’s call syntax matters.
Read in depth → FunctionGit records selected versions of project files so you can inspect changes and keep a history.
More explanation of Git
It operates on files in a repository, which is a project with Git history. You can compare edits, choose changes for a saved history entry, and work along separate lines of development. Ordinary file saving and Git recording are separate operations. Git can work locally without GitHub or an internet connection.
- Why it matters
It helps you recover and explain how a project changed rather than keeping mysterious copies named final-final.
- A small example
Change one waiting duration, save the file, inspect the difference, then make a Git commit describing the change.
- Common confusion
Git does not automatically turn every Save into a history entry.
Read in depth → GitA diff shows the differences between two versions of text or other supported content.
Also called: git diff
More explanation of Git diff
For ordinary source text, Git shows lines added or removed between the selected states. git diff usually compares unstaged working changes with the selected next-commit state. git diff --staged shows changes selected for the next commit. Reading the difference helps catch accidental edits before recording them.
- Why it matters
It answers what changed, rather than only which filename changed.
- A small example
Changing delay(1000) to delay(500) appears as a removed line and an added line in the text comparison.
Read in depth → Git diffGit status reports how the working files and selected changes differ from recorded history.
Also called: git status
More explanation of Git status
It can show modified files, newly untracked files and changes already selected for the next commit. It also reports the current branch. The command is an inspection step: it does not itself record a commit or send work online. Use the output to confirm which project and files you are about to affect.
- Why it matters
It is a useful first check before recording or sharing work.
- A small example
Run git status in the project terminal after saving. Confirm that the expected file is listed.
Read in depth → Git statusGitHub is a service that hosts Git repositories and collaboration tools online.
More explanation of GitHub
A local Git repository can have a corresponding online copy. GitHub lets people browse its published history and coordinate work. Git tracks history; GitHub hosts and presents it. Work can exist locally before it is sent online, and seeing a repository online does not mean you have downloaded it to your computer.
- Why it matters
It explains where shared project history lives and why another member cannot see an unpushed local commit.
- A small example
Your local commit becomes available in the shared GitHub repository after you push it to the intended remote and branch.
- Common confusion
Git and GitHub are different things. A GitHub account is not needed to understand a local Git history.
Read in depth → GitHubGPIO is a general-purpose electrical pin that a program can configure to read or control a signal.
More explanation of GPIO
GPIO means general-purpose input/output. In an input role, the board reads the voltage at a connection. In an output role, it drives a level within its electrical limits. Some pins also have special jobs; software configuration and the actual board determine what is available.
- Why it matters
It explains how one board can use a pin for a button and another for a light.
- A small example
Set Uno D8 as an output for an LED. Use a different appropriately configured pin as an input for a button.
- Safety
A GPIO signal pin is not a general power source for motors or large displays.
Read in depth → GPIOGround is the circuit’s chosen zero-volt comparison point and often its electrical return connection.
Also called: GND
More explanation of Ground / GND
Board labels shorten ground to GND. When we call another point 5 V, we commonly mean 5 V above this point. In our LED lesson, GND also connects the return path inside the board. Different circuits can have different ground arrangements; the label does not mean charge disappears into soil.
- Why it matters
A shared reference is needed to interpret signals and complete the intended return path.
- A small example
The LED’s return wire goes to Uno GND. Current continues through the board’s source connections; it does not vanish at the GND label.
- Common confusion
Circuit ground is not automatically Earth ground. It is not a bottomless drain for electricity.
Read in depth → Ground / GNDHIGH names the higher of two electrical states that a particular board uses to represent information.
More explanation of HIGH
On a lightly loaded Uno R3 output, HIGH is commonly near 5 V above GND. On Pico signal pins it is near 3.3 V instead. An input recognizes HIGH within a specified voltage range, not at one universal exact voltage. What HIGH means to the application depends on its wiring.
- Why it matters
It tells you both what the code requests and why different boards cannot always connect directly.
- A small example
HIGH on D8 lights our forward-facing resistor-and-LED circuit. A differently wired circuit could use LOW to activate its connected light or other part.
- Common confusion
HIGH does not mean 5 V on every board, and it does not always mean “on.”
Read in depth → HIGHGit history is the sequence and relationships of recorded commits in a repository.
More explanation of History
Each recorded point can tell you what content changed and why. History follows parent relationships between commits and can branch; it is not necessarily one straight chronological list. For your first session, focus on understanding a small change and its message rather than on advanced history editing.
- Why it matters
It helps you find when a behavior was introduced and understand another member’s decisions.
- A small example
A history viewer shows the commit that changed a blink delay and the source difference it recorded.
Read in depth → HistoryAn if statement runs one action when a condition is true; an optional else provides the other action.
Also called: if, else
More explanation of If / else
The program evaluates the condition inside parentheses. If it is true, the selected group runs. If it is false, the optional else group runs instead. Only the selected alternative runs for that check. Braces visibly group several statements into one branch.
- Why it matters
It lets a program choose a response based on a button, measurement or stored setting.
- A small example
if (lightWanted) { digitalWrite(8, HIGH); } else { digitalWrite(8, LOW); } selects the requested light state.
Read in depth → If / elseAn input lets the board read an electrical condition supplied from outside that pin.
More explanation of Input on a pin
For a digital input, hardware interprets a voltage as a LOW or HIGH state according to its allowed ranges. The input should have a defined level when a button is released. A reading tells the program what the electrical connection is doing; the program decides what action that state means.
- Why it matters
A program can react to a button or sensor instead of always following the same visible pattern.
- A small example
A pull-up, a suitable connection that holds the input toward a higher voltage when the button is released, can make the reading HIGH. Pressing a button wired to ground then makes it LOW.
- Common confusion
Input does not mean the pin supplies power to the button; it describes the direction of information.
Read in depth → Input on a pinA jumper wire is a short wire with ends made to connect board pins, modules or breadboard holes.
More explanation of Jumper wire
Some ends are metal pins that enter holes; others are sockets that slide over metal pins. Choose ends that make a secure electrical contact. The wire joins two points without changing the signal into something else. Its thickness and contacts also limit the current it can safely carry.
- Why it matters
Matching ends and secure contact prevent intermittent faults in a temporary circuit.
- A small example
A pin-ended jumper can connect Uno D8 to a breadboard group holding one end of the LED’s resistor.
- Safety
Ordinary thin signal jumpers are not a universal power cable for motors or large displays.
Read in depth → Jumper wireAn LED is an electronic component that emits light when suitable current flows through it in the forward direction.
Also called: light-emitting diode
More explanation of LED
LED means light-emitting diode. Its two connections have different roles: anode and cathode. For our positive-output circuit, current enters the anode and leaves the cathode. A suitable resistor in the same unbranched path (a series connection) limits current. The LED’s direction and allowed current matter; it is not simply a tiny lamp with interchangeable legs.
- Why it matters
It turns a programmed electrical change into something you can see immediately.
- A small example
Connect Uno D8 through a resistor to the LED anode, then connect the cathode to GND. Correct forward current makes it light.
- Common confusion
A power indicator already on the board is a different LED from your external LED. Watching the wrong one can hide a working experiment.
Read in depth → LEDA library is reusable code that supplies tasks your program can call.
More explanation of Library
A library can handle a device’s communication or another common job, so you do not have to implement every detail yourself. Your project must make the appropriate code available and use its expected interface. That interface means the names, arguments and results it provides. A similar device name does not guarantee the same library works.
- Why it matters
It explains how a short program can use complicated hardware while still needing the right support code.
- A small example
Arduino programming support provides functions such as pinMode and digitalWrite. A separate sensor may need an additional suitable library.
- Common confusion
Including a header names available declarations; it is not proof that an arbitrary external library is already installed.
Read in depth → LibraryA loop repeats a part of a program according to a rule.
Also called: loop
More explanation of Loop / repetition
Some loops repeat a known number of times; others continue while a condition holds. Repetition can happen quickly, so you may need waiting or timing to see individual changes. Repeating code does not necessarily make physical events repeat unless the code changes the relevant output.
- Why it matters
It explains how a small program can keep doing a task without endlessly copied lines.
- A small example
A blink sequence is repeated so you see many light-on/light-off cycles after one upload.
Read in depth → Loop / repetitionIn the Arduino framework, loop() is the function called repeatedly after setup() finishes.
Also called: Arduino loop
More explanation of loop()
The framework calls loop, waits for that call to finish, and then calls it again. You write the repeating behavior inside it. This named function is different from C++ for and while syntax, although those loops can be used inside a function too.
- Why it matters
It explains why the blink sequence repeats even though your source file contains only one copy.
- A small example
One loop() call turns the light on, waits, turns it off and waits. The next call repeats the sequence.
Read in depth → loop()LOW names the lower of two electrical states, commonly close to the circuit’s chosen zero-volt point.
More explanation of LOW
An output driven LOW is held near the lower signal level within the board’s current limits. An input treats a documented lower voltage range as LOW. A LOW pin is not necessarily disconnected. It can provide a return path for current in a differently arranged circuit, so “LOW” and “no electricity anywhere” are not equivalent.
- Why it matters
It prevents a state name from being mistaken for a universal physical action.
- A small example
In our D8-to-resistor-to-LED-to-GND circuit, LOW leaves little voltage across the light path, so the LED turns off.
- Common confusion
A LOW reading may mean a button is pressed. The program must interpret it using the actual circuit.
Read in depth → LOWmain is a commonly used branch name for a repository’s primary line of work.
More explanation of main
It is a convention, not a special source file or a universal rule. Repositories can use other default names and their own collaboration policies. Know which branch you are on and follow the club project’s agreed process before publishing changes.
- Why it matters
It makes branch labels in the editor understandable without implying that every experiment belongs directly on main.
- A small example
git status can show that your local work is on main or on an experiment branch.
- Common confusion
main is a branch name; main.cpp is a source filename. They are unrelated naming roles.
Read in depth → mainMemory holds information that a computer can use, including program instructions and changing values.
More explanation of Memory
There are different kinds of memory. Some retain information without power; others need power to keep their contents. Many microcontroller boards store the installed program in flash, which retains it when unplugged, and keep changing values in RAM, a kind of working memory, which normally loses them when power is removed.
- Why it matters
It explains why a board can keep your program yet restart a counter from its initial value after power is removed.
- A small example
Unplug an Uno after a successful upload. Power it again through a suitable source and its stored firmware normally starts from the beginning.
- Common confusion
Storing a program is different from keeping it running without electrical power.
Read in depth → MemoryA microcontroller is a small computer chip designed to read and control electrical connections.
Also called: MCU, microcontroller unit
More explanation of Microcontroller
It combines a processor that follows instructions, memory that holds information and hardware for interacting with other parts. A program can ask it to read a button or set an output level. The chip is usually mounted on a development board that makes power, programming and connection points easier to use.
- Why it matters
It is the part that continues following your uploaded program while the physical circuit responds.
- A small example
An Uno’s main microcontroller runs the blink instructions. The laptop does not have to send a new “on” message every second.
Read in depth → MicrocontrollerA motor converts electrical energy into movement, commonly rotation of a shaft.
More explanation of Motor
A small spinning motor still draws current, especially when starting or blocked. It can also create voltage disturbances when switched. A suitable driver and supply handle that behavior while the board sends commands. Different motor types need different drivers and cannot be controlled merely by attaching the same two wires.
- Why it matters
A moving project needs electrical drive design as well as a program.
- A small example
A brushed DC motor usually keeps rotating while driven. A servo is a different assembly commonly commanded to move toward an angle.
- Safety
Keep shafts and moving parts clear. Choose the driver and supply from actual motor ratings and startup current.
Read in depth → MotorAn open circuit has a broken path, so sustained current cannot follow that path.
More explanation of Open circuit
A loose lead, open switch or missing wire can interrupt the route. In the simple steady circuits here, the intended light then has no complete current path. A voltage can still exist between the disconnected points: an unused battery is not automatically at zero voltage.
- Why it matters
If a circuit is dark, check for a missing or loose connection before changing code.
- A small example
Pulling the return wire out of an LED circuit opens that path. The power indicator on the board may remain lit because it uses a different path.
- Common confusion
Open means electrically disconnected. It does not mean the source has stopped having a voltage.
Read in depth → Open circuitAn output lets the board drive an electrical signal chosen by the program.
More explanation of Output on a pin
When configured for digital output, the pin can be driven near its lower or higher signal level. The connected circuit determines the resulting current within the board’s limits. A simple LED path can respond directly through a resistor; a motor needs an appropriate additional driver.
- Why it matters
It is the bridge between a line of code and a visible physical response.
- A small example
A program drives D8 HIGH. In the reviewed resistor-and-LED-to-GND circuit, that produces forward current and light.
- Common confusion
Output describes signal direction, not unlimited electrical current.
Read in depth → Output on a pinA pin is a particular electrical connection on a chip or board.
More explanation of Pin
Board connectors expose metal contacts associated with pins. Some carry power or GND; others let the program read or control signals. The printed label tells you which connection you are using, but documentation tells you its electrical limits. Not every pin can do every job.
- Why it matters
The code’s chosen connection must match where your wire is actually plugged in.
- A small example
Uno D8 names a digital connection used in Lab 2. GND is a return/reference connection, not another freely programmable D8.
Read in depth → PinPlatformIO IDE adds tools for setting up, building, transferring and monitoring board programs inside VS Code.
Also called: PlatformIO
More explanation of PlatformIO IDE
It uses the project settings to select board support and preparation tools. PlatformIO Core is the underlying software that carries out these operations; the IDE extension makes them available in the editor. The first labs use the reviewed Uno configuration with Arduino programming support and normal .cpp source files.
- Why it matters
It connects the editor to the tools needed to prepare a program for the selected board.
- A small example
Open a configured Uno project, use Build to prepare its firmware, and use Upload to transfer that firmware to the connected Uno.
- Common confusion
PlatformIO is not C++ and not the physical board. Selecting the wrong board can make otherwise sensible code fail.
Read in depth → PlatformIO IDEPolarity tells you which direction or positive/negative connection matters for a part.
More explanation of Polarity
Some components work differently when reversed. An LED normally conducts and lights only in its intended forward direction. A resistor in our basic lesson can usually face either way. Markings, documentation and the actual part determine orientation; color or a photograph alone is not always enough.
- Why it matters
Following direction markings prevents a correctly connected-looking circuit from failing or being damaged.
- A small example
An ordinary new through-hole LED often has a longer positive-side leg and a shorter negative-side leg. A cut lead can remove that clue, so also check the flat edge or documentation.
Read in depth → PolarityHere, a port is the computer’s named connection used to communicate with the selected board.
More explanation of Port
A serial connection can appear under a name such as COM4 on Windows or /dev/ttyACM0 on Linux. Names can change and differ between computers. Choose the connection that corresponds to your board, rather than copying someone else’s port value. A port name is not the same as a GPIO pin number.
- Why it matters
The upload and monitor tools need to reach the intended connected device.
- A small example
Unplug and reconnect the intended Uno and observe which serial connection appears. Use that identified connection in the tool.
- Common confusion
The word port has other computing meanings. This entry concerns the board’s serial connection, not a network service number.
Read in depth → PortA potentiometer is an adjustable resistive component, often used to turn a knob position into a voltage.
More explanation of Potentiometer
Its usual three connections include two ends of a resistive track and a movable contact called the wiper. Turning the shaft moves that contact. With the track ends connected between a suitable supply and GND, the wiper provides a voltage between them. Keep that voltage within the board’s allowed input range.
- Why it matters
It gives a beginner a visible, controllable input for learning measurements.
- A small example
Turning the knob can change an input reading; Lab 5 uses that reading to change LED brightness.
- Common confusion
A potentiometer signal is not a safe substitute for a motor power controller.
Read in depth → PotentiometerPower is the rate at which energy is transferred or converted.
More explanation of Power
Electrical energy can become light, motion or heat. Power tells you how quickly that energy conversion happens and is measured in watts, written W. A component’s allowable power matters because it must shed the heat it produces. A resistor’s resistance and its safe power rating are separate facts.
- Why it matters
A circuit can have correct resistance values yet overheat if parts are too small for the energy they handle.
- A small example
An LED converts some supplied energy to light and some to heat. Its series resistor mainly turns electrical energy into heat.
- Common confusion
Power is neither voltage nor current by itself. More watts does not mean a circuit is more accurate.
Read in depth → PowerA power source supplies electrical energy to a connected circuit.
More explanation of Power source
A battery or suitable USB supply can provide energy through its electrical connections. What voltage it provides and how much current it can safely supply both matter. Its maximum current rating describes a limit; the connected circuit determines how much current actually flows during normal operation. Voltage is electrical energy difference per charge; current is charge passing per second.
- Why it matters
A circuit needs energy, and a matching connector alone does not prove that a source is suitable.
- A small example
For our first Uno LED lesson, the computer’s USB connection powers the board. A separate motor would need a supply and driver chosen for that motor.
- Common confusion
A 2 A supply does not force 2 A through every connected component. A short circuit can still draw damaging current.
Read in depth → Power sourceA processor is the part of a computer that carries out machine instructions.
Also called: processor, CPU
More explanation of Processor / CPU
CPU means central processing unit. It follows simple operations supported by its design, such as calculations and moving stored values. It does not read your English explanation of what you want. Software prepares instructions that this particular processor can execute.
- Why it matters
It explains why a correct program must be prepared for the correct board.
- A small example
When the prepared LED program runs, processor instructions eventually cause the output hardware to change the pin’s electrical level.
Read in depth → Processor / CPUA machine instruction is a small operation encoded in a form that a particular processor can execute.
Also called: instruction, machine instruction
More explanation of Processor instruction
A processor has a defined set of supported operations. Preparing your C++ program turns its larger expressions and function calls into suitable lower-level instructions. One source statement can correspond to many processor operations. These operations can affect memory and the hardware that controls pins.
- Why it matters
The board is following prepared operations, not interpreting the English meaning of a variable name.
- A small example
A source call to change a pin eventually runs processor operations that update the pin-control hardware.
Read in depth → Processor instructionA program is a set of instructions and rules that a computer follows to perform a task.
More explanation of Program
A program can repeat actions, store values and choose what to do next based on conditions. It does not have to run straight down every written line once. The source text describes its behavior; prepared machine instructions make that behavior executable on the chosen processor.
- Why it matters
It explains why a short file can produce a repeating pattern or react differently when a button changes.
- A small example
A blink program repeatedly requests light on, waits, requests light off, and waits again.
Read in depth → ProgramA software project is the related files, settings and code needed to build a particular program.
More explanation of Project
For our embedded lessons, the project contains source files and a PlatformIO configuration describing the board and programming support. The tools use these files together. One source file copied to a random folder is not automatically a complete project with the right board settings.
- Why it matters
It explains why opening the correct folder is part of preparing a working board program.
- A small example
The project root contains platformio.ini and a src folder. Its board setting identifies Uno for the first five Intro Labs.
Read in depth → ProjectPull obtains another repository’s updates and tries to integrate them into your current local branch.
More explanation of Pull
It combines retrieval of new history with an integration step. Local edits or diverging history can require attention, so inspect status first and follow the club workflow. Pull does not merely reopen a webpage; it can change files and history in your local project. Stop and ask for help if the integration reports a conflict you do not understand.
- Why it matters
It helps your local project catch up with shared changes while making the potential file changes explicit.
- A small example
Before starting a session, check status and use the agreed pull procedure to obtain the team’s latest work.
- Common confusion
Pull can require a merge or other configured integration. It is not guaranteed to succeed without intervention.
Read in depth → PullPush shares local Git commits with another repository and requests an update to its branch.
More explanation of Push
The remote is the other repository you have configured, commonly on GitHub. Push sends recorded commits rather than every unsaved or uncommitted edit. It can be rejected if your permission or the other repository’s state does not allow the update. Confirm the destination and follow the project’s collaboration rules.
- Why it matters
It is the step that makes local recorded work available through the shared repository.
- A small example
After a reviewed commit, push to the intended branch so another member can obtain that history.
- Common confusion
Push is not the same as saving, committing or uploading firmware to a board.
Read in depth → PushPulse-width modulation repeatedly switches a signal on and off, changing the fraction of time it stays on.
Also called: pulse-width modulation
More explanation of PWM
The output still uses electrical levels rather than becoming a perfectly smooth adjustable voltage. A longer on-time per cycle can deliver more average energy to a compatible LED circuit. Some devices respond usefully to this repeated switching; others require additional filtering or a different control method.
- Why it matters
It explains the brightness control in the analog-input lab without calling it a universal analog output.
- A small example
An LED on for about half of each rapid cycle can appear dimmer than one on for the whole cycle. Current limiting is still required during each on-pulse.
Read in depth → PWMPico names a family of small microcontroller boards, rather than the full Raspberry Pi Linux computers.
Also called: Pico 2 W
More explanation of Raspberry Pi Pico
Pico boards can run a program prepared for its small controlling computer and connect to circuits through pins. The original Pico and Pico 2 W use different chips and kinds of prepared program; Pico 2 W includes a wireless radio. These boards use 3.3 V signal levels, so an Uno’s ordinary 5 V output cannot simply be attached to their input pins.
- Why it matters
The Raspberry Pi name alone does not tell you the programming workflow or safe signal voltage.
- A small example
An original Pico can run a timing experiment without a desktop operating system or microSD boot card. Choose firmware for that exact Pico model.
Read in depth → Raspberry Pi PicoA Git repository is a collection of project files together with the history Git records for them.
Also called: repo
More explanation of Repository
Your local copy includes the files you edit and stored information about recorded versions. A repository may also be hosted on GitHub. Not every folder is automatically a Git repository, and a repository is not just one source file. Tools such as git status operate within the appropriate repository context.
- Why it matters
It makes “clone the repo” and “commit in the project” refer to a concrete collection of work.
- A small example
The club project repository can contain configuration, source, documents and history in one organized copy.
Read in depth → RepositoryResistance describes how strongly a part opposes current for a given voltage difference.
More explanation of Resistance
A resistive path allows less current than a lower-resistance path under the same voltage difference. We measure resistance in ohms, written Ω. A resistor is a component designed to provide a particular resistance. Wires also have some resistance, although short signal wires usually have much less than the resistor in our lesson.
- Why it matters
It gives you a way to control current rather than hoping that a component limits itself safely.
- A small example
Changing a series resistor from 330 Ω to 1,000 Ω usually reduces an ordinary indicator LED’s current and brightness under the same supply conditions.
- Common confusion
Resistance is not an instruction to the source. It is a property of the electrical path.
Read in depth → ResistanceA resistor is a component chosen to provide a known resistance, often to limit current or set voltages.
More explanation of Resistor
Our LED needs a resistor in the same current path, so the current passes through both parts. For an ordinary resistive component, the voltage across it and its resistance determine the current through it. Color bands or a label indicate the nominal value; actual tolerance and power rating still matter.
- Why it matters
A series resistor lets an ordinary LED operate with a controlled current instead of relying on an output pin to limit it.
- A small example
Lab 2 uses a verified 220–330 Ω resistor with an Uno and ordinary indicator LED. A 330 Ω value is the starting choice in this beginner walkthrough.
- Safety
Keep the resistor in the LED current path. Do not connect the LED directly between a power point and GND.
Read in depth → ResistorA returned value is information a function gives back to the code that called it.
Also called: return
More explanation of Return / returned value
Some functions calculate or read information and provide a result. The calling code can store or compare that result. Other functions mainly perform an action and provide no value; in C++ their return type is void. A return statement also ends the current function call, rather than restarting the whole program.
- Why it matters
It explains how reading a pin can give your program usable information.
- A small example
digitalRead(buttonPin) returns a state for the specified pin. Code can store that result and decide what to do next.
Read in depth → Return / returned valueStaging chooses the version of file content you intend to include in the next Git commit.
Also called: staging, staging area, git add
More explanation of Selected changes / staging
Git keeps this selected state separately from the working files and existing history. git add updates that selection for named paths. If you edit a file again afterward, the later edit is not automatically included in the already selected version. The deep glossary calls this selected state the index or staging area.
- Why it matters
It explains why a commit records deliberate changes rather than every current file automatically.
- A small example
Save main.cpp, inspect its diff, then select that file with git add src/main.cpp. Inspect git diff --staged before committing.
Read in depth → Selected changes / stagingA sensor turns a physical condition into a signal that a circuit can use.
More explanation of Sensor
A sensor can respond to light, temperature, distance or movement. Its signal—an electrical change carrying information—may be a changing voltage, a brief electrical change or a sequence of data. The board needs a compatible connection and a way to interpret that output. A sensor reading is not automatically an accurate physical measurement; you still need to check its limitations and how readings correspond to the quantity being measured.
- Why it matters
It connects a program to information about the world rather than only to values typed by a person.
- A small example
A light sensor can change its output as you cover it. A program can then decide whether to turn on an indicator.
Read in depth → SensorSerial communication sends information as an ordered sequence over a connection.
More explanation of Serial communication
In our Uno lessons, program messages can reach the computer through the board’s USB-to-serial arrangement. The program and receiving tool need matching communication settings. This message connection is different from driving an external LED pin, even though both are controlled by the program.
- Why it matters
It gives the program a way to show measurements or status as text.
- A small example
Serial.println(42); sends a textual line showing 42 after serial communication has been initialized.
Read in depth → Serial communicationSerial Monitor is a tool for viewing messages arriving through the selected serial connection.
More explanation of Serial Monitor
Your board’s program must actually send messages for them to appear. The selected port and communication speed must match the intended program. An empty monitor is normal for a blink program that never sends text. Opening the monitor can reset some boards, restarting their program.
- Why it matters
It can show what the program measured or which decision it made during debugging.
- A small example
A program initialized with Serial.begin(9600) needs a monitor configured for the same 9600 setting to display its messages correctly.
- Common confusion
Serial Monitor does not read the program’s mind and does not upload a program.
Read in depth → Serial MonitorIn the Arduino framework, setup() is the function called once when the program starts.
Also called: setup
More explanation of setup()
The framework provides the surrounding startup code. It calls your setup function after a reset or new power-up. You normally configure connections and initialize communication there. Once means once per startup, not once forever across every future unplugging or reset.
- Why it matters
It gives the first program a clear place to establish how a pin will be used.
- A small example
void setup() { pinMode(8, OUTPUT); } configures D8 as an output at startup.
Read in depth → setup()A shell is the program that reads a command you type and arranges for that command to run.
More explanation of Shell
PowerShell and Bash are examples. They have different command rules, although installed tools such as Git can be called from either. A shell also knows a current working folder, so relative filenames depend on where it is operating. The terminal displays the shell’s interaction.
- Why it matters
It explains why a command copied for one shell may need different syntax in another.
- A small example
In PowerShell, Get-Location displays the current folder. In Bash, pwd does that job.
Read in depth → ShellA short circuit is an unintended low-resistance connection that bypasses the intended electrical path.
More explanation of Short circuit
An unintended path that barely opposes moving charge can bypass the parts meant to limit it. This opposition is called resistance; moving charge per second is called current. A wire between power and return can allow excessive current. Protection may stop the supply, or parts can heat or be damaged. Short describes the electrical path, not a wire’s length.
- Why it matters
Knowing the intended connections helps you avoid the most common accidental wiring fault.
- A small example
If both ends of an LED’s resistor enter the same connected breadboard group, that connection bypasses the resistor.
- Safety
Disconnect power before changing uncertain wiring. Never intentionally join a power connection directly to ground.
Read in depth → Short circuitA signal is a physical change or pattern used to convey information.
More explanation of Signal
In our circuits, voltage levels and changes often carry the information. The same wire can be at one level and later at another; the receiving circuit interprets those levels under agreed rules. A signal still needs an electrical path and compatible voltages. It is not a separate magical substance added to electricity.
- Why it matters
It connects the idea of information in a program to physical electrical behavior.
- A small example
A button changes an input voltage. That change carries information about whether the contact is pressed.
Read in depth → SignalA statement is a unit of action or control in a program.
More explanation of Statement
Many simple C++ statements end with a semicolon. Others contain a group of statements between braces. A function call can be used as a statement, and an if statement can choose which statement group runs. The punctuation is part of the language’s structure, not decorative formatting.
- Why it matters
It helps you read a small program in meaningful pieces rather than as an unexplained wall of symbols.
- A small example
digitalWrite(8, HIGH); is a statement asking the Arduino support code to drive the selected pin HIGH.
Read in depth → StatementA terminal is a text window through which you enter commands and see their output.
More explanation of Terminal
Inside the window, another program called a shell interprets the commands. In VS Code, the integrated terminal appears within the editor but still has its own working folder and shell. Typing a command can inspect files or run another program; the exact command determines the action.
- Why it matters
It explains what “open a terminal” asks you to do without requiring prior command-line experience.
- A small example
Open VS Code’s Terminal menu and choose New Terminal. The prompt is where you type a command, not part of the command to copy.
- Common confusion
A terminal window is not a C++ source file. Code pasted there may be interpreted as shell commands.
Read in depth → TerminalTrue and false are the two logical values used to represent whether a condition holds.
Also called: true, false, Boolean
More explanation of True / false and bool
C++ writes these values as true and false. The bool type holds one of them. A comparison such as whether a count is greater than three produces a true/false result. This is information in the program, not a universal measurement of a pin’s physical voltage.
- Why it matters
It makes conditions understandable before you encounter if and loop decisions.
- A small example
bool lightWanted = true; records a yes/no decision. An if statement can use that decision to choose an action.
- Common confusion
true and HIGH are not interchangeable concepts. One is a logical value; the other names a digital electrical state.
Read in depth → True / false and boolA type describes the kind of value and operations a program permits.
More explanation of Type
C++ uses types such as int for whole numbers and bool for true/false values. A variable declaration states its type as well as its name. Types help the compiler check your intended use and determine how values are represented. Types also have limits; a small integer cannot hold every possible whole number.
- Why it matters
It explains the word before a variable’s name and why some operations or values do not fit.
- A small example
int count = 3; holds a whole-number count. bool pressed = false; holds a true/false value; here false records “not pressed.”
- Common confusion
A type is not the variable’s current value. Two int variables can hold different numbers.
Read in depth → TypeUpload transfers a prepared program to the connected board through its supported programming connection.
More explanation of Upload
The tool must identify the intended board and connection and successfully complete the transfer. Some Upload actions also build changed source first. On an Uno, the installed program normally remains in flash when power is removed. The board then starts running the new firmware; verify its behavior yourself.
- Why it matters
It is the stage that changes what is installed on the physical board.
- A small example
After uploading the Lab 2 firmware, the external D8 LED should follow the programmed on/off timing.
- Common confusion
Upload success is not proof of correct wiring or of uploading to the board you intended.
Read in depth → UploadUSB is a connection system that can carry data and power between compatible devices.
More explanation of USB
A suitable data cable connects the computer to the development board. It can supply power and carry information used for programming or communication. A cable that charges a device may lack working data conductors. The board’s USB connection and its programmable electrical pins have different jobs.
- Why it matters
It explains why a board can light its power indicator yet still fail to upload through a faulty or charge-only cable.
- A small example
For the Uno lesson, a verified USB-A to USB-B data cable supplies the board and transfers the prepared program.
- Common confusion
USB does not mean the computer continually controls every GPIO change. The uploaded firmware runs on the board.
Read in depth → USBA value is a particular piece of information used by a program, such as a number or a true/false result.
More explanation of Value
A program can calculate, compare and store values. The number 8 can identify a pin in one context and a count in another. A value’s type describes what sort of information it is and which operations make sense. Not every visible word in a program is a value; some words name actions.
- Why it matters
It gives meaning to the information inside variables and function calls.
- A small example
In delay(1000), the value 1000 specifies a waiting duration in milliseconds for that function.
Read in depth → ValueA variable is a named place in a program for holding a value.
More explanation of Variable
The name lets later code refer to that stored value. Some variables can change while the program runs; some are deliberately fixed. Think of a label on a storage place as an analogy, not a literal box inside the board. The actual representation uses the computer’s memory.
- Why it matters
A meaningful name lets you adjust a setting or retain a measurement without copying the same number everywhere.
- A small example
int blinkTime = 1000; creates an integer variable holding 1000. Later delay(blinkTime); uses that stored value. In this example, int means a whole-number type.
- Common confusion
Changing the source value does not change the board’s installed program until it is built and uploaded again.
Read in depth → VariableVoltage is the electrical energy difference per unit of charge between two points.
More explanation of Voltage
A source establishes a difference between its connections. That difference can help drive charge around a connected circuit. We measure voltage in volts, written V. A pin labeled 5 V is usually about five volts above the board’s chosen ground point. Voltage always compares places; saying a point has a voltage assumes a reference point.
- Why it matters
The wrong voltage can prevent operation or damage a component. Always compare it with the part’s allowed voltage.
- A small example
An Uno R3 commonly uses 5 V digital signals. Pico boards use 3.3 V signals; their pins should not receive a 5 V signal directly.
- Common confusion
Voltage is not an amount of electricity stored in a wire. “Push” can be an analogy, but the physical quantity is energy difference per charge.
Read in depth → VoltageVisual Studio Code is the editor and workspace used to manage our programming files and tools.
More explanation of VS Code
VS Code shows project files, lets you edit code and can host additional tools through extensions. It is not the programming language and is not the microcontroller running the uploaded program. In our setup, the PlatformIO extension adds embedded project, build and upload controls.
- Why it matters
Knowing its role makes the different windows and buttons less confusing.
- A small example
Use Explorer to open src/main.cpp, edit its C++ text, and use PlatformIO’s project actions to prepare or upload it.
- Common confusion
VS Code is not C++, and an editor squiggle is not always the same as an actual compiler error.
Read in depth → VS CodeA warning reports a concern that may deserve attention even if an operation completes.
More explanation of Warning
A compiler can prepare a program while warning about something suspicious. An editor can also show warnings based on its own analysis. Identify the producer and read the message before deciding it is harmless. Success does not mean every warning is irrelevant.
- Why it matters
It lets you distinguish a stopped operation from a concern that still needs review.
- A small example
An unused variable warning can be harmless in a small exercise, but it can also reveal that the program never uses a value you expected to matter.
- Common confusion
A warning is not automatically a build failure or automatically safe to ignore.
Read in depth → WarningA while loop repeats its body as long as its condition remains true.
Also called: while
More explanation of While loop
The condition is checked before each repetition. If it is false initially, the body does not run. Code must provide a way for the condition to stop being true when a finite loop is intended. Otherwise the program can remain there and fail to respond to other work.
- Why it matters
It explains why a program can appear stuck even though the processor is still following instructions.
- A small example
A loop that waits while a button remains pressed keeps checking the chosen condition. Other program actions may not run during that wait.
Read in depth → While loopA wire provides an electrical connection through a piece of metal, usually covered with an insulating outer layer.
More explanation of Wire
The metal inside lets electric charge move. The outer covering usually prevents that metal from accidentally touching another connection. The exposed ends are where you make contact. A wire can carry energy or information represented by electrical changes; it does not decide what those changes mean.
- Why it matters
Correct metal-to-metal contact is what connects a circuit. Nearby parts and touching plastic do not provide the same connection.
- A small example
A wire from the board’s output connection to a resistor joins those two electrical points. Its plastic covering keeps neighboring wires separate.
- Common confusion
Wire color is a useful label, not an electrical property. A red wire is not automatically connected to positive power.
Read in depth → WireThe working files are the actual files in your local repository that you currently view and edit.
Also called: working tree
More explanation of Working files
They can differ from the latest recorded commit. Saving writes changes to these files, while Git can report and compare those changes separately. Some newly created files may not yet be tracked by Git; other files are intentionally ignored, such as generated build output.
- Why it matters
It explains how a folder can contain edits that are not yet part of recorded history.
- A small example
After saving a changed main.cpp, your working file is updated immediately, even before you stage or commit it.
- Common confusion
The file on disk, the chosen changes for a commit and the latest recorded commit are distinct states.
Read in depth → Working files