A going back and charging system for a sweeping robot and a method for controlling the same are provided. The system includes: a charging station, configured to emit infrared signals to divide an area in front of the charging station into six different signal regions; six infrared receiving tubes; and a going back and charging control device, configured to control the six infrared receiving tubes to be turned on if the sweeping robot needs to be charged, to control the sweeping robot to walk toward the middle near field region if any one of the six infrared receiving tubes receives an infrared signal emitted from the charging station, and to control the sweeping robot to continue to walk until the sweeping robot docks with the charging station successfully if the fifth infrared receiving tube and the sixth infrared receiving tube receive an infrared signal of the middle near field region.