Build Your Own Arduino Lessons Site

Build and publish a five-lesson Arduino site with interactive Wokwi circuits.

Introduction

30 Second Summary

Learning how circuits behave can feel expensive when every experiment seems to require a box of parts. Sharing what you learned can be just as awkward when it only lives on your computer.

In this project, you will prompt Claude Code to build five lessons for an Arduino Uno lessons site. The finished site opens each tested Wokwi circuit from a public Netlify Drop deployment.

What You'll Build

From a public netlify.app link, your finished lessons site guides a phone visitor from each lesson to its matching simulated circuit.

By the end of this project, you'll have:

  • Five working Arduino circuits that demonstrate an LED, a button, distance sensing, servo movement, and a combined project.
  • A step-by-step lesson flow with Next reveals, short quizzes, and completion ticks saved through browser storage.
  • A public lessons site that opens on a phone and launches each saved Wokwi project in a new tab.
  • Secret Mission: Build a three-LED traffic light controlled by a simulated distance sensor.

Are there any prerequisites?

You need a Claude account on Pro or a higher paid plan.

Your computer needs macOS 13.0 or later or Windows 10 version 1809 or later.

At least 4 GB of RAM and an internet connection are required, with no coding or electronics experience needed.

Before We Start

Before any hands-on work begins, take a moment to commit to what you are building. You are creating a beginner-friendly lessons site that teaches five Arduino Uno simulations and can be published for others to use.

Install Claude Code and Start Your Lessons Folder

Claude Code must run inside the learn-arduino folder so every later lesson plan, circuit, and site file lands in one predictable place.

The version check proves the installation is available. The starter prompt then proves the session is using the right folder without creating a file.

In this step, get ready to:
  • Install Claude Code.
  • Start Claude Code inside a new Desktop folder named learn-arduino.
  • Confirm the current folder with a starter prompt.
Install and verify Claude Code

The native installation command depends on your operating system. macOS uses Terminal. Windows uses PowerShell.

macOS

  • Press Cmd+Space to open macOS search.
  • Type Terminal.
  • Press Enter to start Terminal.
  • Install Claude Code by running this command in Terminal:
curl -fsSL https://claude.ai/install.sh | bash

What does this command do?

  • curl -fsSL downloads the official Claude Code installation script.
  • https://claude.ai/install.sh identifies Anthropic's native installer.
  • bash runs the downloaded installation script.

The installer may sit quietly while it downloads Claude Code. A quiet terminal during that short wait is normal.

You should see the installer finish without an error.

Windows

  • Press the Windows key to open Windows search.
  • Type PowerShell.
  • Press Enter to start PowerShell.
  • Install Claude Code by running this command in PowerShell:
irm https://claude.ai/install.ps1 | iex

What does this command do?

  • irm downloads the official Claude Code installation script.
  • https://claude.ai/install.ps1 identifies Anthropic's native PowerShell installer.
  • iex runs the downloaded installation script.

The installer may sit quietly while it downloads Claude Code. A quiet PowerShell window during that short wait is normal.

You should see the installer finish without an error.

  • Start a new Terminal window on macOS or PowerShell window on Windows.
  • Close the Terminal or PowerShell window that ran the installer.
  • Press Cmd+Space on macOS or the Windows key on Windows.
  • Type Terminal on macOS or PowerShell on Windows.
  • Press Enter to start the new window.
  • Verify the Claude Code installation by running this command:
claude --version

What does this command do?

claude --version asks the installed Claude Code command to print its version information. A successful response proves your new terminal can find the installation.

You should see a version number followed by (Claude Code). Good progress. That version line proves Claude Code is ready to run.

Installation not verifying?

  • Start another new Terminal or PowerShell window so it can detect the installed command.
  • Return to the platform tab above to confirm that its installer finished without an error.

Help me diagnose why Claude Code is unavailable after installation.

Create the lessons folder and start Claude Code

The current terminal folder sets the location for your Claude Code session. Keeping the project in learn-arduino prevents later files from being scattered across your computer.

macOS

  • Create learn-arduino on your Desktop and move into it by running this command:
mkdir -p ~/Desktop/learn-arduino && cd ~/Desktop/learn-arduino

What does this command do?

  • mkdir -p creates the folder if it does not already exist.
  • && runs the next command after the folder is created successfully.
  • cd ~/Desktop/learn-arduino moves the terminal into the new project folder.

You should see the terminal prompt return inside learn-arduino.

Windows

  • Create learn-arduino on your Desktop and move into it by running this command:
New-Item -ItemType Directory -Force "$HOME\Desktop\learn-arduino"; Set-Location "$HOME\Desktop\learn-arduino"

What does this command do?

  • New-Item -ItemType Directory creates the project folder.
  • -Force allows the command to continue if the folder already exists.
  • Set-Location moves PowerShell into $HOME\Desktop\learn-arduino.

You should see the PowerShell prompt return inside learn-arduino.

The first launch opens browser authentication for your Claude account. This sign-in flow is expected.

  • Start Claude Code inside learn-arduino by running this command:
claude

What does this command do?

claude starts an interactive Claude Code session in the terminal's current folder. Your current folder is learn-arduino.

  • Follow the browser sign-in prompts for your Claude account.

You should return to a signed-in Claude Code session that is waiting for your first prompt.

Confirm the current folder

A folder check now prevents Claude Code from creating future project files somewhere unexpected. The prompt also sets a clear boundary by telling Claude Code to create nothing yet.

Before you send the prompt, do you think Claude Code will confirm the folder without creating anything?

  • Confirm the current folder by sending this prompt to Claude Code:
Hello. Confirm that your current working folder is named learn-arduino. Do not create any files yet.

What does this prompt do?

The first sentence asks Claude Code to report the folder attached to the session. The second sentence prevents this setup check from creating project files.

Claude Code should confirm that its current working folder is learn-arduino. It should create no files.

Claude Code is installed inside the empty learn-arduino folder. Next up, you will use your first project prompt to create the five-lesson plan.

Plan Five Lessons, One Circuit Each

Your learn-arduino folder is ready. The next goal is to give every future circuit a fixed place in the learning path.

A fixed lesson plan keeps Claude Code focused on the same five lessons when it creates the circuit files and lessons site later.

In this step, get ready to:
  • Create lessons.md with exactly five lessons in the required order.
  • Verify every lesson includes its parts, pins, visible result, and new-part note.
  • Correct any missing requirement without adding an extra lesson.
Create the five-lesson plan

Each lesson needs enough detail to guide its future circuit. Setting those details now prevents the site from drifting into a different order later.

  • Send the following planning prompt in the Claude Code session from earlier:
Create lessons.md for a total beginner using an Arduino Uno in Wokwi. Use exactly these five lessons in this order:
1. Blink an LED
2. Push a button
3. Read a distance sensor
4. Sweep a servo
5. Build a project

For each lesson, list its Wokwi parts, Arduino pins, visible result, and one sentence about its new part. Use only wokwi-arduino-uno, wokwi-led, wokwi-resistor, wokwi-pushbutton, wokwi-hc-sr04, and wokwi-servo.

Use these fixed details:
- Lesson 1: red LED and 220 ohm resistor on pin 13
- Lesson 2: pushbutton on pin 2 controls a red LED on pin 13
- Lesson 3: HC-SR04 TRIG on pin 3 and ECHO on pin 2 prints centimetres
- Lesson 4: servo signal on pin 9 sweeps from 0 to 180 degrees and back with Servo
- Lesson 5: HC-SR04 controls green, yellow and red LEDs; red is used below 20 cm

Do not create website or circuit files yet. Print lessons.md when finished.

What does this prompt do?

  • The prompt keeps every circuit on an Arduino Uno inside Wokwi.
  • The fixed lesson names preserve the required teaching order.
  • The approved part list prevents unsupported components from entering the plan.
  • The final instruction keeps website and circuit files out of this planning step.

You should see Claude Code create lessons.md inside learn-arduino.

Claude Code should print the file with five numbered lessons in the required order.

Check the lesson plan

A plan can contain five lesson titles while still missing a pin or observable result. This check catches those gaps before they spread into the circuit files.

Before you compare the plan, which lesson do you expect to appear immediately after Read a distance sensor?

  • Compare the displayed lessons.md with the required five-lesson order.
  • Check every lesson for its parts, pins, visible result, and new-part note.

You should see Blink an LED, Push a button, Read a distance sensor, Sweep a servo, and Build a project in that order.

Each lesson should include four fields: Wokwi parts, Arduino pins, a visible result, and a new-part note.

  • Correct only a failed plan check by sending this prompt in the same Claude Code session:
Revise lessons.md so it has exactly the five required lessons in the required order, one circuit per lesson, and parts, pins, visible result, and one new-part sentence for every lesson. Print the revised file.

What does this prompt do?

This prompt preserves the five-lesson scope while restoring any missing requirement. Printing the revised file gives you an immediate second check.

You should see a revised lessons.md with no extra lesson.

  • Compare your finished lessons.md with the complete reference below.

✔️ Awesome, I've got everything!

Your lessons.md file has five numbered lessons in the required order. Keep the Claude Code session running for the next step.

ⓧ I'd like to double check the full code

Compare your complete lessons.md with this reference:

# Learn Arduino

1. Blink an LED: wokwi-arduino-uno, wokwi-led, wokwi-resistor; pin 13; blinks once per second.
2. Push a button: add wokwi-pushbutton on pin 2; LED on pin 13 lights while held.
3. Read a distance sensor: wokwi-hc-sr04; TRIG 3, ECHO 2; prints centimetres.
4. Sweep a servo: wokwi-servo; PWM 9; sweeps from 0 to 180 degrees and back.
5. Build a project: HC-SR04 and three LEDs; distance chooses the traffic light.

What does this file show?

Each numbered line records one lesson's title, parts, pin details, and observable result. Together, the five lines lock the order used by every later circuit and lesson page.

Your five-lesson map is locked in. Next, you'll turn Lesson 1 into a blinking circuit in Wokwi.

Run Your First Circuit in Wokwi

Your five-lesson plan has locked in the order and parts for the whole learning path. Claude Code can now turn its first lesson into files you can test.

A blinking LED gives you an early visible win in Wokwi before you build the lessons site around it.

In this step, get ready to:
  • Ask Claude Code to create the Lesson 1 circuit files.
  • Run the blinking LED circuit in Wokwi.
  • Save the Lesson 1 Wokwi project.
Create the blinking circuit files

The sketch.ino file controls what the Arduino Uno does. The diagram.json file describes the parts and their connections.

  • Create the Lesson 1 files inside the learn-arduino folder by pasting this prompt into Claude Code:
Create circuits/01-blink/sketch.ino and circuits/01-blink/diagram.json. Use only one wokwi-arduino-uno, one red wokwi-led, and one wokwi-resistor set to 220 ohms. Wire the LED and resistor in series from pin 13 to ground. Blink it on for 1000 milliseconds and off for 1000 milliseconds forever. Use diagram.json version 1. Do not create libraries.txt. Print both files in labeled fenced code blocks.

What does this prompt do?

  • The prompt places both files inside circuits/01-blink so the circuit stays separate from later lessons.
  • The circuit uses pin 13 with one red LED and one 220 ohm resistor.
  • The sketch keeps the LED on for 1000 milliseconds. It keeps the LED off for the same duration.
  • Claude Code prints both files so you can paste them into the matching Wokwi tabs.

You should see Claude Code create and print circuits/01-blink/sketch.ino and circuits/01-blink/diagram.json. Your first simulated circuit is now ready to load.

✔️ I'll try it first

Confirm that Claude Code printed a sketch with a repeating blink and a diagram with one Arduino Uno, one red LED and one resistor.

ⓧ Let me check my work

Compare Claude Code's complete circuits/01-blink/sketch.ino file with this reference.

const int ledPin = 13;
void setup() { pinMode(ledPin, OUTPUT); }
void loop() {
  digitalWrite(ledPin, HIGH); delay(1000);
  digitalWrite(ledPin, LOW); delay(1000);
}

What does this file do?

The setup function prepares ledPin as an output. The loop function switches the LED between on and off every second.

Compare Claude Code's complete circuits/01-blink/diagram.json file with this reference.

{"version":1,"author":"Learn Arduino","editor":"wokwi","parts":[{"type":"wokwi-arduino-uno","id":"uno","top":0,"left":0,"attrs":{}},{"type":"wokwi-led","id":"led1","top":-80,"left":270,"attrs":{"color":"red"}},{"type":"wokwi-resistor","id":"r1","top":20,"left":220,"attrs":{"value":"220"}}],"connections":[["uno:13","r1:1","green",[]],["r1:2","led1:A","green",[]],["led1:C","uno:GND.1","black",[]]]}

What does this file do?

The parts list places the Arduino Uno, red LED and resistor in the simulation. The connections run from pin 13 through the resistor and LED to ground.

Run the circuit in Wokwi

Wokwi needs the sketch and diagram together before it can reproduce your circuit. Each Claude Code file replaces the contents of the Wokwi tab with the same name.

  • Replace the contents of sketch.ino with the file Claude Code printed from circuits/01-blink/sketch.ino.
  • Select the sketch.ino tab.
  • Press Cmd+A (macOS) or Ctrl+A (Windows) to select the starter sketch.
  • Paste the complete circuits/01-blink/sketch.ino content from Claude Code.
  • Replace the contents of diagram.json with the file Claude Code printed from circuits/01-blink/diagram.json.
  • Select the diagram.json tab.
  • Press Cmd+A (macOS) or Ctrl+A (Windows) to select the starter diagram.
  • Paste the complete circuits/01-blink/diagram.json content from Claude Code.
  • Decide whether you expect the external red LED to follow the planned one-second rhythm.
  • Start the Wokwi simulation.
  • Press the green play button in the Wokwi editor.

You should see the external red LED turn on for 1000 milliseconds. It turns off for 1000 milliseconds before repeating the cycle.

Red LED not blinking?

Check that the Wokwi sketch.ino tab contains the file from circuits/01-blink/sketch.ino. Confirm that ledPin is set to 13.

Check that the diagram.json tab contains the complete parts and connections data from Claude Code.

Help me diagnose the Wokwi circuit

Save the Lesson 1 Wokwi project

The lessons site needs a stable URL for this circuit. Saving the project gives Lesson 1 a link that can reopen the same parts and code later.

  • Save the Lesson 1 Wokwi project with Wokwi's save flow.
  • Start the save flow from the current Wokwi project.
  • Follow the browser sign-in prompts if Wokwi asks you to sign in.
  • Return to the current Wokwi project after sign-in completes.

You should see a saved project URL beginning with https://wokwi.com/projects/. That URL identifies your Lesson 1 Wokwi project.

  • Copy the saved project URL into your saved Lesson 1 Wokwi project URL.
  • Select the saved URL in the address bar.
  • Press Cmd+C (macOS) or Ctrl+C (Windows) to copy it.
  • Decide whether you expect the saved URL to reopen the same blinking circuit.
  • Visit your saved Lesson 1 Wokwi project URL in a new tab.
  • Press Cmd+L (macOS) or Ctrl+L (Windows) to select the address bar.
  • Paste the saved Lesson 1 Wokwi project URL.
  • Press Enter.

You should see the same Arduino Uno, red LED and resistor circuit reopen from the saved URL.

  • Start the reopened simulation.
  • Press the green play button in the reopened Wokwi project.

The external red LED should resume its one-second blink cycle. That is your first saved Arduino circuit running without physical hardware.

Your blinking circuit now has a saved Wokwi URL. Next up, you will build the first local version of the lessons site around it.

Build the Lesson Site

Your first circuit now blinks once per second. That working circuit gives the first lesson something real to teach.

Claude Code can turn your saved Wokwi circuit into a local teaching loop before the remaining circuits are added.

The lessons site uses plain web files that run directly in your browser. You can test the complete Lesson 1 experience without packages or a server.

In this step, get ready to:
  • Ask Claude Code to build a lessons site with plain HTML, CSS and JavaScript.
  • Test the complete Lesson 1 teaching loop in the local lessons site.
  • Audit the local lessons site against every required check.
Prompt Claude Code to build the site

Progressive disclosure reveals a lesson in small pieces. The learner focuses on one explanation before the next one appears.

  • Record the saved Lesson 1 Wokwi project URL here: your saved https://wokwi.com/projects/... URL.
  • Build the first lessons site by sending this prompt in the Claude Code session from earlier:
Build the first working lessons site in learn-arduino with only plain HTML, CSS and JavaScript. Do not use React, npm, packages, a server, a build step, or an iframe. It must work when index.html is double-clicked.

Create index.html, style.css, app.js, and lessons/01-blink.html. List exactly five lessons in this order: Blink an LED, Push a button, Read a distance sensor, Sweep a servo, Build a project. Make Lesson 1 available and mark Lessons 2 to 5 as coming next.

Lesson 1 must reveal one teaching step at a time with a button whose text is Next. Cover the LED and resistor, pin 13 wiring, important sketch lines, and the one-second blink. End with one short multiple-choice quiz. Remember correct completion and show a tick on the home view. Use browser storage when available and a same-page fallback when local storage is unavailable.

Add a button whose text is Open the circuit. Open this saved Wokwi project in a new tab:
[[LESSON_1_WOKWI_URL="your saved https://wokwi.com/projects/... URL"]]

lessons/01-blink.html may route to the Lesson 1 hash view in index.html. Use accessible controls and a responsive layout. Report the files created and the checks completed.

What does this prompt do?

  • Claude Code creates the four site files inside learn-arduino.
  • The Next flow reveals the Lesson 1 explanations in order.
  • Browser storage keeps the completion tick available after the learner leaves the lesson.
  • The saved Wokwi URL connects the lesson to the circuit without embedding it.

You should see Claude Code report that it created index.html, style.css, app.js and lessons/01-blink.html. Its report should mention one working lesson with a quiz and progress tracking.

✔️ Claude created the site files

Claude Code has created the local lessons site. Keep the files inside the existing learn-arduino folder.

ⓧ I'd like to double check the full code

The complete project state at this checkpoint is shown below.

# Learn Arduino

1. Blink an LED: wokwi-arduino-uno, wokwi-led, wokwi-resistor; pin 13; blinks once per second.
2. Push a button: add wokwi-pushbutton on pin 2; LED on pin 13 lights while held.
3. Read a distance sensor: wokwi-hc-sr04; TRIG 3, ECHO 2; prints centimetres.
4. Sweep a servo: wokwi-servo; PWM 9; sweeps from 0 to 180 degrees and back.
5. Build a project: HC-SR04 and three LEDs; distance chooses the traffic light.

What does this file do?

This file keeps the five lessons in their fixed order. Later prompts use this plan to preserve the same circuit sequence.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Learn Arduino</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <header><a href="#home">Learn Arduino</a><p>Five small circuits. One step at a time.</p></header>
  <main id="app" tabindex="-1"></main>
  <script src="app.js"></script>
</body>
</html>

What does this file do?

This file supplies the page structure. It loads the stylesheet and the JavaScript that renders each view.

:root { font-family: system-ui, sans-serif; background: #f5f7fb; color: #172033; }
* { box-sizing: border-box; }
body { margin: 0; }
header { padding: 2rem 1rem; text-align: center; background: #16324f; color: white; }
header a { color: white; font-size: 2rem; font-weight: 800; text-decoration: none; }
main { width: min(900px, 92%); margin: 2rem auto; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .lesson { background: white; border: 1px solid #d9e0ea; border-radius: 14px; padding: 1.25rem; }
.locked { opacity: .65; }
button, .button { display: inline-block; border: 0; border-radius: 9px; padding: .75rem 1rem; background: #0b6e4f; color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:disabled { background: #6b7280; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.step { border-left: 5px solid #f59e0b; padding-left: 1rem; }
.answers { display: grid; gap: .6rem; margin: 1rem 0; }
.feedback { min-height: 1.5rem; font-weight: 700; }
pre { overflow-x: auto; background: #101827; color: #eef2ff; padding: 1rem; border-radius: 10px; }
@media (max-width: 520px) { .actions > * { width: 100%; text-align: center; } }

What does this file do?

This stylesheet arranges the lesson cards and teaching steps. Its responsive rule makes the action controls fill narrow screens.

const circuitLinks = {
  1: "PASTE_YOUR_LESSON_1_WOKWI_URL_HERE"
};

const lessons = [
  { id: 1, title: "Blink an LED", steps: [
    "The LED is the visible output, and the 220 ohm resistor limits current.",
    "Pin 13 connects through the resistor and LED to ground.",
    `<pre><code>pinMode(13, OUTPUT);\ndigitalWrite(13, HIGH);\ndelay(1000);\ndigitalWrite(13, LOW);\ndelay(1000);</code></pre>HIGH turns the LED on, LOW turns it off, and each delay lasts one second.`,
    "Run the circuit and look for a one-second blink."
  ], question: "Which value turns the LED on?", answers: ["LOW", "HIGH", "INPUT"], correct: 1 }
];

const titles = ["Blink an LED", "Push a button", "Read a distance sensor", "Sweep a servo", "Build a project"];
const app = document.querySelector("#app");
let memoryProgress = new Set();

function loadProgress() {
  try { return new Set(JSON.parse(localStorage.getItem("learnArduinoProgress") || "[]")); }
  catch { return memoryProgress; }
}
function saveProgress(progress) {
  memoryProgress = progress;
  try { localStorage.setItem("learnArduinoProgress", JSON.stringify([...progress])); }
  catch { /* Same-page memory remains available for this session. */ }
}
function validUrl(url) { return typeof url === "string" && url.startsWith("https://wokwi.com/projects/"); }
function renderHome() {
  const progress = loadProgress();
  app.innerHTML = `<h1>Your lessons</h1><div class="grid">${titles.map((title, index) => {
    const id = index + 1;
    const available = id === 1;
    return `<article class="card ${available ? "" : "locked"}"><h2>${id}. ${title}</h2><p>${progress.has(id) ? "Completed &#10003;" : available ? "Ready" : "Coming next"}</p>${available ? `<a class="button" href="#lesson=${id}">Start lesson</a>` : `<button disabled>Coming next</button>`}</article>`;
  }).join("")}</div>`;
  app.focus();
}
function renderLesson(id) {
  const lesson = lessons.find(item => item.id === id);
  if (!lesson) return renderHome();
  let shown = 0;
  app.innerHTML = `<article class="lesson"><a href="#home">Back to lessons</a><h1>${lesson.id}. ${lesson.title}</h1><div id="steps"></div><div class="actions"><button id="next">Next</button><a id="circuit" class="button" target="_blank" rel="noopener">Open the circuit</a></div><section id="quiz" hidden></section></article>`;
  const steps = app.querySelector("#steps");
  const next = app.querySelector("#next");
  const circuit = app.querySelector("#circuit");
  const url = circuitLinks[id];
  circuit.href = validUrl(url) ? url : "#";
  if (!validUrl(url)) circuit.addEventListener("click", event => event.preventDefault());
  function showQuiz() {
    const quiz = app.querySelector("#quiz");
    quiz.hidden = false;
    quiz.innerHTML = `<h2>Quick check</h2><p>${lesson.question}</p><div class="answers">${lesson.answers.map((answer, index) => `<button data-answer="${index}">${answer}</button>`).join("")}</div><p class="feedback" aria-live="polite"></p>`;
    quiz.querySelectorAll("[data-answer]").forEach(button => button.addEventListener("click", () => {
      const feedback = quiz.querySelector(".feedback");
      if (Number(button.dataset.answer) === lesson.correct) {
        const progress = loadProgress();
        progress.add(id);
        saveProgress(progress);
        feedback.textContent = "Correct. Lesson complete.";
      } else feedback.textContent = "Try again.";
    }));
  }
  function reveal() {
    steps.insertAdjacentHTML("beforeend", `<section class="step"><h2>Step ${shown + 1}</h2><div>${lesson.steps[shown]}</div></section>`);
    shown += 1;
    if (shown === lesson.steps.length) { next.hidden = true; showQuiz(); }
  }
  next.addEventListener("click", reveal);
  reveal();
  app.focus();
}
function route() {
  const match = location.hash.match(/^#lesson=(\d+)$/);
  if (match) renderLesson(Number(match[1])); else renderHome();
}
addEventListener("hashchange", route);
route();

What does this file do?

This file renders the home view and Lesson 1. It controls the reveals and quiz while preserving completion progress.

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="refresh" content="0;url=../index.html#lesson=1"><title>Blink an LED</title></head><body><a href="../index.html#lesson=1">Continue to Lesson 1</a><script>location.replace("../index.html#lesson=1");</script></body></html>

What does this file do?

This file routes a direct Lesson 1 visit back to the matching lesson view in index.html.

const int ledPin = 13;
void setup() { pinMode(ledPin, OUTPUT); }
void loop() {
  digitalWrite(ledPin, HIGH); delay(1000);
  digitalWrite(ledPin, LOW); delay(1000);
}

What does this file do?

This unchanged circuit program turns the LED on for 1000 milliseconds. It then turns the LED off for the same duration.

{"version":1,"author":"Learn Arduino","editor":"wokwi","parts":[{"type":"wokwi-arduino-uno","id":"uno","top":0,"left":0,"attrs":{}},{"type":"wokwi-led","id":"led1","top":-80,"left":270,"attrs":{"color":"red"}},{"type":"wokwi-resistor","id":"r1","top":20,"left":220,"attrs":{"value":"220"}}],"connections":[["uno:13","r1:1","green",[]],["r1:2","led1:A","green",[]],["led1:C","uno:GND.1","black",[]]]}

What does this file do?

This unchanged circuit diagram connects pin 13 to the red LED through the 220 ohm resistor.

Test the local teaching loop

A direct local test proves that the plain files work without a server. It also exposes the exact lesson state before more circuits are added.

Before you load the page, what do you expect the home view to show for Lessons 2 through 5?

  • Load the lessons site from index.html.
  • Press Cmd+Space on macOS or the Windows key on Windows.
  • Type Finder on macOS or File Explorer on Windows.
  • Press Enter.
  • Select Desktop from the sidebar.
  • Double-click the learn-arduino folder.
  • Double-click index.html.

You should see exactly five lessons in the planned order. Lesson 1 should show Ready. Lessons 2 through 5 should show Coming next.

That visible gap is intentional. The first local version proves one complete teaching loop while showing which circuits still need lessons.

  • Enter Lesson 1 from the home view.
  • Select the link beneath 1. Blink an LED.

You should see the Blink an LED lesson with its first teaching step and a Next button.

  • Reveal the remaining Lesson 1 content.
  • Click Next until the quiz appears.

You should see each explanation appear one step at a time. The final reveal should replace the Next button with a short quiz.

  • Complete the quiz with the correct HIGH answer.
  • Select HIGH from the answer choices.

You should see Correct. Lesson complete. beneath the answers.

  • Open the saved Lesson 1 Wokwi project from the lesson.
  • Click Open the circuit.

The saved Lesson 1 Wokwi project should open in a new tab.

  • Return to the lessons home view.
  • Switch back to the lessons site tab from earlier.
  • Select the return link above the Lesson 1 title.

You should see a completion tick on the Blink an LED card. That's the full teaching loop working from explanation to remembered progress.

Circuit link not opening?

The most common cause is the URL marker remaining in app.js. The saved value must begin with https://wokwi.com/projects/.

Check that the URL belongs to the saved Lesson 1 Wokwi project.

help me diagnose why the Open the circuit link does not open my saved Wokwi project

Audit the completed local site

The browser test proves the main teaching loop works. An audit catches structural problems such as a missing relative path or an embedded circuit before later lessons build on the same files.

Before you send the audit, which checks do you expect Claude Code to report as passing?

  • Audit the local lessons site by sending this prompt in the Claude Code session from earlier:
Audit the local lessons site. Confirm that it uses only plain HTML, CSS and JavaScript, opens from index.html without a build step, contains no iframe, reveals Lesson 1 with Next, opens its saved Wokwi URL in a new tab, and shows a tick after the quiz. Fix only failed checks, then list every passing check.

What does this prompt do?

Claude Code compares the site with the required local behavior. It fixes only a check that fails.

The final list gives you one place to confirm the file type and lesson flow. It also confirms the circuit link and completion tick.

You should see every required check listed as passing. The audit should confirm plain files and direct index.html loading. It should also confirm the Lesson 1 reveal flow and saved circuit link.

Your Lesson 1 teaching loop now works locally. Next, you'll add the button and distance sensor lessons before finishing with the servo.

Add the Button, Sensor and Servo Lessons

Your first lesson now teaches a complete loop from explanation to circuit. The home view also makes the remaining gap clear because Lessons 2 to 5 are still locked.

Lessons 2 to 5 are visibly incomplete, so this step uses Claude Code and Wokwi to add the button, sensor and servo circuits without changing the required lesson order.

In this step, get ready to:
  • Build and link the Push a button lesson.
  • Build and link the Read a distance sensor lesson.
  • Build and link the Sweep a servo lesson.
Build, test and link Lesson 2

A pushbutton introduces a digital input. The circuit reads that input through pin 2 and controls the LED on pin 13.

  • Add the Lesson 2 circuit files and lesson flow by sending this prompt to the Claude Code session from earlier:
Add Lesson 2, Push a button, without changing Lesson 1 or the five-lesson order. Create circuits/02-button/sketch.ino, circuits/02-button/diagram.json, and lessons/02-button.html. Use only wokwi-arduino-uno, wokwi-pushbutton, wokwi-led and wokwi-resistor. Use pin 2 with INPUT_PULLUP and the other button contact to ground. Use pin 13 for a red LED with a 220 ohm series resistor. The LED must be on only while the button is held. Add the existing Next flow, one quiz, progress memory, and an Open the circuit button. Leave its URL as LESSON_2_WOKWI_URL. Do not use an iframe. Print both circuit files and report changed site files.

What does this prompt do?

  • The prompt adds the button circuit under circuits/02-button without changing Lesson 1.
  • It adds Lesson 2 to the existing Next flow with a quiz and remembered completion.
  • It keeps LESSON_2_WOKWI_URL as a temporary marker until the circuit has a saved link.

Claude Code should print circuits/02-button/sketch.ino and circuits/02-button/diagram.json. It should also report changes to the lesson site.

You should see a new Arduino Uno project with sketch.ino and diagram.json tabs.

  • Replace the contents of sketch.ino with the Lesson 2 file printed by Claude Code.
  • Select the sketch.ino tab in Wokwi.
  • Press Cmd+A on macOS or Ctrl+A on Windows.
  • Paste the matching Claude Code output.
  • Replace the contents of diagram.json with the Lesson 2 file printed by Claude Code.
  • Select the diagram.json tab in Wokwi.
  • Press Cmd+A on macOS or Ctrl+A on Windows.
  • Paste the matching Claude Code output.
  • Start the Lesson 2 simulation.
  • Press the green play button.
  • Hold the simulated pushbutton.
  • Press and hold the blue button on the circuit.

You should see the external red LED light only while the button is held. Releasing the button should turn the LED off.

  • Save the Lesson 2 Wokwi project with Wokwi's save flow.
  • Use the save control shown by Wokwi.
  • Follow the sign-in screen if Wokwi asks you to authenticate again.

That is your second circuit working. The saved project now gives the lesson a stable destination.

  • Capture the saved Lesson 2 project URL here: your saved Lesson 2 Wokwi URL.
  • Select the full wokwi.com/projects/... URL in the address bar.
  • Copy the selected URL.
  • Replace PASTE_YOUR_LESSON_2_WOKWI_URL_HERE in the prompt below with your saved Lesson 2 Wokwi URL.
  • Send the completed link prompt to Claude Code:
Replace LESSON_2_WOKWI_URL with this saved Lesson 2 URL without changing another lesson:
PASTE_YOUR_LESSON_2_WOKWI_URL_HERE

What does this prompt do?

Claude Code replaces the temporary Lesson 2 marker with the saved project URL. The instruction protects every other lesson from accidental changes.

Claude Code should confirm the Lesson 2 URL was replaced. Lesson 2 should now open the saved button circuit in a new tab.

Build, test and link Lesson 3

The HC-SR04 adds ultrasonic sensing to the learning path. Its pulse duration becomes a distance in centimetres that you can watch change.

  • Add the Lesson 3 circuit files and lesson flow by sending this prompt to Claude Code:
Add Lesson 3, Read a distance sensor, without changing Lessons 1 and 2 or the five-lesson order. Create circuits/03-distance/sketch.ino, circuits/03-distance/diagram.json, and lessons/03-distance.html. Use only wokwi-arduino-uno and wokwi-hc-sr04. Connect VCC to 5V, GND to ground, TRIG to pin 3 and ECHO to pin 2. Use 115200 baud, a trigger pulse of at least 10 microseconds, pulseIn for ECHO, and pulse duration divided by 58 for centimetres. Print once per second. Add the existing Next flow, one quiz, progress memory, and an Open the circuit button. Explain that the learner must click the running sensor and drag its 2 to 400 cm slider. Leave its URL as LESSON_3_WOKWI_URL. Do not use an iframe. Print both circuit files and report changed site files.

What does this prompt do?

  • The prompt adds the HC-SR04 circuit with TRIG on pin 3 and ECHO on pin 2.
  • It prints a centimetre reading once per second at 115200 baud.
  • It adds Lesson 3 to the existing site while preserving Lessons 1 and 2.

Claude Code should print the two files under circuits/03-distance and report the Lesson 3 site changes.

You should see another new Arduino Uno project with the two editable circuit files.

  • Replace the contents of sketch.ino with the Lesson 3 file printed by Claude Code.
  • Select the sketch.ino tab.
  • Select all existing text.
  • Paste the matching Lesson 3 output.
  • Replace the contents of diagram.json with the Lesson 3 file printed by Claude Code.
  • Select the diagram.json tab.
  • Select all existing text.
  • Paste the matching Lesson 3 output.
  • Start the Lesson 3 simulation.
  • Press the green play button.
  • Select the running HC-SR04 sensor.
  • Click the HC-SR04 part in the running circuit.
  • Drag its distance slider through values from 2 to 400 cm.
  • Move the sensor slider while keeping the simulation running.

You should see the number in the Serial Monitor change as the slider moves. A new reading should print once per second.

Distance value not changing?

Keep the simulation running while you click the HC-SR04 and move its slider. The simulated sensor needs that interaction before its distance changes.

Check that the generated diagram connects TRIG to pin 3 and ECHO to pin 2.

Ask for help with the sensor output.

  • Save the Lesson 3 Wokwi project with Wokwi's save flow.
  • Use Wokwi's save control for the running sensor project.

The moving reading confirms the sensor lesson works. Your third saved circuit now turns a simulated distance into visible data.

  • Capture the saved Lesson 3 project URL here: your saved Lesson 3 Wokwi URL.
  • Select the full saved project URL in the address bar.
  • Copy the selected URL.
  • Replace PASTE_YOUR_LESSON_3_WOKWI_URL_HERE in the prompt below with your saved Lesson 3 Wokwi URL.
  • Send the completed link prompt to Claude Code:
Replace LESSON_3_WOKWI_URL with this saved Lesson 3 URL without changing another lesson:
PASTE_YOUR_LESSON_3_WOKWI_URL_HERE

What does this prompt do?

This prompt replaces only the Lesson 3 URL marker. The existing links for Lessons 1 and 2 stay in place.

Claude Code should confirm the saved Lesson 3 link. The local lesson should now open the sensor project in a new tab.

Build, test and link Lesson 4

A servo turns an angle into physical movement. Lesson 4 uses the built-in Servo library to move the simulated arm across its full range.

  • Add the Lesson 4 circuit files and lesson flow by sending this prompt to Claude Code:
Add Lesson 4, Sweep a servo, without changing Lessons 1 to 3 or the five-lesson order. Create circuits/04-servo/sketch.ino, circuits/04-servo/diagram.json, and lessons/04-servo.html. Use only wokwi-arduino-uno and wokwi-servo. Connect PWM to pin 9, V+ to 5V and GND to ground. Use #include <Servo.h>, Servo myservo;, myservo.attach(9); and myservo.write(pos);. Sweep from 0 to 180 degrees in one-degree steps and back, delaying 15 milliseconds per step. Add no third-party library. Add the existing Next flow, one quiz, progress memory, and an Open the circuit button. Leave its URL as LESSON_4_WOKWI_URL. Do not use an iframe. Print both circuit files and report changed site files.

What does this prompt do?

  • The prompt creates a servo circuit with its signal connected to pin 9.
  • It uses the built-in Servo library to sweep from 0 through 180 degrees and back.
  • It makes Lesson 4 available through the same reveal, quiz and progress flow as the earlier lessons.

Claude Code should print the two files under circuits/04-servo and report the Lesson 4 site changes.

You should see a clean Arduino Uno project ready for the generated servo files.

  • Replace the contents of sketch.ino with the Lesson 4 file printed by Claude Code.
  • Select the sketch.ino tab.
  • Select all existing text.
  • Paste the matching Lesson 4 output.
  • Replace the contents of diagram.json with the Lesson 4 file printed by Claude Code.
  • Select the diagram.json tab.
  • Select all existing text.
  • Paste the matching Lesson 4 output.
  • Start the Lesson 4 simulation.
  • Press the green play button.

You should see the servo arm sweep from 0 to 180 degrees and back. The movement should repeat continuously.

  • Save the Lesson 4 Wokwi project with Wokwi's save flow.
  • Use Wokwi's save control for the working servo project.

You now have four working circuits. The servo completes the set of lessons needed before the site can go online.

  • Capture the saved Lesson 4 project URL here: your saved Lesson 4 Wokwi URL.
  • Select the full saved project URL in the address bar.
  • Copy the selected URL.
  • Replace PASTE_YOUR_LESSON_4_WOKWI_URL_HERE in the prompt below with your saved Lesson 4 Wokwi URL.
  • Send the completed link prompt to Claude Code:
Replace LESSON_4_WOKWI_URL with this saved Lesson 4 URL without changing another lesson:
PASTE_YOUR_LESSON_4_WOKWI_URL_HERE

What does this prompt do?

Claude Code places the saved servo URL into Lesson 4. It also leaves the first three circuit links untouched.

Claude Code should confirm that Lesson 4 opens the saved servo circuit. The home view should now make Lessons 1 through 4 available.

✔️ Awesome, I've got everything!

Great. Keep your three saved Wokwi URLs in place and move on to the local site check.

ⓧ I'd like to double check the full code

These are the complete reference files for this point in the project. Your saved Wokwi URL values replace the matching URL markers.

const circuitLinks = {
  1: "PASTE_YOUR_LESSON_1_WOKWI_URL_HERE",
  2: "PASTE_YOUR_LESSON_2_WOKWI_URL_HERE",
  3: "PASTE_YOUR_LESSON_3_WOKWI_URL_HERE",
  4: "PASTE_YOUR_LESSON_4_WOKWI_URL_HERE"
};

const lessons = [
  { id: 1, title: "Blink an LED", steps: ["The LED is the visible output, and the 220 ohm resistor limits current.", "Pin 13 connects through the resistor and LED to ground.", `<pre><code>pinMode(13, OUTPUT);\ndigitalWrite(13, HIGH);\ndelay(1000);\ndigitalWrite(13, LOW);\ndelay(1000);</code></pre>HIGH turns the LED on, LOW turns it off, and each delay lasts one second.`, "Run the circuit and look for a one-second blink."], question: "Which value turns the LED on?", answers: ["LOW", "HIGH", "INPUT"], correct: 1 },
  { id: 2, title: "Push a button", steps: ["The button connects pin 2 to ground while held.", "INPUT_PULLUP makes a press read LOW.", `<pre><code>pinMode(2, INPUT_PULLUP);\nint pressed = digitalRead(2) == LOW;\ndigitalWrite(13, pressed ? HIGH : LOW);</code></pre>The LED follows the inverted button reading.`, "Hold the button and check that the LED lights only during the press."], question: "What does a pressed INPUT_PULLUP button read?", answers: ["LOW", "HIGH", "180"], correct: 0 },
  { id: 3, title: "Read a distance sensor", steps: ["TRIG starts a measurement and ECHO returns a pulse.", "Connect TRIG to 3, ECHO to 2, VCC to 5V, and GND to ground.", `<pre><code>digitalWrite(3, HIGH);\ndelayMicroseconds(10);\ndigitalWrite(3, LOW);\nlong duration = pulseIn(2, HIGH);\nSerial.println(duration / 58);</code></pre>The pulse length divided by 58 gives centimetres.`, "Click the running sensor and drag its 2 to 400 cm slider."], question: "What changes the simulated distance?", answers: ["The LED", "The HC-SR04 slider", "The USB cable"], correct: 1 },
  { id: 4, title: "Sweep a servo", steps: ["The servo receives a target angle through PWM.", "Connect PWM to 9, V+ to 5V, and GND to ground.", `<pre><code>#include &lt;Servo.h&gt;\nServo myservo;\nmyservo.attach(9);\nmyservo.write(pos);</code></pre>The Servo object sends each angle to pin 9.`, "Run the circuit and watch the arm sweep from 0 to 180 degrees and back."], question: "Which call sends an angle?", answers: ["myservo.write(pos)", "Serial.begin(9)", "digitalRead(180)"], correct: 0 }
];

const titles = ["Blink an LED", "Push a button", "Read a distance sensor", "Sweep a servo", "Build a project"];
const app = document.querySelector("#app");
let memoryProgress = new Set();
function loadProgress() { try { return new Set(JSON.parse(localStorage.getItem("learnArduinoProgress") || "[]")); } catch { return memoryProgress; } }
function saveProgress(progress) { memoryProgress = progress; try { localStorage.setItem("learnArduinoProgress", JSON.stringify([...progress])); } catch { /* Same-page memory remains available for this session. */ } }
function validUrl(url) { return typeof url === "string" && url.startsWith("https://wokwi.com/projects/"); }
function renderHome() { const progress = loadProgress(); app.innerHTML = `<h1>Your lessons</h1><div class="grid">${titles.map((title, index) => { const id = index + 1; const available = id <= 4; return `<article class="card ${available ? "" : "locked"}"><h2>${id}. ${title}</h2><p>${progress.has(id) ? "Completed &#10003;" : available ? "Ready" : "Coming next"}</p>${available ? `<a class="button" href="#lesson=${id}">Start lesson</a>` : `<button disabled>Secret Mission</button>`}</article>`; }).join("")}</div>`; app.focus(); }
function renderLesson(id) { const lesson = lessons.find(item => item.id === id); if (!lesson) return renderHome(); let shown = 0; app.innerHTML = `<article class="lesson"><a href="#home">Back to lessons</a><h1>${lesson.id}. ${lesson.title}</h1><div id="steps"></div><div class="actions"><button id="next">Next</button><a id="circuit" class="button" target="_blank" rel="noopener">Open the circuit</a></div><section id="quiz" hidden></section></article>`; const steps = app.querySelector("#steps"); const next = app.querySelector("#next"); const circuit = app.querySelector("#circuit"); const url = circuitLinks[id]; circuit.href = validUrl(url) ? url : "#"; if (!validUrl(url)) circuit.addEventListener("click", event => event.preventDefault()); function showQuiz() { const quiz = app.querySelector("#quiz"); quiz.hidden = false; quiz.innerHTML = `<h2>Quick check</h2><p>${lesson.question}</p><div class="answers">${lesson.answers.map((answer, index) => `<button data-answer="${index}">${answer}</button>`).join("")}</div><p class="feedback" aria-live="polite"></p>`; quiz.querySelectorAll("[data-answer]").forEach(button => button.addEventListener("click", () => { const feedback = quiz.querySelector(".feedback"); if (Number(button.dataset.answer) === lesson.correct) { const progress = loadProgress(); progress.add(id); saveProgress(progress); feedback.textContent = "Correct. Lesson complete."; } else feedback.textContent = "Try again."; })); } function reveal() { steps.insertAdjacentHTML("beforeend", `<section class="step"><h2>Step ${shown + 1}</h2><div>${lesson.steps[shown]}</div></section>`); shown += 1; if (shown === lesson.steps.length) { next.hidden = true; showQuiz(); } } next.addEventListener("click", reveal); reveal(); app.focus(); }
function route() { const match = location.hash.match(/^#lesson=(\d+)$/); if (match) renderLesson(Number(match[1])); else renderHome(); }
addEventListener("hashchange", route);
route();
const int buttonPin = 2;
const int ledPin = 13;
void setup() {
  pinMode(buttonPin, INPUT_PULLUP);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  digitalWrite(ledPin, digitalRead(buttonPin) == LOW ? HIGH : LOW);
}
{"version":1,"author":"Learn Arduino","editor":"wokwi","parts":[{"type":"wokwi-arduino-uno","id":"uno","top":0,"left":0,"attrs":{}},{"type":"wokwi-pushbutton","id":"btn1","top":160,"left":270,"attrs":{"color":"blue"}},{"type":"wokwi-led","id":"led1","top":-90,"left":290,"attrs":{"color":"red"}},{"type":"wokwi-resistor","id":"r1","top":10,"left":235,"attrs":{"value":"220"}}],"connections":[["uno:2","btn1:1.l","blue",[]],["btn1:2.l","uno:GND.2","black",[]],["uno:13","r1:1","green",[]],["r1:2","led1:A","green",[]],["led1:C","uno:GND.1","black",[]]]}
const int trigPin = 3;
const int echoPin = 2;
void setup() {
  Serial.begin(115200);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}
void loop() {
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  long duration = pulseIn(echoPin, HIGH);
  Serial.print("Distance in CM: ");
  Serial.println(duration / 58);
  delay(1000);
}
{"version":1,"author":"Learn Arduino","editor":"wokwi","parts":[{"type":"wokwi-arduino-uno","id":"uno","top":0,"left":0,"attrs":{}},{"type":"wokwi-hc-sr04","id":"sensor1","top":-90,"left":300,"attrs":{"distance":"400"}}],"connections":[["sensor1:VCC","uno:5V","red",[]],["sensor1:GND","uno:GND.1","black",[]],["sensor1:TRIG","uno:3","green",[]],["sensor1:ECHO","uno:2","blue",[]]]}
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup() { myservo.attach(9); }
void loop() {
  for (pos = 0; pos <= 180; pos += 1) { myservo.write(pos); delay(15); }
  for (pos = 180; pos >= 0; pos -= 1) { myservo.write(pos); delay(15); }
}
{"version":1,"author":"Learn Arduino","editor":"wokwi","parts":[{"type":"wokwi-arduino-uno","id":"uno","top":0,"left":0,"attrs":{}},{"type":"wokwi-servo","id":"servo1","top":-70,"left":310,"attrs":{"horn":"single"}}],"connections":[["servo1:PWM","uno:9","orange",[]],["servo1:V+","uno:5V","red",[]],["servo1:GND","uno:GND.1","black",[]]]}
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="refresh" content="0;url=../index.html#lesson=2"><title>Push a button</title></head><body><a href="../index.html#lesson=2">Continue to Lesson 2</a><script>location.replace("../index.html#lesson=2");</script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="refresh" content="0;url=../index.html#lesson=3"><title>Read a distance sensor</title></head><body><a href="../index.html#lesson=3">Continue to Lesson 3</a><script>location.replace("../index.html#lesson=3");</script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="refresh" content="0;url=../index.html#lesson=4"><title>Sweep a servo</title></head><body><a href="../index.html#lesson=4">Continue to Lesson 4</a><script>location.replace("../index.html#lesson=4");</script></body></html>

Before you check the local site, which lessons do you expect to be available on the home view?

  • Load the updated local lessons site by double-clicking index.html in the learn-arduino folder.

You should see Lessons 1 through 4 available. Lesson 5 should remain locked as the Secret Mission.

  • Verify Lessons 1 through 4 reveal their teaching steps through Next and finish with a quiz.
  • Start each available lesson from the home view.
  • Select Next until its quiz appears.
  • Choose the correct quiz answer.

Each completed lesson should show a completion tick on the home view.

  • Verify every available lesson opens its matching saved circuit through Open the circuit.
  • Select Open the circuit in each available lesson.
  • Return to the local lessons site after each saved Wokwi project opens.

You should see each matching saved Wokwi project open in a new tab. The local lessons site now has four complete lesson flows with working circuit links.

Four lessons now teach four different circuit behaviours from the same local site. Next up, you will publish those plain files as a public lessons site.

Put Your Site Online

Four saved Wokwi circuits now open from your local lessons site. Next, Netlify Drop will publish those plain files without a repository or build process.

Your local lessons site needs a public address before someone else can open it on a phone.

In this step, get ready to:
  • Audit the learn-arduino folder for deployment readiness.
  • Deploy the learn-arduino folder with Netlify Drop.
  • Verify the public lessons site on a phone.
Check deployment readiness

The deployed site must keep the same relative paths that work on your computer. A final audit also checks that no framework or build output has slipped into the folder.

  • Ask Claude Code to audit the existing learn-arduino folder by pasting this prompt:
Audit learn-arduino for deployment. Do not add a framework, package manager, build step, server, or iframe. Check that index.html opens by double-clicking, the home view lists exactly five lessons in order, Lessons 1 to 4 use Next and end with a remembered quiz, every available lesson has a saved https://wokwi.com/projects/ link, every Open the circuit button opens a new tab, Lesson 5 remains the Secret Mission, and all paths are relative. Fix only failed checks. Print READY TO DEPLOY and list every file that belongs in the dropped folder.

What does this prompt do?

  • The audit checks that index.html still opens without a server or build step.
  • It confirms that Lessons 1 through 4 keep their quizzes, progress memory and saved circuit links.
  • It also checks that every deployed path stays relative to the learn-arduino folder.

You should see READY TO DEPLOY followed by the files in learn-arduino. Claude Code should create no build folder.

Deploy with Netlify Drop

Netlify Drop publishes the existing static files directly from their folder. Your local files remain unchanged because Netlify copies them into the Netlify lessons project.

  • Complete the account form shown on the page for a new or existing account.

You should reach Netlify while signed in to your account.

  • Deploy the entire learn-arduino folder through Netlify Drop.
  • Press Cmd+Space on macOS or the Windows key on Windows to open system search.
  • Type Finder on macOS or File Explorer on Windows.
  • Press Enter to open the file browser.
  • Select your Desktop location.
  • Find the learn-arduino folder.
  • Drag the learn-arduino folder onto the drop zone.

You should see the Netlify lessons project with an address ending in netlify.app.

No Deployed URL?

Make sure you dropped the entire learn-arduino folder. Netlify needs index.html at the top level of the dropped folder.

If the deployment still fails, ask for help diagnosing the Netlify Drop result.

Test the public lessons site

A deployed project can still require a Netlify login when production visibility is private. Teams created on or after July 28, 2026 default new projects to private.

  • Set production visibility for the Netlify lessons project to public.
  • Select Project configuration in the Netlify lessons project.
  • Select General.
  • Select Visitor access.
  • Select Project visibility.
  • Set production visibility to public.
  • Save the visibility change.

Production visibility should now show as public.

Before you load the address on your phone, do you expect the site to open without a Netlify sign-in?

  • Visit the deployed netlify.app URL on a phone.
  • Enter the URL shown by Netlify into the phone's address bar.

You should see five lessons in order without a Netlify login. Lessons 1 through 4 should be available while Lesson 5 remains the Secret Mission.

  • Complete Lesson 1 on the deployed site with Next and the correct quiz answer HIGH.
  • Use the lesson card for Blink an LED to enter Lesson 1.
  • Select Next until the quiz appears.
  • Choose HIGH as the quiz answer.
  • Use the page's return link to go back to the home view.

You should see a completion tick for Lesson 1. This proves browser-storage progress memory works on the deployed site.

  • Open Lesson 1's saved circuit from the public lessons site.
  • Enter Lesson 1 again from the home view.
  • Select Open the circuit.

You should see the saved blinking circuit in a new Wokwi tab.

Your lessons site is now shareable from a phone. Its four completed lessons keep their quizzes, progress and saved circuit links online.

Secret mission

Build the Traffic-Light Project

Combine the distance sensor with three LEDs to build a traffic light that reacts to nearby objects. Then publish Lesson 5 so every lesson and circuit works from your public site.

Clean Up Your Resources

Clean Up Your Resources

Choose whether to keep your resources available, pause the recurring subscription cost, or delete everything. Your Wokwi Community projects and Netlify lessons project are free for this project. Claude Pro can renew at $20 per month plus applicable tax.

Cost warning

Claude Pro costs $20 if billed monthly. It may renew each month until you cancel the subscription.

Choose Pause or Delete if you no longer need Claude Pro after this project.

Resources you used:

  • Five public Wokwi projects for Blink an LED, Push a button, Read a distance sensor, Sweep a servo, and Build a project.
  • The public Netlify lessons project that hosts the complete lessons site at its netlify.app URL.
  • The local learn-arduino folder on your Desktop with the lessons site and five circuit folders.
  • The Claude Pro subscription used to access Claude Code.

Keep everything running

No action is needed. Choose this if you want to keep demonstrating the lessons site or continue improving it.

  • Keep the five Wokwi projects public so their saved circuit URLs continue working.
  • Keep the Netlify lessons project public so the lessons site remains available.
  • Keep the learn-arduino folder on your Desktop so you can update the site later.
  • Leave Claude Pro active if you plan to keep using Claude Code. The subscription may renew at $20 per month plus applicable tax.

Pause - I'll come back to this later

Stop the recurring subscription cost while preserving the public projects and local files. You can return to the same lessons site later.

  • Cancel Claude Pro before its next renewal from your Claude account's plan-management page.
  • Keep the five Wokwi projects so their saved circuit URLs remain available.
  • Keep the Netlify lessons project so the public lessons site remains online.
  • Keep the learn-arduino folder on your Desktop for future updates.

Delete - I don't want to use this again

Deleting these resources permanently breaks the public lessons site and its five circuit links. This is a big cleanup, so choose it only when you no longer need the project.

Delete the Wokwi projects
  • Return to your Wokwi projects dashboard.
  • Delete the Lesson 1 Wokwi project with the permanent deletion control in that project's settings.
  • Delete the Lesson 2 Wokwi project with the permanent deletion control in that project's settings.
  • Delete the Lesson 3 Wokwi project with the permanent deletion control in that project's settings.
  • Delete the Lesson 4 Wokwi project with the permanent deletion control in that project's settings.
  • Delete the Lesson 5 Wokwi project with the permanent deletion control in that project's settings.

The five saved circuit URLs stop working after their projects are deleted.

Delete the Netlify lessons project
  • Return to the Netlify lessons project from your Netlify account.
  • Select Project configuration for the Netlify lessons project.
  • Find the area in the project configuration that permanently removes the project.
  • Use the permanent deletion control in that area to delete the Netlify lessons project.

The public netlify.app URL stops loading after the Netlify lessons project is deleted.

Cancel Claude Pro
  • Cancel Claude Pro before its next renewal from your Claude account's plan-management page.

Canceling Claude Pro stops future monthly renewals for the subscription.

Delete the Local Folder

macOS

  • Close the Terminal window that is running Claude Code.
  • Press Cmd+Space to open macOS search.
  • Type Terminal.
  • Press Enter to open a new Terminal window.
  • Permanently remove the learn-arduino folder from your Desktop by running this command:
rm -rf ~/Desktop/learn-arduino
What does this command do?

This command permanently removes the complete learn-arduino folder from your Desktop. It removes every lesson file and circuit file inside that folder.

You should no longer see learn-arduino on your Desktop.

Windows

  • Close the PowerShell window that is running Claude Code.
  • Press the Windows key to open Windows search.
  • Type PowerShell.
  • Press Enter to open a new PowerShell window.
  • Permanently remove the learn-arduino folder from your Desktop by running this command:
Remove-Item -Recurse -Force "$HOME\Desktop\learn-arduino"
What does this command do?

This command permanently removes the complete learn-arduino folder from your Desktop. It removes every lesson file and circuit file inside that folder.

You should no longer see learn-arduino on your Desktop.

Nice Work!

Nice Work!

You did it! Your five-lesson site is live at a public netlify.app URL with all five saved circuits ready to demonstrate.

You've learned how to:

  • Use Claude Code with structured prompts to create the five-lesson plan, every circuit file, and the complete lessons site.
  • Run saved Arduino Uno simulations in Wokwi that demonstrate digital output, digital input, ultrasonic sensing, and servo control.
  • Build a plain-file site with progressive disclosure, quizzes, circuit links, and browser storage. Publish that site through Netlify Drop at a public URL that works on a phone.
  • Secret Mission: Combine an HC-SR04 distance sensor with three LEDs to build a traffic light that shows red below 20 cm, yellow from 20 through 50 cm, and green above 50 cm.

Ready to quiz yourself?