PPolySim OS

Hardware Bridge

Bridge simulation and reality: connect a real board over USB and stream live sensor data into the browser — then push a control value back. No install, no toolbox.

Hardware BridgeLive

Controls

Plug a real Arduino/sensor/motor into a USB port and stream data straight into the browser — no install. Or run the built-in demo device.

Reference Arduino sketch
// PolySim Hardware Bridge — reference Arduino sketch.
// Streams a sensor reading (and echoes the received control value) as CSV, 50 Hz.
int ctrl = 0;                 // control value received from PolySim (0..255)
void setup() { Serial.begin(115200); }
void loop() {
  if (Serial.available()) ctrl = Serial.parseInt();   // read control from the browser
  int sensor = analogRead(A0);                         // your real sensor
  Serial.print(sensor); Serial.print(","); Serial.println(ctrl);
  delay(20);
}

Data Inspector

StatusNot connected
Modeidle
Sample rate0 /s
Channels0
Last values
Reading this result: WebSerial is available. Click Connect and pick your board — or start the demo device to try it without hardware. Your board just needs to print newline-delimited numbers (see the reference sketch).

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

The Hardware Bridge uses the browser's WebSerial API to talk directly to a microcontroller (Arduino, ESP32, etc.) or any device that prints newline-delimited numbers. Read live sensor data as an oscilloscope-style plot, and send a control value back to the device — the same read-compute-actuate loop you'd use to close a real control system in software you already prototyped in PolySim. A built-in demo device (a simulated first-order plant that responds to your control output) lets you try the whole flow with no hardware. Real device access needs a Chromium browser (Chrome or Edge) on desktop.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

Related live simulations

Frequently asked questions

Is this Arduino WebSerial live data in the browser tool really free?
Yes. Hardware Bridge runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.