Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / initiating a program using a keyboard button? on: December 04, 2012, 11:32:16 pm
Hey guys,

I've written some code that I want to run when some input, like a key on the keyboard, is pressed. I'm not sure how to implement this.

Ideally, I'd like to run this simultaneously with processing so that both programs start doing their thing at the same time. So I press a button, and my audio (arduino) and visual (processing) begin running at the same time.

Thanks!
2  Using Arduino / Programming Questions / Re: Project due next week and I don't know what I'm doing... on: November 30, 2012, 11:15:45 pm
Gotcha. Thank you!
3  Using Arduino / Programming Questions / Re: Project due next week and I don't know what I'm doing... on: November 30, 2012, 11:12:07 pm
So if I have one program that outputs to pin 8, and one that outputs to pin 9, they can't run together?
4  Using Arduino / Programming Questions / Re: Project due next week and I don't know what I'm doing... on: November 30, 2012, 11:11:20 pm
Yup just a regular piezo. And what kind of multitasking techniques are you referring to?
5  Using Arduino / Programming Questions / Project due next week and I don't know what I'm doing... on: November 30, 2012, 10:59:23 pm
We just learned about arduinos in electronics class. I have a project due next week and I'm still struggling with the concepts. Here is what I want to do:

I want to play a song on the speaker connected to the arduino, while simultaneously displaying some visual display corresponding to the song. I want to have multiple songs and displays, and they have to be triggered by something, like a button on the laptop keyboard.

I've been playing around with the arduino tone function, and it's simple enough. My professor said that I need processing for the visual display, so I was wondering if I could run the processing program simultaneously with the arduino?

On a side note, I'd love to be able to harmonize the songs. I know I can't run two tone functions at once, and sending mixed frequencies to the speaker is very difficult. Is it possible to run two arduino programs at once, though? Or any other way to play chords?

Any help would be greatly appreciated.
Pages: [1]