Electronic – arduino – How to drive an ultrasonic transducer with an Arduino

arduinoultrasound

I am attempting to build a cat deterrent with an Arduino, something akin to this. I have figured out detection, and now realize that I need to use an ultrasonic transducer to produce the 'blast' that I need.

However, I am clueless as to how I would interface one of these with an arduino.

Does anyone have any advice?

Best Answer

Just looking at the ultrasonic transducer without having open one ever it looks like it ha similar functionality to a standard movement activated light. That means that in the top half of the transducer you see the lens which detects movement using a Passive infra red (PIR) sensor. When this detects any motion it switches a signal pin which triggers the ultrasonic burst. Of course you can take advantage of this and switch the signal pin using an arduino or any other microcontroller using your own cat detection method. Might be a good idea to put in a optocoupler between the arduino and the ultrasonic transducer to protect both circuits from each other.

here is some info about some optocoupler and I cant post the link about the pir since chiphacker dosnt trust me enough... But just go into arduino.cc and search for pir and you will find it