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.
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
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
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.