Joystick to Microcontroller

Discussion in 'Embedded Systems and Microcontrollers' started by imzack, Mar 8, 2013.

  1. imzack

    Thread Starter Active Member

    Nov 3, 2010
    50
    0
    Hello,

    I need to input data from a joystick to my computer.

    I want to do this with a C program and have my silicon labs board input the data and then do stuff with it...

    My main problem is that I don't know how to retrieve info from computer peripherals.

    Any suggestions?

    Thanks
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Which peripheral?

    I usually use a serial port (usually virtual), that can be accessed by any number of programs. I usually do initial testing with a terminal program, TeraTERM, and then write a custom WPF or WinForms application to interface however I want.
     
  3. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,364
    Most computers today have eliminated all user ports and replaced them with USB.
    The STM32F4Discovery I believe has an example of a joystick interface via USB.
     
  4. BillO

    Well-Known Member

    Nov 24, 2008
    985
    136
    What Silicon Labs board?

    Are you talking about a CP2102 or CP2103 USB bridge?
     
Loading...