A new service robot designed for cleaning tasks in home environments is introduced. System has three subsystems: electrical, software and mechanical of which microcontroller, sensors (opponent and light) and motor are the electrical and mechanical subsystems respectively and the software subsystem is the brain of the robot. The cleaning robot uses a microcontroller to detect obstacles and manipulates its direction as per the inputs . It is programmed to accept inputs to sense obstacles around it and control the robot to avoid any collisions. In case of an obstacle, or a potential collision, the microcontroller controls the wheels of the robot by a motor driver to avoid collision. The vacuum cleaner at the bottom of the robot performs the cleaning process.