A device for repelling pests includes a housing, a positioning mechanism to move the housing, at least three range-finding elements affixed to the housing along a common plane to detect a presence of a pest (e.g., an animate pest such as an animal, or an inanimate pest such as a drone) by obtaining a signal indicative of a location of the pest relative to the device, a projectile launcher affixed to the housing to fire one or more projectiles therefrom, and a controller electronically coupled to the range-finding elements, the positioning mechanism, and the projectile launcher. The controller may be configured to move the housing using the positioning mechanism until a strength of the signal obtained from each of the range-finding elements is substantially equal thereby indicating that the projectile launcher is directed toward the location of the pest, and to fire projectiles from the projectile launcher toward the pest.