Skip to content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Distributed Ledger StudioBlockchain for IoTExperimentsWorkspaces
ENGINEERING WORKSPACE
Home/Engineering Workspaces/Visual Programming
PSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
V18.2 · ESP32 and Raspberry Pi programming
IoT Programming and Applications

Visual Programming Environment

V19.0 · Contextual AI workspace

Ask an AI about this workspace

VISUAL182 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
Visual Programming Environment

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

V18.3 · Unified learning experienceModern concept cards, consistent workbenches and code assessment
V18.2 · VISUAL PROGRAMMING ENVIRONMENT

From blocks to working source

Build a repeatable control program, inspect the generated Arduino C++ or Python, and step through a virtual ADC, GPIO and PWM system. Export source to your real hardware workflow.

Offline · bounded simulation

01 · Design your program

The ordered blocks repeat once per loop. A read must precede any sample-dependent block; include a wait. Edit values, move blocks with arrow buttons, or delete them.

02 · Virtual hardware

Analog input
50%
Digital GPIO
OFF
PWM output
0%
One value per Read; hold last value when exhausted. Overrides knob.
Replay a digital twin sensor trace

Import a V18.1 evidence JSON. Each Read uses the next history observation, rounded/clamped to 0–100. Temperature is mapped numerically from °C; this is an input mapping, not voltage calibration. No control is sent back to the twin.

Manual input active.

Open networked digital twin →
Virtual time0 ms
Completed blocks0
Last sample—

Ready. The simulation executes blocks, not generated source.

Serial monitor

No output yet.

Execution trace (last 20 blocks)

CycleBlockTime (ms)SampleLEDPWM

03 · Generated source

The target program repeats continuously on real hardware. The browser limits the number of modeled cycles. Source is generated from the current blocks and is read-only here.

Open existing source editor →

04 · Dr. Mohammad · design review

Open related laboratory tutor → · Browse all laboratories

Rule-based review of this block program, not a compilation or physical diagnosis.

05 · Experimental challenges

V01 · GPIO timing

Load blink, run four cycles. Verify 4,000 ms and final output OFF. Change only the wait and compare.

V02 · ADC threshold

Use 0, 59, 60, 100 at a threshold of 60. Check equality behavior and serial samples.

V03 · PWM control

Compare fixed duty and sample-following duty. Explain target quantization and why duty is not measured brightness.

V04 · Twin trace replay

Export a twin run. Replay a chosen node and field. Record mapping, seed, source run, and output decisions; compare two thresholds.

Use low-voltage LEDs only. Physical sensors, wiring, ADC calibration, target firmware and execution must be verified independently. The Raspberry Pi 4 requires an external ADC (MCP3008).

Engineering evidence

Keep your experimental records together

Export the original workspace JSON, then import it into the local evidence portfolio. Results are not certified or uploaded automatically.

Open evidence portfolio →

V19.3 · Virtual hardware engineering

Explore logical wiring, ideal instruments, closed-loop programming and packet sequence models.

Open virtual hardware laboratory →