04-05-2006 11:33 AM
04-06-2006 11:10 AM
04-06-2006 11:33 AM
04-06-2006 11:44 AM
Yeah, you could easily generate a square wave off your counter which would make a nice annoying buzzer sound! Only thing to keep in mind is that your DIOs are limited to about 20mA of output current. Since the DIOs (which is what the counter would output to) are 5V, you don't have to worry about blowing a speaker. You would want to definitely add a resistor inline there to keep the total resistance such that you're not flowing more that 24mA. Since speakers are typically 8ohms or so of DC resistance, use at least a 250Ohm resistor inline. (5V / 258 ohm < 20 mA).
I think that should be enough to make a decent racket at a higher frequency, probably at least 1000Hz. Play around with it. Remember that perceived sound level increases with frequency for a given power output since you move less air at higher frequencies. Here we have a max power output of .1 watt: (5v * .020A).
04-06-2006 11:45 AM