Blink to Browser

Status: Complete course. The sketches are compile-tested; nothing has been run on real hardware yet.

From blinking an LED to a live web dashboard served by an ESP32.

A beginner course that teaches the two halves of a connected gadget together: the small program on the microcontroller, and the web page you use to see and control it. You start with how a web page works, learn to make the ESP32 read sensors and join Wi-Fi, and finish with a password-protected dashboard that runs on the board itself and can be updated over the air.

Start learning Original course (placement test) Back to the Learning Database

Who It Is For

People starting from zero who want to build something real: a gadget that measures or controls something, with a page they can open on a phone. No earlier programming or electronics knowledge is assumed. A placement test of 32 questions suggests which week to start in, so someone who already knows some HTML can skip ahead.

How It Is Organised

Each week has five lessons, from 35 to 75 minutes each and mostly 40 to 60. Days one to four teach one idea each, and day five is a build that puts the week together. The course has live code editors, a parts list for all twelve weeks, and progress saved in your own browser.

The Lessons

Open a week to see its five lessons and their length.

Week 1: HTML: what a web page is 220 min
  1. What a web page really is 35 min
  2. Text: headings, paragraphs and lists 40 min
  3. Links, images and file paths 40 min
  4. The page skeleton and semantic layout 45 min
  5. Build: your “About my lab” page 60 min
Week 2: CSS: making it look right 225 min
  1. CSS basics: selectors and properties 40 min
  2. The box model 40 min
  3. Layout with flexbox 45 min
  4. Responsive design and CSS variables 40 min
  5. Build: style your lab page as a dashboard 60 min
Week 3: First ESP32 sketches 235 min
  1. Microcontrollers and your first upload 45 min
  2. Anatomy of a sketch 40 min
  3. Just enough electricity 45 min
  4. Loops, functions and non-blocking timing 45 min
  5. Build: a traffic light 60 min
Week 4: Serial, buttons and analog 230 min
  1. Talking to your computer with Serial 40 min
  2. Buttons and pull-up resistors 40 min
  3. Clean presses: edges and debouncing 45 min
  4. Analog in, PWM out 45 min
  5. Build: a dimmer lamp with a status report 60 min
Week 5: JavaScript basics 225 min
  1. Your first JavaScript 40 min
  2. Operators and decisions 40 min
  3. Functions 40 min
  4. Arrays, objects and loops 45 min
  5. Build: a readings analyzer 60 min
Week 6: The DOM, events and fetch 235 min
  1. The DOM: changing the page from code 40 min
  2. Events: buttons, sliders and forms 45 min
  3. Building elements from data 40 min
  4. JSON, fetch and async code 50 min
  5. Build: a live dashboard (simulated) 60 min
Week 7: Sensors and clean data 230 min
  1. Libraries: standing on other people's code 35 min
  2. The I²C bus 45 min
  3. Reading temperature, humidity and pressure 45 min
  4. Clean data: structs, smoothing and JSON 45 min
  5. Build: an environment logger 60 min
Week 8: Wi-Fi and HTTP 220 min
  1. How your devices find each other 35 min
  2. Connecting to Wi-Fi 45 min
  3. A name and a clock 40 min
  4. Being an HTTP client 40 min
  5. Build: a Wi-Fi weather node 60 min
Week 9: The ESP32 as a web server 240 min
  1. Hello from your ESP32 45 min
  2. Routes that control hardware 45 min
  3. Dynamic pages 40 min
  4. A JSON API and a JavaScript front end 50 min
  5. Build: a phone remote for your traffic light 60 min
Week 10: A live dashboard 245 min
  1. A readings API 40 min
  2. The live dashboard, for real 45 min
  3. History and a chart 50 min
  4. Push updates with WebSockets 50 min
  5. Build: the live weather dashboard 60 min
Week 11: Settings, files and Wi-Fi setup 240 min
  1. Sliders that drive hardware 45 min
  2. Settings that survive a reboot 45 min
  3. Real files with LittleFS 50 min
  4. Wi-Fi setup without hard-coding 40 min
  5. Build: a smart fan controller 60 min
Week 12: Capstone: security, updates, reliability 240 min
  1. Plan your capstone 40 min
  2. Lock the door: passwords 40 min
  3. Over-the-air updates 40 min
  4. Make it reliable 45 min
  5. Build: ship your capstone 75 min

What You Need

How Well It Has Been Checked

In a compile test on 30 October 2026, the sketches were built for an ESP32 Dev Module with the Arduino command-line tool and the Espressif ESP32 package, version 3.3.2. All 21 complete lesson sketches and 10 combined sketches built with no warnings in the sketch code. The largest, the week 11 and 12 capstone, uses about 89% of the board's program memory and still leaves room for over-the-air updates. A problem with the week 10 WebSocket code was found in that test and fixed in the lesson.

The course folder now holds more sketch files than that test covered, so lessons edited after 30 October may not have been compiled again.

What was not tested: nothing has been run on a real ESP32 board, and the Arduino Uno versions of the lessons were not compiled. Wiring, sensor readings and Wi-Fi behaviour are therefore unverified. If something does not work on your board, that is useful to know, and we would like to hear it on the Comments page.

Using the Course

Start learning Original course

The lessons and sketches have been checked by compiling, not by running them on hardware, and may contain mistakes. Details may change.