CleaningRobotPy is an autonomous cleaning robot that moves in a room, detects obstacles, and cleans dust from the floor using a built-in cleaning system. It is equipped with sensors and motors that allow it to navigate and operate efficiently.
- Autonomous movement with two DC motors (wheels & rotation)
- Infrared sensor for obstacle detection
- Intelligent Battery Sensor (IBS) to monitor battery levels
- Recharge LED indicator when battery is low
- Cleaning system with two rotating brushes
- Controlled by a Route Management System (RMS) that tracks room layout and obstacles
- GPIO communication for seamless integration with hardware
-
When powered on, the robot activates its cleaning system and starts moving.
-
It follows movement commands from the Route Management System (RMS).
-
If it encounters an obstacle, the infrared sensor detects it and adjusts movement accordingly.
-
The battery sensor (IBS) continuously monitors battery charge.
-
If the charge is too low, the recharge LED turns on, signaling that it needs to be recharged.
-
The room is represented as a rectangular grid where the RMS keeps track of obstacles and the robot's position.
-
π§ DC Motor (wheels) β Moves the robot forward
-
π DC Motor (rotation) β Rotates the robot left or right
-
π§ Route Management System (RMS) β Sends movement commands
-
π‘ Infrared Sensor β Detects obstacles
-
π Intelligent Battery Sensor (IBS) β Checks remaining charge
-
π΄ Recharge LED β Signals low battery
-
π§Ή Cleaning System β Two rotating brushes
- Clone the repository:
git clone https://github.com/yourusername/cleaningrobotpy.git
cd cleaningrobotpy
- Install dependencies (if needed):
pip install -r requirements.txt
- Run the simulation:
python cleaning_robot.py
This project is licensed under the MIT License.
π Developed for both real-world and simulation environments.