SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By x6tus
#195450
Hi all, first post on here!

I have the SparkFun RFID USB Reader board with UD-12LA RFID unit. I am happily reading the card tags using C# .NET and the serial port object.

I want to be able to implement / fake presence detection which I believe I can do by resetting the card via the reset pin for 150ms I believe. I'm also not sure if the reset pin is 13 or 2.

The arduino code seems to be something like this:
Code: Select all
int RFIDResetPin = 13;     

void resetReader() {
 digitalWrite(RFIDResetPin, LOW);
 digitalWrite(RFIDResetPin, HIGH);
 delay(150);
}
But how I send this via C# using the serial port object is a bit of a mystery. Can anyone help?

Thanks,
Gareth.