Help with speaker from Arduino using processing

edited October 2013 in Arduino

Hello,

I am using Processing to control inputs and outputs from several Arduino Unos at once. I have StandardFirmata loaded up on the Arduino Unos. When a button is pressed for any one Arduino, I would like to play a tone on a speaker driven by that Arduino. This was relatively straightforward from within Arduino using the tone function, however, due to the need to more easily with computer files and at a higher time resolution I've moved into Processing, which is great in a lot of ways, but doesn't appear to have easy access to an analogous tone function for the Arduino.

Does anyone have any suggestions on how to do this? I'm not currently sure that the arduino.analogWrite has good enough resolution to play 4kHz tones.

This question has been asked before without an answer unfortunately: http://forum.processing.org/one/topic/speaker-on-arduino.html

Thanks very much to all in advance and apologies if I'm overlooking something easy...

Answers

Sign In or Register to comment.