Skip to the content
2 layers55.5 × 81 mmFogSafe Signal, the printed circuit board in 3D

RailGuard AI: An autonomous, software-first central rail infrastructure orchestration layer. Built for the FAR AWAY 2026 Hackathon (Railways Theme), leveraging crowdsourced edge telemetry and LLM reasoning to predict track anomalies and optimize network scheduling.

Size
55.5 × 81 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
44
Pads
100
Tracks, vias
124, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
13 Jun 2026
Updated
18 Oct 2026

Overview

FogSafe Signal is an open-source printed circuit board by rishav-raj-genx, from the rishav-raj-genx/RailGuard-AI repository on GitHub, published under the MIT licence. It is a 2-layer board of 55.5 × 81 mm with 11 parts on 44 nets, routed with 124 tracks and 0 vias.

It is built around the ESP32-WROOM-32. Its parts include 3 resistors, 3 diodes, 3 switches and 2 ICs. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md

RailGuard AI 🚂🧠

Autonomous Central Rail Infrastructure & Orchestration Layer

Hackathon Submission React Node.js Socket.io Google Gemini AI IoT Hardware

RailGuard AI transitions railway infrastructure from expensive, fragmented legacy hardware—such as ₹50 Lakh/km Kavach deployments—to a scalable, software-first real-time data bus. Agentic AI turns live infrastructure telemetry and human operations into coordinated, explainable decisions across freight, passenger, and locomotive workflows.

The Real-World Problem & Our Solution

The broken state of rail operations

Rail operations are often governed by disconnected systems and manual intervention:

  • B2B freight: Manual OCC dispatch mistakes can breach contractual freight SLAs and create multi-lakh rupee penalties.
  • B2C passenger operations: TTEs rely on paper manifests and ad-hoc judgement, creating friction, inequity, and risk during seat swaps.
  • Safety in dense fog: Low visibility can blind locomotive pilots to physical signal aspects when fast, trustworthy signal awareness matters most.

The RailGuard AI solution

RailGuard AI is a unified, sub-15 ms WebSocket state engine that ingests physical hardware telemetry and human inputs into one operational picture. Gemini LLM arbitration then assists the right role—OCC dispatcher, TTE, passenger, or loco-pilot—with contextual, real-time action recommendations.

The Three Core Architectures (The Cycles)

Cycle 1 — B2B Freight SLA Arbitrator

Hackathon Challenge #697

The /occ dashboard intercepts manual dispatch commands before they become expensive operational errors. When an operator attempts to delay a freight train beyond its contractual SLA, RailGuard AI blocks the action, calculates the financial penalty in real time, and invokes Gemini to generate a dynamic loop-line rerouting strategy that protects the SLA.

Cycle 2 — B2C Passenger Economy & Regulatory Firewall

The /passenger and /tt dashboards synchronize instantly through the shared state engine. Digital seat-swap arbitration cross-references PNR demographics—such as age and gender—to automatically block invalid or unsafe swaps, including a 25-year-old male attempting to take a Senior Citizen berth.

Cycle 3 — IoT Edge Fog Mitigation (Micro-ATP)

Trackside ESP32/LoRa nodes publish live lamp aspects through HTTP polling into RailGuard AI. When a physical RED signal is detected in dense fog, the pilot UI automatically bleeds locomotive speed to 0 km/h and sends an AI-generated reroute telex to the Loco-Pilot HUD.

Technical Stack

LayerTechnologiesResponsibility
FrontendReact, Vite, Tailwind CSSReal-time OCC, passenger, TTE, and pilot operational dashboards
BackendNode.js, Express, Socket.ioWebSocket state engine, APIs, and orchestration workflows
AIGoogle Gemini 2.5 FlashContextual SLA rerouting and operational decision support
HardwareESP32, LoRa, HTTP API pollingEdge signal telemetry and fog-mitigation events

Local Installation & Startup Guide

1. Clone the repository

bash
git clone https://github.com/Riturajsinha04/Railgaurd-AI.git
cd Railgaurd-AI

2. Create a .env file

Create a .env file in the project root with the following values:

env
GEMINI_API_KEY=your_key_here
FOGSAFE_URL=https://iot-railway.onrender.com
RECEIVER_API_KEY=38f3943247bdd7e617cb12ca745cf0464b6b777170243b8088b89e519e9d9c79
PORT=3001

3. Install dependencies

bash
npm install

The project uses concurrently to run the frontend and backend development processes together.

4. Start RailGuard AI

bash
npm run dev

This starts the Vite client on port 5173 and the Socket.io/WebSocket server on port 3001.

The Demo Walkthrough (Where to Look)

Parts

11
QtyValueFootprintReferences
3LEDLED_THT:LED_D5.0mmD1, D2, D3
3RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3
3SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U1
1SX1278_RA02Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalU2

More from rishav-raj-genx/RailGuard-AI

1
  • 2 layers55.5 × 81 mmFogSafe Receiver, the printed circuit board in 3D

    FogSafe Receiver

    rishav-raj-genx/RailGuard-AI

    RailGuard AI: An autonomous, software-first central rail infrastructure orchestration layer. Built for the FAR AWAY 2026 Hackathon (Railways Theme), leveraging crowdsourced edge telemetry and LLM reasoning to predict…

    9 partsMIT

Similar boards

  • 2 layers24.1 × 36.2 mmEsp32miniBT, the printed circuit board in 3D

    Esp32miniBT

    asterics/esp32_mouse_keyboard

    ESP32 implementation for HID over GATT Keyboard and Mouse (Bluetooth Low Energy). Including serial API for external modules (similar to Adafruit EZKey HID)

    28 parts911GPL-3.0
  • 4 layers99.6 × 76.2 mmE TKT, the printed circuit board in 3D

    E TKT

    andreisperid/E-TKT

    open source embossed label maker

    110 parts481MIT
  • 4 layers46.8 × 34.8 mmSmartWatch V4, the printed circuit board in 3D

    SmartWatch V4

    Bellafaire/ESP32-Smart-Watch

    An open source smartwatch based on the ESP32 compatible with the Arduino IDE.

    74 parts258MIT
  • 2 layers90 × 76.5 mmLCDZapperPro, the printed circuit board in 3D

    LCDZapperPro

    charcole/LCDZapper

    Device for making light gun games playable on LCD TVs

    126 parts163
  • 2 layers57.2 × 35.1 mmMainBoard Rev2, the printed circuit board in 3D

    MainBoard Rev2

    lzrtag/LZRTag

    AVR-Based easily modifyable DIY Lasertag!

    70 parts111GPL-3.0
  • 2 layers85 × 56 mmHB RF ETH, the printed circuit board in 3D

    HB RF ETH

    alexreinert/PCB

    Some of my PCBs

    96 parts104
  • 2 layersSmp7c, the printed circuit board in 3D

    Smp7c

    likeablob/slow-movie-player-7c

    Yet another "Slow Movie Player" implementation with 7-color E-Paper module and ESP32.

    18 parts51MIT
  • 2 layers30.8 × 24.4 mmWii Bluetooth Replacement, the printed circuit board in 3D

    Wii Bluetooth Replacement

    JSnowden33/Wii-Bluetooth-Replacement

    This project is a full replacement for the Nintendo Wii's Bluetooth module. Emulation of the Bluetooth module is performed on the PIC32 based on rnconrad's emulator, while controller connectivity on the ESP32 is based…

    50 parts48GPL-3.0

Questions

How big is the FogSafe Signal PCB?

It measures 55.5 × 81 mm and has 2 copper layers, 1.6 mm thick.

What parts does the FogSafe Signal use?

11 parts, built around the ESP32-WROOM-32. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the FogSafe Signal KiCad files?

From the rishav-raj-genx/RailGuard-AI repository on GitHub, at the commit this page was made from: the board is FogSafe_Receiver/.history/FogSafe_Signal.kicad_pcb and its schematic FogSafe_Receiver/.history/FogSafe_Receiver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the FogSafe Signal design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).