I tried using the words "ultrasonic bird repellent device schematic" in an internet search engine. I found some schematics and from those I can see how using a MCU one could be built. I did not find any off the shelf MCU way, I just did a 2 minute search, of doing the thing. Good luck.