Hi!
Sorry for late reply!
Figured it out (I Think).
I tried both of your solutions without luck... The same problem both times.
What i did was :
// Making an INT that controls the power //
int (Power, 8);
// Making the int an Output to control the power HIGH LOW //
void Setup()
pinMode (Power, OUTPUT);
// Turning the power on so the rfid can read //
void loop()
{
digitalWrite(Power, HIGH);
String content = "";
while (RFID.available())
{
b = RFID.read();
if (b == 0x02) // Start byte
{
idx = 0;
RFIDstart = true; // Rfid starts when reading the right byte, gets the info needed, and can be turned off //
digitalWrite(Power, LOW); // Now the power is off and the rfid cant read anymore //
}
myServo.write(180);
delay(600000);
digitalWrite(Power, HIGH); // Now the power is back on and the rfid can read once more and repeat //
Im new in coding, so please give me a feedback if this is the wrong thing to do