Log in

View Full Version : PIC USB in and USB Out



koossa
- 9th February 2013, 07:01
Good day

I've got an USB RFID scanner that connects to a PC as an HID (human interface device).
When you scan a chip a 10 digit number will be sent to the PC as text.

I want to cut the USB cable and connect my "own" pic circuit in the place where I have cut it.
The scanner must then send the data to my PIC, then I would do some "if... then..." statements and send the same string to the PC.
Any idea what PIC micro controller I will use or where do I start to develop such a circuit?
So the scanner side will only receive USB data and on the PC side only send USB data.

Jumper
- 9th February 2013, 08:39
Hi,

The main problem is to get the PIC as as a USB host for the RFid reader. There are solutions but probably you would be better off using either a newer PIC model that supports USBHOST or getting a FTDI chip to act as the host for you but having 2 USB could be difficult.

Probably the smartest and easiest way is to use a FTDI chip as host for the RFID and then the PIC usb port to connect the PIC to the PC as device.

Then you would get serial data or SPI from the FTDI chip things would be much easier.

koossa
- 9th February 2013, 09:00
Thank you very much Jumper!!!
Is there a possibility of using a USB to RS232 and on the other side RS232 to USB converters, or isn't it that simple?