Joystick info

Ive been scavenging the net all morning for a way to get joystick readings from my fez cerberus so I can use it to control a project of mine. However I cant seem to find a way to get the info to a windows form application without creating 2 seperate solutions and a sending the info via http. I’ve only worked with C# for a few weeks so Im not too familiar with all the workings, but is there a way to get the info from this joystick within a single solution?

Its probably a waste of the whole cerberus hardware but the kit I got only includes the joystick and led, figured I’d combine it with other hardware.

Hi Metalith,

Welcome to the Community.

What exactly are you trying to do? Are you trying to connect the Cerberus to a PC to send joystick data to PC program?

Yes I am, Im probably just missing something or overthinking things.

Oh and thanks for the quick reply and the welcome.

@ Metalith - You could send the joystick data via Uart (Serial Port).

So in visual studio you would have 1 solution with 2 Projects.

Project A would be the Cerberus reading the joystick and sending the vales via Uart.
Project B would be a Windows app reading a Com port getting the joystick values.

@ Metalith

Here is a link to help you further with your venture as Justin has suggested: http://wiki.tinyclr.com/index.php?title=Device_to_PC_Communication.

Alas, it is usb-serial and I have only a Usb client SP module.

That page was very very helpful though. Im not sure if this would work or not but would probably be best as a last but there appears to be software to convert a usb device into a virtual com port. No idea if thats worth looking into but thanks for the help so far.

@ Metalith - What you want is one of these FTDI Serial TTL-232 USB Cable : ID 70 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Will allow you to connect the Cerb via Uart (com) into one of your PC’s USB port

GHI provides a module that converts Micro Framework UART (serial) to USB to make a virtual COM port on the PC: http://www.ghielectronics.com/catalog/product/287

1 Like

@ Aron - Even better :slight_smile:

Oh ok, so I didnt miss anything. I just have have to buy something else. Works for me then.

Thanks for the help. I’ll be sure to check out that module and get it when I get money. Really do appreciate an answer to the problem so fast :).

Why don’t you use a BlueTooth module? They’re cool, and most PC hardware has BT these days. Plus, no wires ! :slight_smile: http://www.tinyclr.com/codeshare/entry/446 is my minimal example so you can see.