Visual Studio Code
A general-purpose code editor with extensions and integrated terminals.
The club uses VS Code with the PlatformIO IDE extension to edit, build, and upload firmware for its microcontroller projects.
Setup and references →Start / Getting Started
Install the editor and its embedded toolchain, connect your board, then build and upload your first program.
BASIC
Download Visual Studio Code from the official site and install it.
Official VS Code download ↗In VS Code, open Extensions, search for the official PlatformIO IDE extension, and install it. Let its toolchain setup finish; reload VS Code if prompted.
Official PlatformIO installation guide ↗Connect the board to your computer with a data-capable USB cable that fits its connector. Power alone does not prove the data connection works.
project/
platformio.ini
src/
main.cppplatformio.ini configures the project and target environment; src/main.cpp contains your program. .pio/ holds generated build files and normally belongs in your Git ignore rules.
VS Code is the editor. PlatformIO selects and runs the compiler/toolchain. The Arduino framework provides APIs such as pinMode, delay, and Serial; normal C++ declares them through #include <Arduino.h>. Every club lab example already includes that header.
[env:uno]
platform = atmelavr
board = uno
framework = arduino
monitor_speed = 9600
platform = atmelavr selects the AVR tool ecosystem; board = uno selects the Uno board definition; framework = arduino selects the Arduino APIs. monitor_speed = 9600 matches the serial examples’ Serial.begin(9600). Open Monitor only when your selected example uses Serial.
For a separate Mega 2560 project, use board = megaatmega2560 with the AVR platform and Arduino framework, and give its environment a matching name. Verify that project’s wiring; the Intro Labs specify Uno R3.
Save writes files. Build compiles and links firmware. Upload transfers it to the board. PlatformIO Monitor opens its serial connection after Upload. Editor IntelliSense squiggles are diagnostics; the PlatformIO Build result determines whether the firmware compiles.
The first five labs use only the framework. Future external libraries belong in lib_deps in platformio.ini; PlatformIO resolves declared dependencies during project/build operations. An #include declares an API; saving a source file does not install a library.
Open VS Code, then PlatformIO Home from the PlatformIO view or toolbar.
Check: PlatformIO Home is open.
Choose New Project, give it a name and location, and choose the board and framework. For an existing club PlatformIO project, choose Open Project and open the folder containing platformio.ini.
Check: The project folder and platformio.ini are visible.
Match the environment to the physical board. All five Intro Labs specify Arduino Uno R3, board = uno and framework = arduino; use the Uno environment for their stated wiring. Mega 2560 projects use board = megaatmega2560 with the Arduino framework. For other boards, choose their supported board and framework and verify that project’s pin and voltage assumptions. Select the matching environment in Project Tasks.
Check: The selected board/environment matches the connected hardware.
Replace the entire contents of src/main.cpp with the complete Lab 1 source, including its #include <Arduino.h>. Do not append it below generated code or add a second header. Other frameworks use their own entry points.
Check: src/main.cpp contains the intended program and, for the Arduino framework, the Arduino.h include.
Open Lab 1 core program →Save the file. In PlatformIO Project Tasks, expand the matching environment and choose General > Build. Let the first build download its platform, framework, and tools; read the first compiler error if it fails.
Check: The build terminal reports SUCCESS.
Under the same environment, choose General > Upload. PlatformIO normally detects the serial port; if it chooses incorrectly, identify the board port in PlatformIO Devices by disconnecting and reconnecting, then set upload_port in platformio.ini. Wait for the upload to finish.
Check: The upload terminal reports SUCCESS.
For Lab 1 on Uno R3, watch the onboard LED marked L alternate on and off after Upload. A steady power LED is not the program. Change the timing, Save, Build, and Upload again to confirm your new program. Other board projects need their own documented expected output.
Check: The board shows the expected behavior, including the changed blink timing.
You are ready when the upload succeeds and your board runs the expected program.
For missing serial output, confirm the board is connected through a USB data cable, select its detected COM port in PlatformIO Devices, and check that the program calls Serial.begin. Monitor’s baud must match that call. Close any other application holding the port before Upload or Monitor.
Confirm the official PlatformIO IDE extension is installed and enabled, wait for its initial setup, and reload VS Code if prompted.
Try a known data-capable USB cable and another USB port. Compare PlatformIO Devices before and after reconnecting. Check the OS device list; if a driver is missing, use the board manufacturer's driver guidance. A power LED alone does not prove data works.
Check the board and framework in platformio.ini and the selected environment. Read the first compiler error; Arduino-framework main.cpp needs Arduino.h. Wait for first-time tool downloads to finish.
Confirm the physical board matches the selected environment, check the detected port or upload_port, and close serial monitors or other applications holding the port. Reconnect and follow the board's documented boot/reset procedure if needed.
Set monitor_speed in platformio.ini to match Serial.begin in the program (9600 for the Intro Lab serial programs).
A general-purpose code editor with extensions and integrated terminals.
The club uses VS Code with the PlatformIO IDE extension to edit, build, and upload firmware for its microcontroller projects.
Setup and references →An embedded-development extension and project build system.
The club uses PlatformIO inside VS Code for board environments, firmware builds, uploads, and library management.
Setup and references →Manufacturer tutorials, code and extra exercises for the ELEGOO Mega 2560 starter kit.
Useful for identifying kit parts or exploring beyond the club labs; it is not the Engineering Club curriculum and is not required before Lab 1.
Setup and references →ADVANCED
Optional tools for larger projects. Advanced does not mean expert only.
Local version control: snapshots and history of files in a repository.
Track firmware and documentation changes before sharing them. A commit is local; push sends commits to a remote such as GitHub.
Setup and references →Remote hosting and collaboration around Git repositories.
The club uses its repository to share code, technical files and revision history; Git makes local commits and GitHub stores the shared remote.
Setup and references →A graphical desktop app for common Git and GitHub operations.
Makes cloning, reviewing changes, committing, pulling, pushing and branch switching approachable.
Setup and references →Command-line access to Arduino board packages, compilation, uploads and libraries.
Optional reference for Arduino ecosystem automation and external or archival sketches. Current club examples are compiled with PlatformIO.
Setup and references →A general programming language with strong science and automation libraries.
Useful for Raspberry Pi scripts, data acquisition, serial logging, analysis, hardware tests and visualizations.
Setup and references →Writes a Raspberry Pi operating-system image to microSD storage.
Prepares a Pi for Linux, networking and Python-based projects; this is different from uploading microcontroller firmware.
Setup and references →A shell runs typed commands from a current directory; PATH helps locate installed commands.
Useful for quick diagnostics, tool versions, file navigation, Git and simple automation on Windows.
Setup and references →Runs Linux tools and distributions in a Windows development environment.
Can help with embedded Linux, Raspberry Pi, robotics and servers when a real project requires Linux workflows.
Setup and references →MORE
Optional ways to explore mathematics, simulation, design, and fabrication.
Python framework for programmatic mathematical animation.
Can visualize mechanisms, physics and engineering explanations for presentations or project documentation.
Setup and references →Grant Sanderson’s visual mathematics explanations.
Useful for intuition in calculus, linear algebra, differential equations, Fourier ideas and neural networks.
Setup and references →3D modeling and rendering software.
Useful for visualizing mechanisms, fabricated parts or engineering demonstrations.
Setup and references →Open-source schematic capture and PCB design.
Relevant when a breadboard prototype becomes a documented circuit or printed board.
Setup and references →Analog circuit simulator distributed by Analog Devices.
Explore voltages and waveforms before building suitable circuits; simulation still needs real-world checks.
Setup and references →Interactive browser-based circuit simulator.
A quick way to explore current flow and component changes before wiring a demonstration.
Setup and references →Interactive browser graphing calculator.
Plot sensor calibration, project trajectories or a mathematical relationship quickly.
Setup and references →Notebook interface for code, results and explanatory text.
Useful for instrument data, plots and reproducible analysis when a project uses Python.
Setup and references →Parametric 3D CAD software.
A route to model dimensioned parts for prototypes and fabrication.
Setup and references →