The invention relates to the technical field of pet appliances, in particular to a pet feeder which comprises a base, a material storage barrel, a grain feeding component, a driving component, a feeding basin and a controller, the material storage barrel, the grain feeding component, the driving component and the feeding basin are sequentially connected on the base from top to bottom, a shell is connected on the base, a positioning column is arranged at the bottom of the base, a weight sensor is connected at the bottom of the material storage barrel and/or the feeding basin, the grain feeding component is positioned in the shell, the material storage barrel is detachably connected with the shell, and the feeding basin has a closing position and an opening position under the action of the driving component. According to the pet feeder, surplus grain in the material storage barrel and the feeding basin are weighed, feeding amount of each time is weighed, surplus grain is weighed, structure of the feeder is greatly simplified, structural design difficulty is reduced, and cost is greatly reduced.