startKit as a USB mouse Topic is solved

All technical discussions and projects around startKIT
User avatar
rithesh
Member
Posts: 11
Joined: Wed Jun 24, 2015 12:21 am

startKit as a USB mouse

Postby rithesh » Mon Apr 04, 2016 4:23 pm

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
View Solution
User avatar
mon2
XCore Legend
Posts: 1679
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Mon Apr 04, 2016 5:10 pm

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.
User avatar
rithesh
Member
Posts: 11
Joined: Wed Jun 24, 2015 12:21 am

Postby rithesh » Mon Apr 04, 2016 6:49 pm

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.
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Postby Bianco » Mon Apr 04, 2016 7:13 pm

The USB interface on the startkit is dedicated to the XTAG programmer.
This kit is not suitable for USB development.
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Mon Apr 04, 2016 7:13 pm

Bianco wrote:The USB interface on the startkit is dedicated to the XTAG programmer.
This kit is not suitable for USB development.
^^^ this
User avatar
rithesh
Member
Posts: 11
Joined: Wed Jun 24, 2015 12:21 am

Postby rithesh » Fri Apr 08, 2016 1:43 pm

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
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Fri Apr 08, 2016 3:09 pm

I think this is the cheapest board with USB available from xmos: https://www.xmos.com/support/boards?product=18230
User avatar
rithesh
Member
Posts: 11
Joined: Wed Jun 24, 2015 12:21 am

Postby rithesh » Fri Apr 08, 2016 5:50 pm

The explorerKit! :) Thanks. Just placed an order. Hopefully, I am able to run the USB HID mouse example on it! :)
User avatar
mon2
XCore Legend
Posts: 1679
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Apr 08, 2016 6:14 pm


Who is online

Users browsing this forum: No registered users and 2 guests