Arduino RFID and Processing Connection

Hello,

Your Processing Code is flashing with this simple test code from Arduino:

void setup() 
  {
  Serial.begin(9600);
  delay(1000);
  }
  
void loop() 
  {
  Serial.println("7320574163");
  delay(1000);
  Serial.println("21110723902");
  delay(1000);
  }

To get you started:

Most of those Serial.print() statements are intended for the Arduino serial monitor for development; only send the required data to Processing for processing.

Do not use the Arduino serial monitor or plotter when making a serial connection to Processing or other software\devices when using a single COM port.

Edited comment about delay()
I always add a delay(1000) at end of setup() in Processing to allow the Arduino to reset before receiving data. Watch the lights on the Arduino to get familiar with these.
This may not apply to this example.

There are many serial examples in this forum; start simple and build on that.

Reference:

:)

3 Likes