Arduino Proximity Alarm

Hi,

I'm a student at a vo-tech school and my instructor got me interested in all the things you can do with Arduinos.

At the moment i am trying to build a proximity alarm using an Arduino ultrasonic range detector and an high-pitched audio generating device i designed.

i have two questions:

  1. can i series three data outputs to get my required 9v to power my audio device?
  2. is there a switch-like function on the Arduino i can use to turn my audio device if i have to power in externally?

thanks for any help :slight_smile:

  1. Have no clue what your talking about. If you have a 9V battery you want to use to power the arduino then plug it into the power connector or the Vin pin. The on board voltage regulator will handle the rest. I assume your talking about using 3 arduino pins to give the 9V needed for the alarm. No you can't do that. Use an external source.

  2. If the alarm device needs to be powered externally then make sure to tie the ground of its power source with the ground of the arduino. Switching the device on can be done threw a transistor to one of the digital pins on the arduino.