Site Guide

Find your way around the Engineering Club.

Know what you need? Search for a component, concept or project.

Around the site

Start

Labs

TestingExperimental

Build

Club

LearnExperimental

Go a little deeper

Entry points to larger collections. Use Search for individual records.

Learning paths & reference

Inside PiCrawlerExperimental

Inside Inventory

Start / Getting Started

Start with VS Code + PlatformIO.

Install the editor and its embedded toolchain, connect your board, then build and upload your first program.

BASIC

Three steps to Lab 1.

  1. 01

    Install Visual Studio Code

    Download Visual Studio Code from the official site and install it.

    Official VS Code download ↗
  2. 02

    Install PlatformIO IDE for VS Code

    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 ↗
  3. 03

    Connect your microcontroller board

    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.

VS Code + PlatformIO: your first project.

Your project has two source files

project/
  platformio.ini
  src/
    main.cpp

platformio.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.

Intro Labs: Arduino Uno R3

platformio.ini
[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.

  1. 01

    Open VS Code / PlatformIO

    Open VS Code, then PlatformIO Home from the PlatformIO view or toolbar.

    Check: PlatformIO Home is open.

  2. 02

    Create or open a PlatformIO project

    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.

  3. 03

    Match the environment to your physical board

    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.

  4. 04

    Open src/main.cpp

    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 →
  5. 05

    Build / compile

    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.

  6. 06

    Upload to the connected board

    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.

  7. 07

    Confirm the program is running

    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.

VS Code + PlatformIO setup verified

You are ready when the upload succeeds and your board runs the expected program.

Board, port, and upload troubleshooting

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.

PlatformIO Home is missing

Confirm the official PlatformIO IDE extension is installed and enabled, wait for its initial setup, and reload VS Code if prompted.

No board port appears

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.

Build fails

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.

Build succeeds but upload fails

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.

PlatformIO Monitor text is unreadable

Set monitor_speed in platformio.ini to match Serial.begin in the program (9600 for the Intro Lab serial programs).

PlatformIO reference and diagnostics →

requiredactive

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 →
referenceactive

ELEGOO starter-kit reference

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

Useful as projects grow.

Optional tools for larger projects. Advanced does not mean expert only.

optionalactive

Git

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 →
optionalactive

GitHub

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 →
optionalactive

GitHub Desktop

A graphical desktop app for common Git and GitHub operations.

Makes cloning, reviewing changes, committing, pulling, pushing and branch switching approachable.

Setup and references →
optionalactive

Arduino CLI

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 →
optionalactive

Python

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 →
project specificactive

Raspberry Pi Imager

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 →
optionalactive

PowerShell and the terminal

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 →
project specificactive

Windows Subsystem for Linux

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

Follow an engineering rabbit hole.

Optional ways to explore mathematics, simulation, design, and fabrication.

optionalactive

Manim Community

Python framework for programmatic mathematical animation.

Can visualize mechanisms, physics and engineering explanations for presentations or project documentation.

Setup and references →
optionalactive

3Blue1Brown

Grant Sanderson’s visual mathematics explanations.

Useful for intuition in calculus, linear algebra, differential equations, Fourier ideas and neural networks.

Setup and references →
optionalactive

Blender

3D modeling and rendering software.

Useful for visualizing mechanisms, fabricated parts or engineering demonstrations.

Setup and references →
optionalactive

KiCad

Open-source schematic capture and PCB design.

Relevant when a breadboard prototype becomes a documented circuit or printed board.

Setup and references →
optionalactive

LTspice

Analog circuit simulator distributed by Analog Devices.

Explore voltages and waveforms before building suitable circuits; simulation still needs real-world checks.

Setup and references →
optionalactive

JupyterLab

Notebook interface for code, results and explanatory text.

Useful for instrument data, plots and reproducible analysis when a project uses Python.

Setup and references →