A robot that crawls over glass in a zig-zag path, scrubbing as it goes.
Built and tested by Anju.A · Industrial Robotics Institute

A window cleaning robot that moves across a glass surface while brushes or microfibre pads wipe away dust. A suction fan or vacuum pump holds it against the glass, two DC motors drive it, and the Arduino moves it in a repeating forward-and-turn pattern so the whole pane gets covered.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| DC Motors | 2 |
| L298N Motor Driver Module | 1 |
| Suction Fan / Vacuum Pump | 1 |
| Cleaning Brush / Microfibre Pad | 1 |
| Water Pump (optional) | 1 |
| Relay Module (optional) | 1 |
| Chassis / Frame | 1 |
| Li-ion Battery | 1 |
| Switch | 1 |
| Jumper Wires | As needed |
| From | Connect to |
|---|---|
| L298N IN1 | Pin 2 |
| L298N IN2 | Pin 3 |
| L298N IN3 | Pin 4 |
| L298N IN4 | Pin 5 |
| L298N ENA / ENB | 5V (jumpers on) |
| Left motor | OUT1 & OUT2 |
| Right motor | OUT3 & OUT4 |
| Suction fan | Battery (optionally via relay) |
| Battery + | L298N VCC |
| Battery − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
// Motor Pins
int IN1 = 2;
int IN2 = 3;
int IN3 = 4;
int IN4 = 5;
void stopRobot()
{
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
void setup()
{
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
}
void loop()
{
// Move Forward
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
delay(3000);
stopRobot();
delay(1000);
// Turn Right
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
delay(1500);
stopRobot();
delay(1000);
}A window cleaning robot that moves across a glass surface while brushes or microfibre pads wipe away dust. A suction fan or vacuum pump holds it against the glass, two DC motors drive it, and the Arduino moves it in a repeating forward-and-turn pattern so the whole pane gets covered.
You need: Arduino Uno (1), DC Motors (2), L298N Motor Driver Module (1), Suction Fan / Vacuum Pump (1), Cleaning Brush / Microfibre Pad (1), Water Pump (optional) (1), Relay Module (optional) (1), Chassis / Frame (1), Li-ion Battery (1), Switch (1), Jumper Wires. Software: Arduino IDE.
It is rated intermediate and takes about 4–6 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-056). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.