Project Deep Dive
Autonomous Robot v2.0 under development

MARS: Modern Autonomous
Robotic System

A fully self-contained AI-powered robot that navigates its environment, monitors real-world conditions, and converses intelligently. Built with a Raspberry Pi 4 brain and Arduino muscle, from a bedroom in Kashmir.

2+Years Building
10+Sensors Integrated
RPi 4Core Controller
LLMAI Powered

What is MARS?

MARS is not a toy or a classroom kit. It is a full-stack robotics system I designed, wired, and programmed from scratch, combining embedded hardware control, real-time sensor fusion, computer vision, and a large language model backend into one mobile platform.

The robot navigates autonomously using ultrasonic sensors for obstacle detection and IR sensors for cliff detection at the base. An onboard camera module feeds into a vision pipeline, while a Raspberry Pi 4 serves as the main computer running the AI stack, API calls, and speech I/O. The Arduino Uno R3 handles low-level motor control and sensor reads, communicating with the Pi over serial.

"I didn't want a robot that just moved. I wanted one that could sense, think, and speak, just like a real machine with a mind."

Interactive M.A.R.S. 3D Model

Rotate, inspect, and explore the hardware layout of the Modern Autonomous Robotic System in real-time WebGL 3D directly from the CAD & sensor specifications.

Real-Time 3D Engine (`mars.gltf`)
Drag to Rotate 360° • Auto-Orbit Enabled

Technical Specifications

Main Computer
Raspberry Pi 4 (2GB RAM)
Microcontroller
Arduino Uno R3
Motor Driver
L298N Dual H-Bridge
Drive System
Differential Drive, 4WD
Power Source
Lead-Acid Battery
Communication
USB Serial (Pi ↔ Arduino)
Vision
Pi Camera Module v2
AI Backend
Groq API (LLaMA 3)

The sensor array combines environmental and navigation sensors, each serving a distinct role in MARS's situational awareness.

SensorModelPurpose
Temperature & HumidityDHT22Environmental monitoring
Gas / Smoke DetectionMQ2Air quality & hazard alerts
Flame DetectionIR Flame SensorFire safety awareness
Obstacle Detection (Front)HC-SR04 UltrasonicForward navigation
Obstacle Detection (Rear)HC-SR04 UltrasonicReverse safety
Cliff DetectionIR Array (Bottom)Edge / drop detection

How MARS Was Born

The Problem with JARVIS
JARVIS was intelligent but blind to the physical world. It could hold conversations and control software, but had no awareness of temperature, gas leaks, or fires. I needed something that could sense.
First Sensor Array
I started with an Arduino Uno R3 and wired up DHT22, MQ2, and an IR flame sensor. The data came in. The sensor nodes worked. But the system was still stationary: a sniffer, not a robot.
Adding Mobility
An L298N motor driver and four DC motors gave MARS its wheels. A chassis was built, wired, and tested. Now it could move, though blindly. Obstacle avoidance came next with ultrasonic sensors.
Intelligence via Raspberry Pi
The Raspberry Pi 4 became the robot's brain. With Python scripts, Groq API calls, Edge TTS, and a camera pipeline, MARS graduated from a moving sensor platform to a genuinely conversational autonomous machine.
MARS v2.0: under development
The current verified build includes all sensors, full autonomous navigation, LLM-powered speech, and real-time environmental data, running continuously from a lead-acid battery pack.

What MARS Can Do

01
Autonomous Navigation: Detects and avoids obstacles in real time using front and rear ultrasonic sensors. Cliff detection via bottom IR array prevents falls from edges.
02
Environmental Monitoring: Continuously reads temperature, humidity (DHT22), gas/smoke levels (MQ2), and flame presence. Can alert or stop based on readings.
03
Natural Language Conversation: Powered by Groq's LLaMA 3 backend, MARS understands spoken questions and responds intelligently through a speaker.
04
Visual Perception: The Pi Camera Module streams a live feed. Object detection and visual Q&A can be triggered via voice commands.
05
Speech I/O Pipeline: Microphone captures audio, a speech recognition model transcribes it, the LLM processes it, and Edge TTS delivers the spoken reply, entirely on-device and via API.

What Comes Next

LiDAR Mapping Upgrade to a 360° LiDAR unit for full-room SLAM navigation and map building.
LiPo Battery Replace lead-acid with a lightweight LiPo pack for longer runtime and easier portability.
Holographic HUD A transparent display module showing sensor data, AI status, and navigation overlays.
Multi-Agent Control Cloud-synced command system allowing multiple MARS units to coordinate in a shared environment.

MARS represents exploration, not just of space, but of what's possible when you refuse to accept that building real AI hardware requires a university lab or a big budget. It was built in a bedroom, in Kashmir, by a 14-year-old. That's the point.