The main purpose of this paper is to provide a solution for indoor fire extinguisher which is not appeared on the market, it is based on Arduino Mega2560 control board. It can be obstructed in the room, and extinguish small fire timely, which can prevent the small fire from a large fire. This paper describes the hardware structure design and software structure design of the robot, and the robot can totally accomplish the functions of fire seeking, fire fighting and obstacle avoiding.