Hi all,
I've been using Pdunio with an Arduino Uno and analogue pots, IR sensors and buttons. It's been remarkably simple for a novice like me to use and get some cool/fun stuff working.
Now I'm thinking of hacking a PS/2 mouse/trackball into my Uno and I'd like to use it to control Pd data. I'm wondering if I'm going to be able to get the data from the PS/2 trackball into Pd?
I've found this: http://www.arduino.cc/playground/ComponentLib/Ps2mouse
and this: http://www.computer-engineering.org/ps2mouse/
I'm assuming Pdunio will not work because it isn't straight input data? Maybe [hid] or something else?
Sorry for the noobishness. Should I abandon this? Or is it going to be possible (considering that my coding/ electronics knowledge is limited)? Any suggestions for how I might go about piping the data through?
thanks in advance
Hi,
Richie Cyngler wrote:
Now I'm thinking of hacking a PS/2 mouse/trackball into my Uno and I'd like to use it to control Pd data. I'm wondering if I'm going to be able to get the data from the PS/2 trackball into Pd?
Try attaching the mouse to the computer and use [hid]. I know some people that do like that (with vvvv, not pd) with 5 mice on the PC.
Cheers, Charlot
That's a good idea but my computer doesn't have a PS/2 input.
On Tue, Aug 16, 2011 at 6:43 PM, Charles Goyard cg@fsck.fr wrote:
Hi,
Richie Cyngler wrote:
Now I'm thinking of hacking a PS/2 mouse/trackball into my Uno and I'd
like
to use it to control Pd data. I'm wondering if I'm going to be able to
get
the data from the PS/2 trackball into Pd?
Try attaching the mouse to the computer and use [hid]. I know some people that do like that (with vvvv, not pd) with 5 mice on the PC.
Cheers, Charlot
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PS/2 to USB adapter. http://www.amazon.com/Adesso-Adapter-connects-connectors-ADP-PU21/dp/B00008Z...
have fun. We use them in the labs, works fine.
On Tue, Aug 16, 2011 at 11:53 AM, Richie Cyngler glitchpop@gmail.comwrote:
That's a good idea but my computer doesn't have a PS/2 input.
On Tue, Aug 16, 2011 at 6:43 PM, Charles Goyard cg@fsck.fr wrote:
Hi,
Richie Cyngler wrote:
Now I'm thinking of hacking a PS/2 mouse/trackball into my Uno and I'd
like
to use it to control Pd data. I'm wondering if I'm going to be able to
get
the data from the PS/2 trackball into Pd?
Try attaching the mouse to the computer and use [hid]. I know some people that do like that (with vvvv, not pd) with 5 mice on the PC.
Cheers, Charlot
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Richie
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Richie Cyngler wrote:
That's a good idea but my computer doesn't have a PS/2 input.
Oh sorry, I had the PS/2 protocol in mind, not the PS/2 connector.
With the help of the library you pointed to, you can certainly get the mouse movements into pd via a [comport]. Just drop pduino/firmata. Coding with the arduino framework is really easy.
On 16/08/11 18:53, Richie Cyngler wrote:
That's a good idea but my computer doesn't have a PS/2 input.
[hid] is for usb, maybe [comport] would work with PS/2 if you used a PS/2 to usb connector??? or one of the older mouse objects? not sure, maybe the PS/2 to usb connector means that the trackball becomes a usb mouse?
If it does appear as a usb mouse then [hid] can certainly connect to it directly, which will probably be what you want.
You will need to do a few settings to your X setup, or your system, to make sure that the trackball does not become a mouse for the whole system.
Simon
On Aug 16, 2011, at 8:48 AM, Simon Wise wrote:
On 16/08/11 18:53, Richie Cyngler wrote:
That's a good idea but my computer doesn't have a PS/2 input.
[hid] is for usb, maybe [comport] would work with PS/2 if you used a
PS/2 to usb connector??? or one of the older mouse objects? not
sure, maybe the PS/2 to usb connector means that the trackball
becomes a usb mouse?If it does appear as a usb mouse then [hid] can certainly connect to
it directly, which will probably be what you want.You will need to do a few settings to your X setup, or your system,
to make sure that the trackball does not become a mouse for the
whole system.
On GNU/Linux, [hid] will work with PS/2 because the Linux input event
system is a single unified system for almost all techniques of HID
devices, including: PS/2, AT, USB HID, ADB, etc.
With the Arduino, if the data is simple, then it'd probably be easiest
to just send it and then receive it with [comport]. It would also be
not too hard to make a custom Firmata firmware using the PS/2 lib and
Firmata lib in an Arduino sketch. Check the Firmata examples.
.hc
"Free software means you control what your computer does. Non-free
software means someone else controls that, and to some extent controls
you." - Richard M. Stallman
Thanks for all the responses, I'm going to give it a try.
*On GNU/Linux, [hid] will work with PS/2 because the Linux input event system is a single unified system for almost all techniques of HID devices, including: PS/2, AT, USB HID, ADB, etc.*
What about OSX?
On Wed, Aug 17, 2011 at 2:09 AM, Hans-Christoph Steiner hans@at.or.atwrote:
On Aug 16, 2011, at 8:48 AM, Simon Wise wrote:
On 16/08/11 18:53, Richie Cyngler wrote:
That's a good idea but my computer doesn't have a PS/2 input.
[hid] is for usb, maybe [comport] would work with PS/2 if you used a PS/2 to usb connector??? or one of the older mouse objects? not sure, maybe the PS/2 to usb connector means that the trackball becomes a usb mouse?
If it does appear as a usb mouse then [hid] can certainly connect to it directly, which will probably be what you want.
You will need to do a few settings to your X setup, or your system, to make sure that the trackball does not become a mouse for the whole system.
On GNU/Linux, [hid] will work with PS/2 because the Linux input event system is a single unified system for almost all techniques of HID devices, including: PS/2, AT, USB HID, ADB, etc.
With the Arduino, if the data is simple, then it'd probably be easiest to just send it and then receive it with [comport]. It would also be not too hard to make a custom Firmata firmware using the PS/2 lib and Firmata lib in an Arduino sketch. Check the Firmata examples.
.hc
------------------------------**------------------------------**
"Free software means you control what your computer does. Non-free software means someone else controls that, and to some extent controls you." - Richard M. Stallman
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
On OSX, the native system supports USB and ADB, I don't know about PS/ 2, I never tried.
.hc
On Aug 17, 2011, at 7:04 PM, Richie Cyngler wrote:
Thanks for all the responses, I'm going to give it a try.
On GNU/Linux, [hid] will work with PS/2 because the Linux input
event system is a single unified system for almost all techniques of
HID devices, including: PS/2, AT, USB HID, ADB, etc.What about OSX?
On Wed, Aug 17, 2011 at 2:09 AM, Hans-Christoph Steiner
hans@at.or.at wrote:On Aug 16, 2011, at 8:48 AM, Simon Wise wrote:
On 16/08/11 18:53, Richie Cyngler wrote: That's a good idea but my computer doesn't have a PS/2 input.
[hid] is for usb, maybe [comport] would work with PS/2 if you used a
PS/2 to usb connector??? or one of the older mouse objects? not
sure, maybe the PS/2 to usb connector means that the trackball
becomes a usb mouse?If it does appear as a usb mouse then [hid] can certainly connect to
it directly, which will probably be what you want.You will need to do a few settings to your X setup, or your system,
to make sure that the trackball does not become a mouse for the
whole system.On GNU/Linux, [hid] will work with PS/2 because the Linux input
event system is a single unified system for almost all techniques of
HID devices, including: PS/2, AT, USB HID, ADB, etc.With the Arduino, if the data is simple, then it'd probably be
easiest to just send it and then receive it with [comport]. It
would also be not too hard to make a custom Firmata firmware using
the PS/2 lib and Firmata lib in an Arduino sketch. Check the
Firmata examples..hc
"Free software means you control what your computer does. Non-free
software means someone else controls that, and to some extent
controls you." - Richard M. Stallman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Richie
Terrorism is not an enemy. It cannot be defeated. It's a tactic.
It's about as sensible to say we declare war on night attacks and
expect we're going to win that war. We're not going to win the war on
terrorism. - retired U.S. Army general, William Odom