Created Thu, 10 Apr 2014 18:08:00 +0000 by daddym85
Thu, 10 Apr 2014 18:08:00 +0000
Hi there, I'm a newbie. I plan to have a chipkit plugged into my raspberry. I'd like that this chipkit can emulate a HID mouse when it is connected to a computer via the usb cable. How can I do it? Can I work with the MPIDE installed on the raspberry?
Thanks, Davide
Thu, 10 Apr 2014 20:24:18 +0000
Which chipKIT are you planning on using? Some potentially have the ability, but others don't.
Also there is the problem of software... chipKIT doesn't currently have nice simple USB integration like, say, the Arduino Leonardo with it's Mouse object. Digilent have a collection of good USB libraries for the chipKIT boards (that have proper USB), including a USB HID driver, but it doesn't (out of the box) do mouse HID. If you're good at playing with USB descriptors you might be able to get it to act as a mouse, but it would be tough, and as you say you're a newbie I'd say no chance ;)
Proper HID (keyboard and mouse) integration into the core USB system is something I looked at a bit back, but gave up and started punching myself in the face as it was more fun.
TBH, much as I love the chipKIT boards, I'd say use an Arduino Leonardo - it'll be simpler (though less powerful) in the long run.
Fri, 11 Apr 2014 06:34:27 +0000
Hi, I plan to use the chipKIT Pi http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/microchip-chipkit/chipkit_pi. I'd would like this board can simulate a HID mouse and process data from the raspberry at the same time. I'm ready to learn how the PIC32 can be programmed to achieve this. I know that an Arduino Leonardo can simulate a mouse properly. My issues relate about how can I connect an arduino to the rasp without having to rely on the usb connection.
Thanks, Davide
Fri, 11 Apr 2014 09:07:03 +0000
Good choice of board.
Here's a radical idea... Why not go all retro and emulate an old fashioned serial mouse? IIRC they run at 1200 baud, 7-bit, and you could directly talk using /dev/ttyAMA0 as your mouse device. Take a bit more setting up in X than a USB mouse, but doable.
There's some data here about the protocol: [url]http://paulbourke.net/dataformats/serialmouse/[/url]
You'd have to do a bit of work getting the PIC32 into 7-bit mode though.
Fri, 19 Sep 2014 00:03:03 +0000
We at PONTECH got some quick and dirty USB mouse code working here:
https://github.com/pontech/MouseHID
Its tested on a Quick240, but should work without a hitch on a Max32 with a network shield. I suspect it will also work on a Fubarino SD and maybe even a Fubarino Mini.
Jacob