Basic Stamp and USB
Archiver
Posts: 46,084
Basic Stamp and USB
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
Comments
I highly recommend USB Port Complete, by Jan Axelson, Lakeview Research·< www.lvr.com >.· Jan is a contributor on this list.
Dennis
Original Message
From: Scott Winn [noparse][[/noparse]mailto:scott.winn@mitchell.com]
Sent: Tuesday, January 16, 2001 2:59 PM
To: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] Basic Stamp and USB
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
You've got some serious engineering to do, in my opinion.
You can start learning about USB at www.usb.org (or www.usb.com, or something
like that). There you can find the current versions of the USB
specifications in all their complexity. But also look at Dallas
Semiconductor to see if they have a USB device you can use.
Tom O'Brien
Once the BS2Plus comes out, Dallas Semiconductor has a 1-wire to USB chip... maybe something for you to look into.
-Rob
Original Message
From: Scott Winn
To: basicstamps@egroups.com
Sent: Tuesday, January 16, 2001 5:58 PM
Subject: [noparse][[/noparse]basicstamps] Basic Stamp and USB
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
Hi:· Trymarch issue of Nuts 'N Volts Mag.· there several links there pertaing to USB port.. www.lvr.com/usb.htm·· and http://usbsimm.home.att.net· there are more links on these sites.· good luck, get overwhemed.. carl
Original Message
From: Scott Winn
To: basicstamps@egroups.com
Sent: Tuesday, January 16, 2001 3:58 PM
Subject: [noparse][[/noparse]basicstamps] Basic Stamp and USB
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
Have you looked at the PIC16C765/45.··It should be more than adequate to do the job.· PC to USB interface is ·really not all that hard.
-Marc Reinig
·
Original Message
From: Scott Winn [noparse][[/noparse]mailto:scott.winn@mitchell.com]
Sent: Tuesday, January 16, 2001 2:59 PM
To: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] Basic Stamp and USB
I searched the archives for information on USB and didn't find much, please excuse me if this has already been asked.· I am trying to create a USB servo controller device.· The servo control part is easy, but the USB portion has eluded me.· This device would use a basic stamp or similar PIC to control multiple servos based on commands coming from a PC's USB port.· A program on the PC would be able to send commands to the stamp through the USB port and control the servos.· I also need to aquire data from the stamp using the USB port.· Thanks!
>please excuse me if this has already been asked. I am trying to create a
>USB servo controller device.
As Marc said, the PIC16C75/45 should be able to this. The USB interface is
low speed, so the max guaranteed speed is 800 bytes/second.
If you write the firmware so the device complies with the requirements for
HID-class devices (HID=human interface device), applications can use the
HID drivers built into PCs and Macs to communicate with the device (so you
don't have to write a device driver). Windows applications use API calls
(ReadFile, WriteFIle, and others) to communicate with HIDs.
The only sample code I know of for the PICs is Microchip's mouse code. (If
anyone knows of additional code, I'd be interested in hearing about it!) A
mouse is also a HID-class device. To adapt the mouse code, you would need
to: (1) Revise the descriptors (data tables) to fit your application. (2)
Revise the code that sends the mouse data to the PC to instead send your
application's data. and (3) Add code that enables the chip to receive data
from the PC, using USB's Set_Report request.
I've done this with some of Cypress' chips, but not PICs (yet).
As for Stamps, the Stamp I and II aren't powerful enough to handle USB
communications. The Scenix Stamp might be, but I haven't looked into it in
detail.
For more info about USB developing, HIDs, etc., see my USB page here:
http://www.lvr.com/usb.htm
Jan Axelson
http://www.lvr.com
jan@l...