Back to Projects
IoT

VirtLab – AI-Enabled Virtual IoT Laboratory

An AI-powered Virtual IoT Laboratory that combines Digital Twin technology, real-time sensor monitoring, interactive learning, and intelligent diagnostics. The platform enables students to explore 17 IoT sensors through live dashboards, AI tutoring, fault injection, signal processing, and simulated or real hardware integration—all from a web browser.

Justin Jacob Saju

Ad Space - project-top

VirtLab – AI-Enabled Virtual IoT Laboratory

Overview

VirtLab is a browser-based Digital Twin platform designed to bridge the gap between theoretical IoT education and hands-on experimentation.

It recreates an IoT laboratory inside the browser, allowing students to monitor sensors in real time, study sensor theory, perform experiments, inject hardware faults, process noisy signals, and interact with an AI tutor without requiring constant access to physical hardware.

The system supports both simulated sensor data and real Arduino hardware, making it suitable for remote learning, laboratory demonstrations, and engineering education.


Motivation

Traditional IoT laboratories are expensive, hardware-dependent, and difficult to access outside scheduled lab sessions.

VirtLab addresses these challenges by providing an interactive virtual laboratory where learners can safely experiment with sensors, understand data acquisition, and practice troubleshooting in a realistic environment.


Key Features

Real-Time Monitoring

  • Dashboard for 17 IoT sensors
  • Live WebSocket updates
  • Historical trend visualization
  • System health monitoring
  • Device status indicators
  • Signal strength monitoring
  • Uptime tracking

Supported Sensors

Environmental

  • DHT11
  • BMP280
  • LDR
  • Thermistor

Detection & Safety

  • Flame Sensor
  • PIR
  • IR Sensor
  • Proximity Sensor
  • Ultrasonic (HC-SR04)

Gas & Audio

  • MQ2
  • MQ3
  • Sound Sensor

Input & Motion

  • Touch Sensor
  • Tilt Sensor
  • Hall Effect Sensor
  • Joystick

Medical

  • MAX30102 Heart Rate Sensor

Interactive Learning

Every sensor includes educational modules featuring:

  • Working principles
  • Mathematical concepts
  • Circuit explanations
  • Communication protocols
  • Arduino implementation
  • Interactive quizzes
  • AI explanations
  • Student notes

AI Features

Powered by Google Gemini.

The AI assistant can:

  • Explain sensor readings
  • Answer IoT questions
  • Generate quizzes
  • Analyze charts
  • Detect common student mistakes
  • Explain anomalies
  • Provide troubleshooting guidance

Fault Injection

Students can intentionally introduce realistic hardware faults including:

  • Stuck-at-zero
  • Stuck-at-high
  • Open circuit
  • Noise bursts
  • Signal drift
  • Offset errors

This allows learners to practice fault diagnosis without damaging hardware.


Signal Processing

Interactive signal processing tools include:

  • Moving Average filtering
  • Threshold noise removal
  • Live comparison between raw and processed data
  • Adjustable processing parameters

Hybrid Digital Twin

VirtLab supports two operating modes:

  • Simulated sensor environment
  • Real Arduino hardware

If physical hardware becomes unavailable, the system automatically switches to simulated sensor data while maintaining uninterrupted operation.


Technology Stack

Frontend

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS

Backend

  • Node.js
  • Express
  • Socket.IO

AI

  • Google Gemini

Hardware

  • Arduino Mega 2560
  • ESP8266 WiFi Module

Communication

  • REST APIs
  • WebSockets

System Architecture

Arduino Mega collects sensor readings from multiple sensors.

↓

ESP8266 transmits data over WiFi.

↓

Express backend receives sensor packets.

↓

Socket.IO broadcasts updates in real time.

↓

Next.js dashboard visualizes live sensor information.

↓

Gemini AI provides contextual educational assistance.


Educational Impact

VirtLab transforms traditional IoT education by allowing students to:

  • Learn sensor theory interactively
  • Experiment without expensive equipment
  • Practice troubleshooting safely
  • Understand signal processing
  • Build intuition using live visualizations
  • Receive AI-guided assistance throughout the learning process

Highlights

  • 17 integrated IoT sensors
  • Real-time Digital Twin architecture
  • AI-powered tutoring
  • Interactive fault injection
  • Signal processing toolkit
  • Hybrid real/simulated hardware support
  • Live WebSocket communication
  • Responsive modern interface
  • Remote laboratory access
  • Engineering education focused

Future Enhancements

  • Historical database storage
  • User authentication
  • Multi-user laboratory sessions
  • Mobile application
  • Advanced analytics
  • Machine learning anomaly detection
  • Cloud laboratory management

Ad Space - project-middle

Live Preview

If the preview doesn't load, the site may not allow embedding. Use the links at the top to open it directly.

Tags

iotdigital twinarduino megaesp8266nextjsreacttypescriptnodejsexpresssocket.iowebsocketsgemini airealtime dashboardsensorseducationvirtual labsignal processing

Ad Space - project-bottom

VirtLab – AI-Enabled Virtual IoT Laboratory | Echo Projects