Check out this thread ...
USB HID Joystick for Dummies (Squibcakes)
http://www.picbasic.co.uk/forum/showthread.php?t=11950
Check out this thread ...
USB HID Joystick for Dummies (Squibcakes)
http://www.picbasic.co.uk/forum/showthread.php?t=11950
DT
Yes, that thread is really helpful. I also saw a page a few days ago that may be what you're looking for as well. It explains how this guy converted an old analog joystick to USB. It was almost exactly as you described:
# 2-axis joystick
# Throttle
# 4 direction POV hat
# 6 buttons
Here's the link: http://www.helmpcb.com/Electronics/U...BJoystick.aspx
His code is written in mikroC, but he does a really decent job describing the descriptors used and how to modify them.
Last edited by bedmonson85; - 19th November 2010 at 16:23.
I have frequented this forum for the last year and I can't tell you how helpful it has been. I followed the USB CDC tutorial step by step when I created my board and interface to VB. As soon as I get a little free-time I will post the details of that project here.
Thanks very much for pointing me to those links they are exactly what i am looking for.
One last question....have any good suggestions for a bootloader? I will be using the 18F2550 and 4550 chip as I have a boatload of samples (Thank you Microchip!)
I have considered writing my own.....but as a famous actor once said...."A man's gotta know his limits" and I just don't have the knowledge about writing to program memory. I have dissected the Sparkfun version and have figured everything out to the programming of the memory. I'm a little GRAY in that area. If anyone is willing to help with the writing I'd gladly pitch in. It's actually very simple just need to understand the bits that confuse me.
Would be a great group project I think...hint...hint
Thanks,
Larry
About the bootloader; have you tried Microchip's HIDBootloader? I've found it to be fairly easy to use. Thats if you meant a USB bootloader.
Otherwise, I have been happy with the one thats part of Microcode Studio.
The Tiny bootloader is nice as well.
The above 2 are serial port based.
Regards,
Anand
Bookmarks