I recently bought the arduino uno, a servo, the UART rfid reader, some tags, a few led's, and a buzzer. So far, I have managed to get the serial codes out of the two tags and that's about it. I know how everything should be wired but I just started coding and am having trouble. What I would like to happen is for the reader to flash green when it detects the right tag ( with a buzz) and red when it detects the wrong tag and I would like for there to be a switch to bypass the reader which can open it from the inside. (Have no idea where to start with coding)
What I would like to happen is for the reader to flash green when it detects the right tag ( with a buzz) and red when it detects the wrong tag
That is not going to happen. The RFID reader can tell the Arduino which tag was scanned. It is up to the Arduino to decide whether the tag was the "right" tag, and do something, or the "wrong" tag, and do something else.
PaulS- That is exactly what I want it to do, just didnt know how to phrase it. If it is the correct tag, it will turn green and buzz and if its not the arduino will turn on the red led.
This is what I plugged in so far (off seeeduino website)-
void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available())
{
while(Serial.available())
Serial.write(Serial.read());
}
}
The rfid codes are 7500737C3248 and 00783A0BD099. I hooked the servo to the digital 3 pin but now im stuck.