USB HID Joystick for Dummies


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default USB HID Joystick for Dummies

    Hi Guys,

    Want to make a USB HID (Human Interface Device) joystick? It's so easy!

    Attached is my dummies guide that will help you get the killer joystick you've always wanted.

    Cheers
    Squib
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2009
    Posts
    737

    Default

    Thanks. I'll try it next week.

  3. #3
    Join Date
    Jun 2009
    Posts
    3

    Default descriptor tool?

    Hi thanks for this info squibcakes!

    i think this is exactly what I need to move forward.
    I have EasyHid and have created the generic files but now need to understand the descriptor files.

    one question...don't know where to find 'Descriptor tool'. is it a text editor? where do I find it?

    cheers.
    gogsmack01

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    ...don't know where to find 'Descriptor tool'.
    Ahhh yes, one of my favorite programs.

    DT.exe

    Right side of the page ...
    http://www.usb.org/developers/hidpage/

    DT

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637

    Default

    Gogsmack01,

    Writing descriptors is a headacke. I have managed to modify a few descriptors to do what I want, but always after many hours of banging my head against the walls.

    Robert

  6. #6
    Join Date
    Sep 2009
    Posts
    737

    Default

    I can't getg it work. can someone upload descriptor file?
    Thanks

  7. #7
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637

    Default

    Pedja089,

    Look at the link that Darrel provided above. In there you will find a document about HID descriptors. In one of the appendixes at the end of the document they have descriptors for a mouse, a keyboard, and a joystick. That should help you.

    Get one of the sample descriptors that come with PBP and modify it accordingly. It should work.

    Robert

  8. #8
    Join Date
    Apr 2014
    Posts
    21

    Default Re: USB HID Joystick for Dummies

    Hello gentlemen, im new to the forum and dont really know much about usb or PBP3 so sorry for the may-be dumb question since i use HITECH-C

    i did all off the dummies guide stuff but in the end, it asks me to compile, compile where? in MPLAB?

    ok so i compiled on mplab using the PBP3 compiler on the 15 trial version and it gives me the following:

    ERROR: Macro USBINIT? not found in macro file.
    ERROR: Macro USBSERVICE? not found in macro file.
    ERROR: Macro USBIN?CBBL not found in macro file.
    ERROR: Macro USBOUT?CBBL not found in macro file.Halting build on first failure as requested.
    BUILD FAILED: Tue Apr 22 22:28:08 2014


    apart from this, i would really like to know where do i configure my PIC18f2550??

    do i make a .c file?? (i.e MY_JOYSTICK.c)
    and work from there??
    how do i prevent/correct this compile errors??

    also, where can i find the circuit diagram for this "dummie" joystick, thanks a bunch guys and see you later

  9. #9
    Join Date
    Apr 2014
    Posts
    21

    Default Re: USB HID Joystick for Dummies

    sorry this is what im getting now

    Executing: "C:\Program Files (x86)\PBP3\PBPX.EXE" -ampasmwin -k# -p18F2550 "C:\Users\Aramburo\Desktop\Nueva carpeta\HUB.pbp"
    PICBASIC PRO(TM) Compiler 3.0.7.1, (c) 1998, 2013 microEngineering Labs, Inc.
    All Rights Reserved.
    Trial version. 15 days left.
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 761 : Symbol not previously defined (USBDeviceInit)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 762 : Symbol not previously defined (USBDeviceInit)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 761 : Symbol not previously defined (USBDeviceTasks)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 762 : Symbol not previously defined (USBDeviceTasks)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 761 : Symbol not previously defined (GetUSB)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 762 : Symbol not previously defined (GetUSB)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 761 : Symbol not previously defined (USBDeviceTasks)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 762 : Symbol not previously defined (USBDeviceTasks)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 761 : Symbol not previously defined (PutUSB)
    Error[113] C:\PROGRAM FILES (X86)\PBP3\PBPPIC18.LIB 762 : Symbol not previously defined (PutUSB)
    Halting build on first failure as requested.
    BUILD FAILED: Tue Apr 22 22:54:59 2014

  10. #10
    Join Date
    Apr 2014
    Posts
    21

    Default Re: USB HID Joystick for Dummies

    i cant find this file anywhere, where was it generated???



    hid_desc.bas

  11. #11
    Join Date
    Apr 2014
    Posts
    21

    Default Re: USB HID Joystick for Dummies

    (ignore this post please, posted on the worng thread)

Similar Threads

  1. USB hid maker help please.
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd April 2013, 14:49
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. USB MSD with HID code ?
    By Chris Barron in forum USB
    Replies: 1
    Last Post: - 11th November 2009, 17:33
  4. i cant get 18f2550 work as HID
    By Ahmadabuomar in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 13th October 2009, 16:39
  5. Replies: 0
    Last Post: - 6th March 2009, 07:52

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts