| Author |
Message |
WeHaveTheTechnology

Joined: Sep 22, 2008 Posts: 4 Location: Bogotá
|
Posted: Mon Sep 22, 2008 4:04 pm Post subject:
Chuck and Arduino? Subject description: Innitiatives in connecting the physical world and Chuck |
 |
|
Hallo!
My first unsuccessful experiments in connecting the Arduino board with Chuck consisted in making the microcontroller to send some MIDI messages through the USB port, but when trying the Chuck --probe command to list all the devices attached it doesn't seem to recognize the board at all.
Any other initiatives to build on?
Any suggestions?
Critics?
Tomatoes?
Thanks. Last edited by WeHaveTheTechnology on Mon Sep 22, 2008 5:46 pm; edited 2 times in total |
|
|
Back to top
|
|
 |
blue hell
Former site admin

Joined: Apr 03, 2004 Posts: 24864 Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320
|
Posted: Mon Sep 22, 2008 4:11 pm Post subject:
|
 |
|
I'm not into any details re. this, so this could be un-smart easily ... but usually one sends MIDI through a MIDI port and not through an USB port, could that be the issue?
anyway, no tomatoes (sorry, I ate 'm all)  |
|
|
Back to top
|
|
 |
WeHaveTheTechnology

Joined: Sep 22, 2008 Posts: 4 Location: Bogotá
|
Posted: Mon Sep 22, 2008 4:26 pm Post subject:
|
 |
|
Hi Blue Hell and thanks for the quick reply.
I think you're right, but i thought that maybe if i were using the MIDI baud rate even though I was sending the message through the USB port it was going to be enough to trick the machine so it would have said hey, this is a MIDI message! but not.
I was lucky you ate all the tomatoes. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Sep 22, 2008 7:27 pm Post subject:
|
 |
|
:¬)
I fear you at least need to tell the computer "hi, I'm a MIDI device". ChucK makes things simple but not quite *that* simple. For MIDI devices we depend on the OS so if you can convince the OS your Arduino is a MIDI box you're in business but I think they instead pretend to be a parallel port.
Alternately if you can send those messages anyway, why not send them over a simple wire to a "real" MIDI port? I seem to remember there was a simple implementation online that didn't conform 100% to the spec but is supposed to work _________________ Kassen |
|
|
Back to top
|
|
 |
radarsat1

Joined: Mar 14, 2008 Posts: 85 Location: Montreal
|
|
|
Back to top
|
|
 |
WeHaveTheTechnology

Joined: Sep 22, 2008 Posts: 4 Location: Bogotá
|
Posted: Tue Sep 23, 2008 2:06 pm Post subject:
|
 |
|
Hi everyone and thanks very much for the advice
radarsat1,
i have downloaded the Python script and i'm starting to figure out the rest. For the moment i've been able to send messages back and forth to the arduino board and save incoming ones in variables, it seems quiet exciting so far, but no Chucking connection yet. As I'm not too familiar with Python it might take me a while, but I think it's pointing in the right direction.
Could the connection to Chuck be implemented using a socket?
Any ideas on this? Last edited by WeHaveTheTechnology on Wed Sep 24, 2008 4:07 pm; edited 1 time in total |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Tue Sep 23, 2008 8:28 pm Post subject:
|
 |
|
| radarsat1 wrote: | Doesn't the Arduino show up as a serial port?
|
Yes, you are right.
| Quote: |
I think there's no serial I/O in Chuck, is there?
|
No, though that would be nice. I think Spencer was looking for a Free/Open cross-platform serial library. Would be good for this and for running leds on my joystick sequencer. _________________ Kassen |
|
|
Back to top
|
|
 |
radarsat1

Joined: Mar 14, 2008 Posts: 85 Location: Montreal
|
Posted: Wed Sep 24, 2008 7:39 am Post subject:
|
 |
|
| WeHaveTheTechnology wrote: |
Could the connection to Chuck be implemented using a socket?
Any ideas on this? |
Take a look at SimpleOSC, http://www.ixi-software.net/content/body_backyard_osc.html
Hm, maybe it would be a great idea to include a Python<->Chuck example in the ChucK distribution. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Sep 24, 2008 10:17 am Post subject:
|
 |
|
That's not a bad idea; Python&ChucK seems a relatively popular combination. Processing<->ChucK would be good as well. _________________ Kassen |
|
|
Back to top
|
|
 |
WeHaveTheTechnology

Joined: Sep 22, 2008 Posts: 4 Location: Bogotá
|
Posted: Wed Sep 24, 2008 3:53 pm Post subject:
|
 |
|
| Quote: | That's not a bad idea; Python&ChucK seems a relatively popular combination. Processing<->ChucK would be good as well.
|
and also an implementation for the Firmata protocol would be great
but meanwhile...
i'll take a look at the simpleOSC script, thanks radarsat1 BTW |
|
|
Back to top
|
|
 |
|