Hello,
Can anyone help with getting a Parallax USB RFID talking to my Diecimila?
Thanks,
Jay
Hello,
Can anyone help with getting a Parallax USB RFID talking to my Diecimila?
Thanks,
Jay
Basically no. This reader has a USB output. It is a USB slave. You need to use a device with a USB host capability. The Arduino can't do this.
However, if you can get the schematics it should be possible to hack into the circuit before the signal gets converted into USB and then extract that at TTL level and inject it straight into a serial input of the Arduino.
Thanks, but I just figured this out - using Processing:
Serial.setDTR(true); // enable the RFID reader
then initialize a connection to the Arduino's serial port from Processing and send the bytes there.
// assuming the first item in the list is your Parallax RFID USB device
// and the third item in the list of serial devices is your Arduino
rfidPort = new Serial(this, Serial.list()[0], 2400);
arduinoPort = new Serial(this, Serial.list()[2], 2400);
while (rfidPort.available() > 0) {
int inByte = rfidPort.read();
arduinoPort.write(inByte);
}
That's cheating.
It means you always have to have your computer running and you can't make a stand alone system.
Agreed!
Until the new USB Host shield comes out
http://www.circuitsathome.com/mcu/arduino-usb-host-shield-build-log-part-2
Ooolala.
Jaypozo, can you post your full Arduino & Processing code for your USB workaround? I mistakenly ordered the Parallax USB instead of the serial device. With your approach, are you simply reading the RFID from another USB port?
Thanks.