AD9850Ultrasonic_Deterrent by ptamike

Cloned from Sketch New_Deterent by ptamike

This sketch is missing a short description
Silent but Deadly! A powerful but simple ultrasonic cat deterrent that's silent to humans. This device uses an AD9850 DDS module coupled with a Class D audio amplifier to emit a siren-like tone that sweeps a sinewave between 20kHz and 24kHz for 20 seconds every 4 minutes. In between alerts, the Arduino goes into sleep mode and also puts the connected class D PA into sleep mode. The sinewave output is taken from the DDS board and Digital pin 6 provides the drive for a flashing LED Strobe whilst pin 7 provides a shut-down signal (pin LOW) for an attached class-D amplifier. A simple power source used for the prototype is 4 x AA rechargeable batteries with a 5V boost/buck regulator. The current consumption will primarily depend on the speaker load. I used 2 pairs of Piezo tweeters that presented a 50 ohm load at 22kHz. The use of a voice-coil tweeters will increase the consumption.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:127200" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>