Hardware Lab

Talk to real hardware from your browser — Arduino, ESP32, micro:bit, GPS modules, MIDI keyboards, gamepads and USB devices. Serial monitor, live plotter and CSV logger with nothing to install.

Tool Electronics Updated Oct 16, 2026
How to Use
  1. Pick how your device connects: USB serial (Arduino, ESP32, Pico, GPS, CNC), Bluetooth LE (micro:bit, heart-rate straps), MIDI, a gamepad, or raw USB/HID.
  2. For serial, set the baud rate to match the Serial.begin() value in your sketch (9600 and 115200 cover most boards), press Connect and choose your device in the browser prompt.
  3. The Console shows everything the device sends. If it prints numbers, the Plotter graphs them automatically.
  4. Numbers are picked up from plain CSV ("1.2,3.4"), labelled pairs ("temp:21.5, humidity:40") or GPS NMEA sentences.
  5. Press Record to capture samples, then export them as CSV and open the file in the Data Regression Tool or the Probability & Statistics Lab.
  6. No hardware to hand? Choose Simulator and pick a synthetic instrument; the console, plotter and CSV work the same way.
Not connected.
0 samples

Worked Example

An Arduino sketch runs Serial.begin(9600) and prints temp:21.5, humidity:40 once a second. Choose USB Serial, set 9600 baud, press Connect and pick the board. The console shows each line, and the plotter draws two named series, temp and humidity. Press Record for a minute, then Export CSV: the file has the columns time_iso, elapsed_s, temp, humidity, one row per reading.

Variation, a GPS module: the sentence $GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47 is decoded to latitude 48.1173°, longitude 11.5167°, 8 satellites and an altitude of 545.4 m, each plotted as its own series.

The common mistake: a baud-rate mismatch. If the sketch uses Serial.begin(115200) but the Hardware Lab is set to 9600, the console fills with garbled characters and nothing is plotted. Set both to the same rate.

Show Work: How a Line Becomes Data

Every line the device sends goes through the same checks, in this order. The first one that matches decides how it is graphed.

1. GPS sentence? A line starting with $ that is a GGA or RMC sentence is decoded. Positions arrive as degrees and minutes run together (ddmm.mmmm), so 4807.038,N becomes 48 + 7.038 ÷ 60 = 48.1173°, and 01131.000,E becomes 11 + 31.000 ÷ 60 = 11.5167°. South and west are made negative. GGA also gives the satellite count and altitude in metres; RMC gives speed in knots and course in degrees.

2. Labelled values? Pairs written as name:value or name=value become series with those names: temp:21.5, humidity:40 gives a temp series at 21.5 and a humidity series at 40.

3. Plain numbers? If every item on the line is a number, separated by commas, semicolons, tabs or spaces, they become channels: 1.2,3.4,5.6 gives ch1 = 1.2, ch2 = 3.4 and ch3 = 5.6. A single number becomes a series called value.

4. Anything else (for example Booting..., or 1,2,3 V with a unit at the end) is shown in the console but not graphed.

5. Recording: while Record is on, each parsed line becomes one row. The CSV has a time_iso timestamp, elapsed_s = seconds since the first recorded row (to the millisecond), and one column per series.

What the browser can reach

USB Serial
Arduino, ESP32, Pico, GPS, GRBL
Bluetooth LE
micro:bit, heart rate, sensors
MIDI
Notes, CC, pitch bend
Install needed
None for most boards; no admin rights
Browsers
Chrome, Edge, Opera; Firefox 151+ for serial and MIDI
Your data
Stays in the tab

Formulas

NMEA position
degrees = dd + mm.mmmm / 60
4807.038 → 48.1173°; S and W are negative.
GPS speed
km/h = knots × 1.852
mph = knots × 1.1508.
Serial throughput
bytes/s = baud / 10
8N1 framing: 8 data bits plus a start and a stop bit. 115200 baud ≈ 11,520 bytes/s.
Time per character
t = 10 / baud
1.04 ms at 9600 baud.
Arduino ADC to volts
V = reading × 5 / 1023
10-bit ADC on a 5 V board; 512 → 2.50 V.
Elapsed time (CSV)
elapsed_s = (t − tfirst) / 1000
t in milliseconds.

Background: Hardware in the Browser

The serial link an Arduino uses over USB goes back to RS-232, an EIA standard first published in 1960 for connecting terminals and modems. Arduino boards, first made in Ivrea, Italy in 2005, kept that simple text link as the way a sketch talks to a computer, which is why Serial.println() is still the standard way to see what a board is doing.

Browsers gained direct device access much later. Chrome added Web MIDI in version 43 (May 2015), WebUSB in version 61 (September 2017), and Web Serial and WebHID in version 89 (March 2021). Firefox added Web MIDI in version 108 (December 2022) and Web Serial in version 151 (May 2026), both behind a site-permission add-on that Firefox asks you to install. Mozilla's published position on WebUSB, WebHID and Web Bluetooth is negative, and Safari supports none of these interfaces.

About the Hardware Lab

Almost every tool on this site works on numbers you type in. This one works on numbers a physical device sends you. Chrome, Edge and other Chromium browsers can open a USB serial port, pair with a Bluetooth LE sensor, listen to a MIDI keyboard or read a USB device’s descriptors directly, with no installer and no administrator rights; recent Firefox versions can open serial ports and MIDI devices too. That matters on school and work machines, which are usually locked down, and on managed Chromebooks, where the Arduino IDE usually cannot be installed. A browser tab does not have that problem.

How it works

Choose how your device connects, press Connect, and pick it from the browser’s own device prompt — the page never sees your hardware until you select it. Everything the device sends appears in the console, and any numbers in that stream are graphed automatically, whether they arrive as bare CSV, labelled pairs like temp:21.5, or GPS NMEA sentences. Record a run and export it as CSV, then carry it into the regression and statistics tools to finish the analysis. If you have no hardware in front of you, the built-in simulator produces realistic instruments so you can try the whole workflow anyway.

Want the deeper story? The Knowledge Base explains the ideas behind the tools in more detail.

Frequently Asked Questions

Do I need to install drivers or an IDE?

No IDE, and usually no drivers. The page uses the browser's own device interfaces, so it works on machines where you cannot install software. Most boards that appear as a serial port work: Arduino Uno, Nano, Mega and Leonardo, ESP32 and ESP8266, Raspberry Pi Pico, STM32 boards, GPS modules, GRBL controllers and Marlin 3D printers. Boards with a CH340 or CP2102 USB-serial chip may need that chip's driver installed in the operating system first.

Which browsers does it work in?

Web Serial works in Chrome, Edge and Opera (since Chrome 89 in 2021) and in desktop Firefox from version 151 (May 2026), which asks you to install a small site-permission add-on the first time. Web MIDI works in Chromium browsers and in Firefox 108 or later. WebUSB, WebHID and Web Bluetooth are Chromium-only: Mozilla rates all three as negative, because USB and Bluetooth devices were designed to talk only to trusted software and the set of devices you own can identify you. Safari supports none of them. Gamepads work in every modern browser, and the Simulator works everywhere.

Can a website read my devices without me knowing?

No. Every connection needs you to press Connect and pick one device in a prompt drawn by the browser, which this page cannot see or bypass. The permission covers only that device, it works only over an encrypted connection, and you can revoke it from the padlock icon in the address bar. The data stays in your browser tab; nothing is uploaded.

How does the plotter know what to graph?

It looks for numbers in each line. 1.2,3.4,5.6 becomes three channels, temp:21.5, humidity:40 becomes two named series, and a single number becomes one series. GPS NMEA sentences are decoded into latitude, longitude, altitude, speed, course and satellite count. Lines with no numbers just appear in the console.

Why can I not open the port, or why is the text garbled?

If the port will not open, something else has it: the Arduino IDE serial monitor, PlatformIO, a terminal program or another tab. Close it, or unplug and replug the board. If text appears but is garbled, the baud rate does not match the sketch's Serial.begin() value.

Common Use Cases

Arduino on a Locked-Down Laptop

Managed school and work machines often block installing the Arduino IDE. This gives students a serial monitor and plotter with nothing to install.

Live Sensor Graphs

Watch temperature, light, distance or accelerometer readings plot in real time, straight from a print statement in your sketch.

Data for a Lab Report

Record a run, export the CSV, fit a curve in the Data Regression Tool and analyse it in the Statistics Lab.

micro:bit Over Bluetooth

Read accelerometer and temperature data from a BBC micro:bit wirelessly, or send it text over the Nordic UART service.

Last updated: