+ Reply to Thread
Results 1 to 2 of 2

Thread: reading usb data recieved from a joystick from the PIC18F4550 microcontroller

  1. #1
    sdil@yahoo.com Newbie
    Join Date
    Jun 2009
    Posts
    1

    Arrow reading usb data recieved from a joystick from the PIC18F4550 microcontroller

    Hi, I'm a university student and I'm working on an embeded project. In a part of my project, I need to read the usb packets emitted by a USB joystick through a pic microcontroller. I used the PIC18F4550 and tried using the HID functions in the MICROC librarry. But the HID_read() function does not show any data recieved from the joystick. I configured the descriptor properly as well. I'm not sure as to what the error is. All the similar projects that i found in the net were projects that made a microcontroller function as a joystick or
    usb device. But what i want to do is to read the usb packets(data recieved) from a usb joystick from the microcontroller. I'm not sure if i can do this from the way that i tried.

    Can some one help me? Where do i need to correct myself? Or is there another way of doin this? Please help.


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,791

    Default

    Generally PIC's include USB as slave not as host, you need to implement a USB host.

    Apparently there are some host examples, perhaps on a specific PIC, try looking deeper at MicroChip.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

+ Reply to Thread

Similar Threads

  1. Reading a usb device through microcontroller
    By Baksh in forum Micro Controllers
    Replies: 4
    Latest: 21st May 2009, 10:30 PM
  2. Sending Data to PC using PIC18F4550 through USB
    By aforadi in forum Micro Controllers
    Replies: 17
    Latest: 15th April 2009, 07:30 PM
  3. about PIC18f4550 microcontroller
    By control ENG. in forum Micro Controllers
    Replies: 0
    Latest: 5th December 2008, 07:30 AM
  4. Help with JoyStick data
    By ljcox in forum Datasheet/Parts Requests
    Replies: 0
    Latest: 21st January 2007, 01:32 AM
  5. 8051 microcontroller reading data from serial port
    By godatguitar in forum 8051/8951
    Replies: 11
    Latest: 17th February 2004, 08:04 PM

Tags for this Thread