Hi, list! I have a question: I have to be able to control a the movement of web cam through internet. I was thinking to attach it to a couple of motors and control them through a serial port via a stamp... I would try to control the stamp sending values from PD (via the serial port)... And somehow send these values to PD from a web interface... Is this possible and/or the best/easier way to do it? Can I use the netreceive object for this, and what kind of objects/ software should I use to send this kind of data over the internet, what info would I need for that? I am practically new to networking... Has anyone done something similar or could someone point in the right direction? Thanks a lot...
Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Hi!
julieta Maria wrote:
to PD from a web interface... Is this possible and/or the best/easier way to do it? Can I use the netreceive object for this, and what kind of objects/ software should I use to send this kind of data over the internet, what info would I need for that? I am practically new to networking...
What do you want pd for in this project? What OS do you use?
My "default" solution for this kind of problem is: a small (2 hours of implementation) program in VB/Windows, together with Internet-ActiveX and Serial Port-ActiveX.
Works only if you are on Windows and have the MS VB license :-(
br, Piotr
If you have the budget I'm using an elmo serial control camera. The quality is much better than a webcam, and you could use a remote PD patch to control it from another location.
Its about $1600CAN with tax (so may $1200US perhaps). and I have an abstraction to control already made. (using comport).
B.
julieta Maria wrote:
Hi, list! I have a question: I have to be able to control a the movement of web cam through internet. I was thinking to attach it to a couple of motors and control them through a serial port via a stamp... I would try to control the stamp sending values from PD (via the serial port)... And somehow send these values to PD from a web interface... Is this possible and/or the best/easier way to do it? Can I use the netreceive object for this, and what kind of objects/ software should I use to send this kind of data over the internet, what info would I need for that? I am practically new to networking... Has anyone done something similar or could someone point in the right direction? Thanks a lot...
Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
julieta Maria wrote:
Hi, list! I have a question: I have to be able to control a the movement of web cam through internet. I was thinking to attach it to a couple of motors and control them through a serial port via a stamp... I would try to control the stamp sending values from PD (via the serial port)...
You could use a serial-to-servo controller like the minissc and skip the stamp part, to control two servos from a serial port. If your webcam is lightweight hobby servos work fine. Total cost < $150.
And somehow send these values to PD from a web interface... Is this possible and/or the best/easier way to do it? Can I use the netreceive object for this, and what kind of objects/ software should I use to send this kind of data over the internet, what info would I need for that? I am practically new to networking...
You would need to write a script on the web host in php or javascript or perl or whatever that takes input from a web page and translates it to serial data for the servo controller. You don't need pd for this at all.
Another approach is to run a pd patch instead of a web browser, that talks over the net to a script/program on the camera machine. A standalone programs included with pd called pdreceive can be used to interface other programs/scripts with pd's netsend object. Programming in c you could start with u_pdreceive.c to make a program to accept specific commands from a pdsend object in a remote pd patch and communicate with the servo controller ... otherwise have pdreceive pipe to a script/program that does the command parsing and serial port bit. Or you could use pd at both ends of the connection, but there is no serial object for non-unix pd it seems.
Martin
Hi Julieta, List.
I've never tried it myself, but the Logitech Quickcam Orbit might be worth a look as a cheap and cheerful option. If you're using Linux, the camera is well supported by the pwc driver ( http://www.saillard.org/linux/pwc/ ) and can be moved using the program setpwc ( http://www.vanheusden.com/setpwc/ ) and therefore from within PD with the [shell] object. Search the archives of the pwc list ( http://lists.saillard.org/pipermail/pwc/ ) for more information on the Orbit.
If you're not using Linux, there are probably similar ways of controlling the camera motors on other OS.
Controlling it over the internet is another issue...
Hope this helps,
Andrew.
-- Andrew Cavers andy@mution.com www.mution.com
On 29/09/05, julieta Maria barrambabella@yahoo.com wrote:
Hi, list! I have a question: I have to be able to control a the movement of web cam through internet. I was thinking to attach it to a couple of motors and control them through a serial port via a stamp... I would try to control the stamp sending values from PD (via the serial port)... And somehow send these values to PD from a web interface... Is this possible and/or the best/easier way to do it? Can I use the netreceive object for this, and what kind of objects/ software should I use to send this kind of data over the internet, what info would I need for that? I am practically new to networking... Has anyone done something similar or could someone point in the right direction? Thanks a lot...