I have a USB RFID reader that I made and I am wondering how to make a sketch that reads the data that it sends over USB. Can anyone help me?
LEGOanimal22:
I have a USB RFID reader that I made and I am wondering how to make a sketch that reads the data that it sends over USB. Can anyone help me?
Just make a sketch that send the data it reads over the USB connection.
That about covers the question, to the same level of detail that was supplied in the question.
What, exactly, is "a USB RFID reader you made"? What did you make it from? How does it hook up? To what does it hook up? Details, details! It's all in the details!
I made it from this: RFID Card Reader - Serial - Parallax and an IC chip that changes the color of two LED control boards based on the data of the RFID chip. Data + and - are connected to the TX and RX pins on an Uno board. What I'm asking is how to read the data off of an RFID chip read by the chip using a sketch.
I can't see a D+ and a D- on that product.
Just connect the SOUT to the RX pin, along with GND and VCC, set it to 2400 baud, and use Serial.read() to read the data.
LEGOanimal22:
I made it from this: RFID Card Reader - Serial - Parallax and an IC chip that changes the color of two LED control boards based on the data of the RFID chip. Data + and - are connected to the TX and RX pins on an Uno board. What I'm asking is how to read the data off of an RFID chip read by the chip using a sketch.
That link was not to the USB version of the reader
do you mean:-
That is what you implied in the initial post. If is then the answer is no, it is very difficult to read the output of a client USB device from an Arduino because you have to make it look like a host. This requires an advanced arduino like the Due or Yun.