Dear all,
Please , I need help in interfacing a USB port for simple project , to do the following : the interface should be connected to PC USB port and receive an order to switch a relay.
what basic component should I have ?
How the XP OS should treat this driver ,and how to build a driver ?
thank you recursos , I can substite the led into a rely with suitable current, but I think that the subject still not clear . do you have more resources especially in building the driver...
As pat_fr said you can use ftdi chips or modules.
It has a builtin driver that comes with a virtual com port that you can simply write a program to work with virtual comport.
On the other hand you will need to use a micro with that module.
For furture info reffer to ftdi site!
Hi Salah,
You can do without building a driver, instead using the native XP's drivers.
USB's CDC drivers are already an integral part of XP/W2K. To help bind them with a new device (in this case, the programmed PIC), and create a port-specific "property page" in the Windows Hardware Manager, a small plain-text file (with extension ".inf") is required.
In Tqq's project, that file is "mchpcdc.inf".
Hi Salah
This people here:
**broken link removed**
have very good documentation covering USB drivers etc.
Have a look at wdpci_man.pdf, perhaps it will help. Rec
CY7C68013 from Cypress is a good solution for USB interface. It has 8051 uC built in whic makes it easy to control any external devices like relay in your case.