Quote:
Originally Posted by byteit101
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.