My first thought is, Wow, smart dog. We have never done that before, but I am sure it can be done. The fear would be that it would trip off the water too much and over water the plants in the garden. I suppose that if you set it with I timer you could get it to work on a short span of time, but like I said previously we have never had anyone ask us that before.
It sounds like a great project. If you pull it off please let us know, and if you get video of your dog getting surprised by the sprinklers, we will post it on our Facebook page, because that would be funny.
Have a great day, and thank you for the questions.