Grumpy_Mike:
In which case it could work in one of two ways. Having that pin low provides continuous readings or pulsing the pin low repeats the reading. Connecting a digital output pin directly to this pin should be no problem.
Ive connected a jumper from the pin 7 of the reader to the digital pin 7 of the arduino.
For the coding part i tried it as follows, but this returns when the card comes into range it reads twice sometimes and once sometimes. Have I placed the LOW and HIGH digitalWrite in the wrong loops etc?
Seems promising though!
For the added code:
void setup()
{
Serial.begin(9600);
Rfid.begin(9600);
pinMode(7, INPUT);
.
.
.
}
void loop()
{
digitalWrite(7, HIGH);
unsigned long currentTime = millis();
if (currentTime - lastTime >= timeInterval)
{
lastTime = currentTime;
Serial.println("Time and Code");
Serial.println(lastTime/1000);
if(Rfid.available() > 0 )
{
while(Rfid.available() > 0 )
{
int r = Rfid.read();
Serial.print(r, DEC);
}
Serial.println();
digitalWrite(7, LOW);
}
}