Thread: Sound!
View Single Post
  #1   Spotlight this post!  
Unread 18-08-2009, 21:20
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Sound!

We have a burnout Robot that does burnouts (smokebombs!) and we wanted to add sound (simple fixed pitch, squealing sound) to our robot (IFI system). I did a tad of research, and it appears that all I would need is a 5v speaker and hook it up to a relay and every loop send it forward and next loop send reverse. Am I correct or would i have to use the pwm? I would have to use the fast loop, and execute it with a counter to change the pitch and like.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib