The invention discloses an intelligent pigsty cleaning device and method. The ground of a pigsty is equally divided into a plurality of identical regions in the left-and-right width direction, a wall on the front side of each region and a wall on the rear side of each region are each provided with an automatic rotary
water spray device, and each automatic rotary
water spray device is connected with an electric regulating valve through a
hard water pipe penetrating through the corresponding wall. An
embedded controller controls all cameras to monitor the
pollution situations of all the regions of the ground regularly in real time, the polluted regions in need of cleaning can be judged out, the electric regulating valves corresponding to the polluted regions are regulated to be in one third opening, rectangular spray nozzles are controlled to spray water at
low speed from bottom to top in a rotary mode, and pigs are evacuated to be made to enter the rest of the regions. The
embedded controller processes collected images,
processing results are matched with preset pigsty ground
pollution level thresholds, and the
flushing time is determined according to the
pollution level; the ground of the pigsty can be flushed comprehensively in a non-dead-corner mode, manual intervention is not needed in the whole process, and therefore the
automation degree of pigsty breeding is increased.