RoboticsIntermediatePRJ-056

Automatic Window Cleaning Robot Using Arduino

A robot that crawls over glass in a zig-zag path, scrubbing as it goes.

Built and tested by Anju.A · Industrial Robotics Institute

Circuit diagram of the Automatic Window Cleaning Robot using Arduino Uno
Circuit diagram · Arduino Uno
LevelIntermediate
Build time4–6 hours
BoardArduino Uno
Parts11 components

What is the Automatic Window Cleaning Robot?

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.

How it works

  1. A suction fan or vacuum pump holds the robot against the glass.
  2. The Arduino drives both motors forward for 3 seconds while the pads clean.
  3. It stops, then turns right for 1.5 seconds to start the next pass.
  4. An optional water pump can spray the glass for better cleaning.
  5. The pattern repeats until the surface is covered.

Parts list

ComponentQty
Arduino Uno1
DC Motors2
L298N Motor Driver Module1
Suction Fan / Vacuum Pump1
Cleaning Brush / Microfibre Pad1
Water Pump (optional)1
Relay Module (optional)1
Chassis / Frame1
Li-ion Battery1
Switch1
Jumper WiresAs needed

Software

  • Arduino IDE

Wiring and connections

FromConnect to
L298N IN1Pin 2
L298N IN2Pin 3
L298N IN3Pin 4
L298N IN4Pin 5
L298N ENA / ENB5V (jumpers on)
Left motorOUT1 & OUT2
Right motorOUT3 & OUT4
Suction fanBattery (optionally via relay)
Battery +L298N VCC
Battery −GND

How to build the Automatic Window Cleaning Robot

  1. Build a light frame with two drive wheels and a microfibre pad underneath.
  2. Mount the suction fan so it pulls the frame against the glass.
  3. Connect the motors to the L298N and IN1–IN4 to pins 2–5.
  4. Power the motors and fan from the Li-ion battery through the switch.
  5. Upload the code from the Arduino IDE.
  6. Test on a flat glass sheet lying down before trying a vertical window, and use a safety tether.

Automatic Window Cleaning Robot code

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);
}

Real-world uses

  • Home windows and glass doors
  • Office glass walls
  • Solar panel cleaning
  • High-rise cleaning research

Frequently asked questions

What is a Automatic Window Cleaning Robot?

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.

What components are needed for the Automatic Window Cleaning Robot?

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.

Is the Automatic Window Cleaning Robot project good for beginners?

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.

Where can I get the code for the Automatic Window Cleaning Robot?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Automatic Window Cleaning Robot?

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.

Industrial Robotics Institute
Logo