Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

🧹 Desktop Cleaner

This project is an Arduino-based desktop cleaner robot equipped with an ultrasonic sensor for obstacle detection, a DC motor driver for movement, and an OLED display for real-time distance monitoring.


πŸ“Œ Features

  • Displays "DESKTOP CLEANER" on an OLED screen at startup.
  • Uses HC-SR04 Ultrasonic Sensor for measuring distance.
  • DC motor control with direction pins for cleaning action.
  • Real-time distance feedback on OLED and Serial Monitor.
  • Stops when objects are far; activates motor when close.

πŸ“‚ Hardware Components

  • Arduino UNO / Nano / Mega
  • DC Motor + Driver (L293D / H-Bridge)
  • HC-SR04 Ultrasonic Sensor
  • SSD1306 OLED Display (128x64)
  • Power Supply (Battery/USB)

βš™οΈ Pin Configuration

  • Motor Control

    • motor1pin1 β†’ Pin 2
    • motor1pin2 β†’ Pin 3
  • Ultrasonic Sensor

    • TrigPin β†’ Pin 9
    • EchoPin β†’ Pin 8
  • OLED Display

    • I2C Communication (SDA, SCL) at address 0x3C

πŸš€ Code Explanation

  1. Initializes the OLED display and shows "DESKTOP CLEANER".
  2. Measures distance using the HC-SR04 ultrasonic sensor.
  3. Displays distance in cm on OLED and Serial Monitor.
  4. If distance ≀ 15 cm β†’ motor runs forward ("LOW DISTANCE").
  5. If distance > 15 cm β†’ motor stops ("HIGH DISTANCE").

πŸ“Š Example Output

  • OLED Display
    DESKTOP CLEANER Distance: 12 cm

  • Serial Monitor
    Distance: 12 cm LOW DISTANCE


πŸ”§ Installation & Usage

  1. Connect all components as per pin configuration.
  2. Install required Arduino libraries:
  • Adafruit_GFX.h
  • Adafruit_SSD1306.h
  1. Upload the sketch to Arduino using Arduino IDE.
  2. Open Serial Monitor at 9600 baud rate.

πŸ‘¨β€πŸ’» Author

Developed by MegaZroN (Gaus Mohiuddin Sayyad)
🌐 Portfolio: https://megazron.com


πŸ“œ License

This project is licensed under the terms of the LICENSE file.

About

An automatic desktop cleaner that removes minute dust particles from a desktop surface without user commands by detecting when the distance between the device and the surface decreases to a certain point

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages