This site documents someone’s clever approach to keeping cats off his kitchen counter. Basically he used off-the-shelf home-automation hardware to build a motion detector that turns on a noisy blender and flashes a bright light when the cat pokes around on the counter. The site also has several videos of the response of the cat. It appears that the system is quite effective.