A Raspberry Pi, object detection camera, and servo-triggered taser sit inside a 3D-printed spiked shell, and the creator says it works like a charm.