Page 1 of 1

startKit as a USB mouse

Posted: Mon Apr 04, 2016 4:23 pm
by rithesh
I hacked the explorer accelerometer example into my startKit: now I can read accelerometer values and can display it on xTimeComposer console (Thanks to the community for their valuable input). I would like to use this information to control the mouse pointer on screen. Any inputs?

Or, in other terms, how can I use my accelerometer as a mouse, via startKit?

Thanks,
Rithesh

Re: startKit as a USB mouse

Posted: Mon Apr 04, 2016 5:10 pm
by mon2
USB HID Mouse:

https://www.xmos.com/zh/support/appnotes/AN00129
The HID uses XMOS libraries to provide a simple mouse example running over high speed USB. The code used in the application note creates a device which supports the standard requests associated with this class of USB devices.

The application operates as a simple mouse which when running moves the mouse pointer on the host machine. This demonstrates the simple way in which PC peripheral devices can easily be deployed using an xCORE device.

Note: This application note provides a standard USB HID class device and as a result does not require drivers to run on Windows, Mac or Linux.

Re: startKit as a USB mouse

Posted: Mon Apr 04, 2016 6:49 pm
by rithesh
Are you sure I can use this class for the startKit? The application note says that it is designed to run on xCore-USB series devices, while startkit belongs to the analog series.

Re: startKit as a USB mouse

Posted: Mon Apr 04, 2016 7:13 pm
by Bianco
The USB interface on the startkit is dedicated to the XTAG programmer.
This kit is not suitable for USB development.

Re: startKit as a USB mouse

Posted: Mon Apr 04, 2016 7:13 pm
by Ross
Bianco wrote:The USB interface on the startkit is dedicated to the XTAG programmer.
This kit is not suitable for USB development.
^^^ this

Re: startKit as a USB mouse

Posted: Fri Apr 08, 2016 1:43 pm
by rithesh
Thank you all,
That was an eyeopener to me! So, what is the next easiest (cheapest) option for me? Do I use the USB sliceKit? OR, can I use a USB to i2c breakout to send control signals to the computer from the startKit?

With Regards,
Rithesh

Re: startKit as a USB mouse

Posted: Fri Apr 08, 2016 3:09 pm
by Ross
I think this is the cheapest board with USB available from xmos: https://www.xmos.com/support/boards?product=18230

Re: startKit as a USB mouse

Posted: Fri Apr 08, 2016 5:50 pm
by rithesh
The explorerKit! :) Thanks. Just placed an order. Hopefully, I am able to run the USB HID mouse example on it! :)

Re: startKit as a USB mouse

Posted: Fri Apr 08, 2016 6:14 pm
by mon2