Skip to content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Embedded Systems StudioIoT Programming and ApplicationsExperimentsWorkspaces
ENGINEERING WORKSPACE
Home/Engineering Workspaces/Digital Twin Studio
PSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Four interactive system models
Supporting engineering workspace

Digital Twin & Simulation Studio

SYSTEM SIMULATION LAB

Smart greenhouse

Normal operation

Run an accelerated, deterministic teaching model. Every step updates control and physical-state equations, then samples telemetry and independently models broker delivery and storage. No real device commands, electrical measurements or network packets are sent.

Isometric system viewSTEP 0000
Electronics lab ↗

Experiment controls

Network operations

Ready
Modeled telemetry only

Node-RED reception is independent of InfluxDB storage. Model broker choices label the route only; switching does not connect to the real broker. In-flight packets retain their original sample profile.

Measurement history · separate scales

Event journal

Last valid sample


Model assumptions & engineering challenge

Invalid sensor samples use a simplified all-outputs-off fail-safe; actuator faults force modeled outputs off. Manual controls override automatic rules except these fault states and parking capacity. The simplified equations are accelerated, not calibrated to a real building, farm or industrial plant. For a comparative experiment, reset, choose the same scenario and sample interval, advance the same number of steps, then introduce a fault and compare the logs. The last 600 steps are retained for export.

Advanced models, scientific investigations and research tools
Digital Engineering Research Studio · V22.4

Multi-asset twins, Kalman estimation, dataset calibration and matched-seed experiments.

Open research studio →
Loading live engineering instrument…

Live investigation · step-by-step

  1. Run the online gateway configuration for 40 simulated seconds. Record physical temperature, biased sensor reading, received report and fan state.
  2. Switch the link offline for 30 seconds without resetting. Observe the queued telemetry, report age and stale-command policy.
  3. Restore connectivity, then switch to edge control and vary the ambient heat load or sensor bias. Compare actuator behavior and report age.
  4. Reset for a controlled second run and change only the controller placement. Export histories and compare generated, received, queued and dropped records.

Evidence: retain your prediction, configuration, observations and exported event history; distinguish calculated teaching-model results from physical measurements.

V18.1 / NETWORKED VIRTUAL LABORATORY

Connected device workbench

Build a virtual ESP32 fleet, inspect its Raspberry Pi gateway and compare sensing and control under normal operation and network faults.

Offline · deterministic model

Teaching model only. The plant equations are not calibrated physical models; the MQTT-style FIFO/retry abstraction does not implement MQTT wire traffic or QoS handshakes. No real hardware or broker is contacted.

01 · Configure experiment

Configuration changes require a reset. Choose a preset, then edit the parameters and apply.

02 / LIVE SYSTEM

Virtual network topology

Link online

Ready. Each step represents one model second.

Virtual device state

Solid line: physical proxy temperature. Dashed line: last delivered sensor value, held until a newer sample arrives. The latest 120 model seconds are plotted.

03 / NETWORK ANALYSIS

Packet delivery, delay and backlog

Same horizon, device configuration and control placement; baseline removes loss, jitter, outage and sensor bias and uses a 1 s link delay. Capacity and service rate are unchanged.

Queue occupancy (solid) and in-flight messages (dashed) over the latest 120 seconds. PDR = unique received / generated, including pending messages in the denominator. P95 uses nearest rank among received packets.

Most recent packet events (up to 12)
Model timeEventIDDetail

04 / EXPERIMENTAL EVIDENCE

Export reproducible traces

JSON includes configuration, all generated message records, all per-node time-series observations, metrics, recent events and same-horizon baseline. CSVs contain one row per message or per device per second. All outputs are labelled as model-generated; no real measurements are implied.

05 / GUIDED INVESTIGATION

Four experimental challenges

T01 · Baseline and reproducibility

Use defaults, run 120 seconds, export; reset and repeat. Compare the complete packet traces and P95. Explain pending messages separately from terminal drops.

T02 · Capacity and recovery

Use 8 nodes, 1 s period, service 2/s, capacity 8, outage 20 s. Compare with capacity 64 using the same seed and horizon. Explain why increasing capacity cannot fix sustained overload.

T03 · Edge versus gateway control

Run greenhouse twice, with identical fault configuration and edge/gateway control placement. Compare time above threshold and fan activity. Identify the idealized command path and stale-output policy.

T04 · Sensor fault isolation

Set fault node 1, start 20 s, bias +10°C. Compare model state to held telemetry on nodes 1 and 2; check when the biased sample was actually delivered. Describe why a sensor bias can cause poor control even with high PDR.

Related laboratories and guidance

Run the model to receive contextual guidance.

Model contract & limitations

At each integer second, the plant advances using previous actuator states, stale gateway control expires, due packet attempts are resolved, devices sample, then queued messages are dispatched. Temperature follows T′ = clamp(T + 0.035(A−T) + h·load/100 − 0.48·fan, 0, 100). Greenhouse soil moisture follows a bounded drying/irrigation balance. Fan uses a 2°C hysteresis band; greenhouse pump turns on at ≤35% and off at ≥45%. Room humidity and industrial vibration use simplified first-order models. Sensors may report a biased temperature while the plant itself remains unbiased.

Gateway feedback applies only newer received samples within the configured age limit; command transport is idealized and immediate on receipt. Outputs turn off when the accepted sample is older than the stale limit (teaching policy only, not a universal safety recommendation). Edge feedback runs at each sampling instant. Loss is seeded per message and attempt. Retry limit counts additional attempts; requeued messages compete for FIFO capacity. The queue models messages already accepted at the gateway; ESP32-to-Pi local transport is idealized. 1–8 devices, 1–1800 seconds per run. No duplicate deliveries, encryption, MQTT acknowledgements, radio propagation, or electrical emulation.

WOKWI / WSL INTEGRATION

Connect to actual MQTT telemetry

Run the supplied ESP32 greenhouse firmware and inspect received messages, live sensor readings and per-device history. No browser-generated readings are inserted into the live view.

Open Live Telemetry Studio →

Foundational greenhouse exercise

This educational model combines P40 control, P43 telemetry and X13 visualization. It uses simplified dynamics, not a calibrated physical twin. The fan/pump thresholds are exercise design assumptions, not claims about the packaged firmware.

ESP32 / PiGreenhouse control and irrigation model
Temperature

Humidity

Soil moisture

Orange: temperature (0–50 °C); blue: humidity (0–100%); green: soil (0–100%).

Fan switches ON at ≥30 °C, OFF at ≤28 °C; pump ON at ≤35%, OFF at ≥45%. Hysteresis reduces oscillation. No MQTT messages are sent by this browser model.

Implementation links: P40 gateway control · P43 MQTT ingestion · X13 Node-RED.

Integrated IoT System Studio

Follow the complete telemetry pipeline, compare live and stored evidence, and investigate controlled failures.

Open integrated system workbench →