IoTIntermediatePRJ-165

IoT Smart Blackboard Cleaner Using ESP32

A motorised wiper that cleans the board on command.

Built and tested by Drisya K S · Industrial Robotics Institute

ESP32

Arduino IDE, Blynk (optional)

LevelIntermediate
Build time3–4 hours
BoardESP32
Parts7 components

What is the IoT Smart Blackboard Cleaner?

An automatic board cleaner for classrooms. A wiper mounted on the board is driven by a DC motor through an L298N driver. When the ESP32 receives the "clean" command, the motor runs the wiper across the board for 5 seconds and stops, saving time and reducing chalk dust.

How it works

  1. The teacher sends the command "clean" (from the Serial Monitor or an app).
  2. The ESP32 sets IN1 high and IN2 low on the L298N.
  3. The DC motor drives the wiper across the board for 5 seconds.
  4. The motor stops; the system waits for the next command.

Parts list

ComponentQty
ESP32 Dev Board1
DC Motor (geared) or Servo1
L298N Motor Driver Module1
Cleaning Wiper Mechanism1
Jumper Wires / BreadboardAs needed
12V Power Supply (motor)1
5V Power Supply (ESP32)1

Software

  • Arduino IDE
  • Blynk (optional)

Wiring and connections

FromConnect to
L298N IN1GPIO 26
L298N IN2GPIO 27
L298N VCC12V
L298N GNDGND (common with ESP32)
MotorL298N OUT1 & OUT2

How to build the IoT Smart Blackboard Cleaner

  1. Build a wiper on a rail or belt across the board, driven by the geared DC motor.
  2. Connect the motor to the L298N outputs and the L298N IN1/IN2 to GPIO 26/27.
  3. Power the L298N from 12V and the ESP32 from 5V, with a common ground.
  4. Upload the code and open the Serial Monitor at 115200 baud.
  5. Type clean and press Enter to run one cleaning pass. Adjust the 5-second time to your board width.

IoT Smart Blackboard Cleaner code

Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP32.

#define IN1 26
#define IN2 27

void setup() {
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  Serial.begin(115200);
}

void loop() {
  if (Serial.available()) {
    String command = Serial.readStringUntil('\n');
    command.trim();

    if (command == "clean") {
      digitalWrite(IN1, HIGH);
      digitalWrite(IN2, LOW);
      delay(5000);            // cleaning time

      digitalWrite(IN1, LOW);
      digitalWrite(IN2, LOW);
      Serial.println("Cleaning done");
    }
  }
}

Real-world uses

  • Classrooms
  • Coaching centres
  • Meeting rooms
  • Learning motor control

Frequently asked questions

What is a IoT Smart Blackboard Cleaner?

An automatic board cleaner for classrooms. A wiper mounted on the board is driven by a DC motor through an L298N driver.

What components are needed for the IoT Smart Blackboard Cleaner?

You need: ESP32 Dev Board (1), DC Motor (geared) or Servo (1), L298N Motor Driver Module (1), Cleaning Wiper Mechanism (1), Jumper Wires / Breadboard, 12V Power Supply (motor) (1), 5V Power Supply (ESP32) (1). Software: Arduino IDE, Blynk (optional).

Is the IoT Smart Blackboard Cleaner project good for beginners?

It is rated intermediate and takes about 3–4 hours to build, using the ESP32. The guide on this page explains every connection and step.

Where can I get the code for the IoT Smart Blackboard Cleaner?

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 IoT Smart Blackboard Cleaner?

Yes. IRI sells a kit with the parts for this project (PRJ-165). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.

Industrial Robotics Institute
Logo