It's much easier to debug and get it to work using a software serial library like newsoftserial, as (in the article) you cannot use the serial port at the same time as the usb serial (it is handy to have a serial session to the device for debug printouts and the like).
Comments
It's much easier to debug and get it to work using a software serial library like newsoftserial, as (in the article) you cannot use the serial port at the same time as the usb serial (it is handy to have a serial session to the device for debug printouts and the like).
http://arduiniana.org/libraries/newsoftserial/
You can still get debug serial working if you set it to 2400 baud.
Interesting, the rfid card I've worked with (I did a similar thing) only worked at 9600 baud I think.
Actually, I'm doing a follow up piece and this library makes it possible. Thanks!