IR Lab

Disconnected
🤖 Robot App 🗂️ Catalog 🧪 Labs 📚 Lesson 🏠 Hub
Mock mode active — sliders below simulate IR sensors (no robot needed).

🧪 Mock IR Inputs

📈 Live Readings

Real-time IR sensor values polled at 5 Hz. Subscribe to IR:<L>,<R> notifications.
Left Sensor
0
0
Right Sensor
0
0
Last 50 samples
5 Hz

🎚️ Threshold Tuner

Set the line/no-line cut-off. Verdict updates live for each sensor.
Edge band ± Saved!
Left Sensor
0
FLOOR
Right Sensor
0
FLOOR

🤖 Auto Line Follow

Bidirectional steering: both → forward, one only → soft turn, neither → stop.
IDLE
L
0
R
0
Decision
·
Decision logic: L<thr & R<thr → FWD · L<thr only → soft RIGHT · R<thr only → soft LEFT · neither → STOP.

🧪 Calibration Wizard

Three-step capture to compute a clean threshold midpoint.

1Place both sensors over WHITE floor.

L
R

2Place both sensors over BLACK line.

L
R

3Review midpoint & save.

Computed threshold (midpoint)
Saved!

🎛️ Decision Sandbox

Map each (L,R) state to a motor policy. Live cell highlights current sensor state.
R = FLOOR
R = LINE
L = FLOOR
FLOOR / FLOOR
FLOOR / LINE
L = LINE
LINE / FLOOR
LINE / LINE
IDLE