Author Topic: USB Driver  (Read 2963 times)

0 Members and 1 Guest are viewing this topic.

Offline PenthTopic starter

  • Full Member
  • ***
  • Posts: 51
  • Helpful? 0
USB Driver
« on: August 22, 2008, 09:34:56 AM »
Has anyone written a USB device driver before?  If so, what languages/development tools did you use?  I like the idea of phidgets but I'd like to try my hand at making my own.

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: USB Driver
« Reply #1 on: August 22, 2008, 09:36:59 AM »
What I would do is make a USB to RS-232 to TTL converter and then from there it should be pretty easy.
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: USB Driver
« Reply #2 on: August 22, 2008, 12:14:20 PM »
Quote
Has anyone written a USB device driver before?
I know someone who has attempted it because nothing on the market could do what he needed. He said it was a huge pain and had tons of things you had to account for. He hasn't finished it since I spoke to him a month ago . . .

You'd do much better just by spending $4 on a USB chip and free drivers . . . thats what I did for my Axon.

Offline PenthTopic starter

  • Full Member
  • ***
  • Posts: 51
  • Helpful? 0
Re: USB Driver
« Reply #3 on: August 22, 2008, 12:31:10 PM »
I know someone who has attempted it because nothing on the market could do what he needed. He said it was a huge pain and had tons of things you had to account for. He hasn't finished it since I spoke to him a month ago . . .

You'd do much better just by spending $4 on a USB chip and free drivers . . . thats what I did for my Axon.

That answers my questions then. I wasn't sure what the cost was for something like that, but if its that easy I won't need to look that far.

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: USB Driver
« Reply #4 on: August 22, 2008, 05:09:54 PM »
Well, you can definitely get/write firmware to run for usb 1.0 (1.2MBps) on an atmega and use usblib on the host side to communicate with your chip. Totally doable but not worth the pain.

Google for obdev usb, igor cesky usb or lady ada usb programmer.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline Iron Man

  • Full Member
  • ***
  • Posts: 74
  • Helpful? 0
Re: USB Driver
« Reply #5 on: August 25, 2008, 10:52:27 AM »
if you use a pic they have a code generator that will make the driver for you :)

Offline PenthTopic starter

  • Full Member
  • ***
  • Posts: 51
  • Helpful? 0
Re: USB Driver
« Reply #6 on: August 25, 2008, 10:55:40 AM »
if you use a pic they have a code generator that will make the driver for you :)

is Pic  assembly or basic or can it handle C?

Offline arixrobotics

  • Full Member
  • ***
  • Posts: 119
  • Helpful? 3
    • TalasTronics WCIT KL2008 Fund Raising
Re: USB Driver
« Reply #7 on: August 28, 2008, 04:20:38 AM »
I'm thinking, if you use FTDI chips in your USB device, will the computer auto detect the device when it is plugged in? Or do you need to select the port?

Offline Iron Man

  • Full Member
  • ***
  • Posts: 74
  • Helpful? 0
Re: USB Driver
« Reply #8 on: August 28, 2008, 07:41:06 PM »
pic will do either c or assembly

there's an FTDI chip with a pic16 on it that does usb connection.

 


Get Your Ad Here