Hello all and a Happy new year....
I was trying to open an old patch which I had made for playing the gem puzzle with a live camera and a sort of joystick connected by usb, but unfortunately the patch doesn't open.... any one who can help me out? Pd opens, no error message but the patch doesn't appear... any idea, any one?
thx
-
Can't open my patch
-
Hi,
Well, I opened the patch ok in pd-extended-0.42.5, but I got:error: v4l: failed opening device: '/dev/video0'
on the console, when clicking on 'START'
-
Hi and thx for your response. at least I was also able to open the patch with the latest version of PD. but now I got the next problem... there is a arduino board connected to the patch, and everything seems to be right with the board and the connection, for example I can make the arduino led blink with the blink example, but when I'm trying to get it connected via usb to my patch there is no incoming signal. I'm using the comport object in my patch....any idea what's wrong
-
Hey jovan, I've personally found it much easier to just use the [arduino] abstraction from Pduino for connecting Arduino to Pd.
http://at.or.at/hans/pd/objects.html
It uses [comport] internally, but is meant to make sense with Arduino specifically for those who don't want to go through the hassle of learning how to program the board. It basically just lets you choose which pins you want to read or write to and feeds them into Pd (formatted and everything), and you can mess with the data however you want. You don't really need to learn any Arduino programming.
Having said that, though, [comport] will print the available device connections to the Pd window if you send it the [devices( message. On of them should be something like "2 /dev/tty.usbserial" (this is on Mac, by the way). The number in front (in my case, 2) is the device number, and the [open 2( message will open device 2 and should get you connected. You might have to send a [close( message first if [comport] auto-connected to something.
-
Hi, and thank u for answering. but i'm not sure if I did understand everything u told me. I downloaded the Pduino-0.5beta8.zip. there I found the 3 arduino patches (help, test and the patch which is called just "pd") for my understanding what I need is the arduino.pd patch, and for my understanding the messages which are sent from my board should come out at the 2 outlets...well if I'm right, then there is no processed input, because there is nothing coming out of the patch. I tried to read the output with a number-box which have added to / instead of the outlet box..this correct isn't it? I'm sure that there are outgoing messages from my board because I can see the leds of the board flashing when I am manipulating the board, and the board is correctly connected because the blink example is working fine. I don't understand why there is no message coming to the the arduino.pd patch nether to my comport object in my patch. u got any idea? where is my error?
-
Yeah, the helpfiles aren't the best. If you look in arduino-test.pd, you'll see that all the pin messages come out of the left outlet. It will be something like "analog 1 <value>" for analog pin 1, and you'll have to [route] it like in the patch. However, you have to tell that pin to send it's data to Pd first. That big matrix a the top of arduino-test.pd is supposed to format the messages for you. However, I've found the method in [pd old analog/digital controls] to be easier.
Also, if you haven't, make sure you upload the Standard Firmata scene to the board first.