Thread: Sound!
View Single Post
  #5   Spotlight this post!  
Unread 19-08-2009, 10:11
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Sound!

Quote:
Originally Posted by byteit101 View Post
Relay to speaker
I would revisit this design before implementing it. As I understand it, you are toggling it on or off each time the main loop executes, which is quite slow in the sound world. Remember, you can only generate tones that are at most half of your update frequency. A "squeal" noise would be several kHz (thousands of cycles per second), but the IFI update rate is only several tens of herz (tens of cycles per second). Even if you sent the signal fast enough, the relay would be unable to respond.

It may be theoretically possible to do it with a CAN enabled Jaguar - after all, the Segway makes its vooOOOIIIIIP start up noise this way. However, I can't guarantee it is possible, and even if it is it will be hard.

I really like Don Rotolo's suggestion. I used one of those for a project in college - very quick and simple to get it working. It handles all the quick stuff, so you can ignore everything I said in the first paragraph.