arduino project - rfid to display an image

we have an RFID module reader. we want to scan a tag and once scanned, would display an image. Need help with the arduino code and processing code.

we managed to detect an RFID tag using this arduino code and would like a step by step tutorial on how to display an image once scanned.

#include <SPI.h>
#include <RFID.h>

//D10:pin of card reader SDA. D9:pin of card reader RST
RFID rfid(10, 9);
unsigned char status;
unsigned char str[MAX_LEN]; //MAX_LEN is 16: size of the array
;
void setup()
{
Serial.begin(9600);
SPI.begin();
rfid.init(); //initialization
Serial.println("Please put the card to the induction area...");
}

void loop()
{
//Search card, return card types
if (rfid.findCard(PICC_REQIDL, str) == MI_OK) {
Serial.println("Find the card!");
// Show card type
ShowCardType(str);
//Anti-collision detection, read card serial number
if (rfid.anticoll(str) == MI_OK) {

Serial.print("The card's number is : ");
//Display card serial number
for (int i = 0; i < 4; i++) {
Serial.print(0x0F & (str >> 4), HEX);
Serial.print(0x0F & str, HEX);
}
Serial.println("");
}
//card selection (lock card to prevent redundant read, removing the line will make the sketch read cards continually)
rfid.selectTag(str);
}
rfid.halt(); // command the card to enter sleeping state
}
void ShowCardType(unsigned char * type)
{
Serial.print("Card type: ");
if (type[0] == 0x04 && type[1] == 0x00)
Serial.println("MFOne-S50");
else if (type[0] == 0x02 && type[1] == 0x00)
Serial.println("MFOne-S70");
else if (type[0] == 0x44 && type[1] == 0x00)
Serial.println("MF-UltraLight");
else if (type[0] == 0x08 && type[1] == 0x00)
Serial.println("MF-Pro");
else if (type[0] == 0x44 && type[1] == 0x03)
Serial.println("MF Desire");
else
Serial.println("Unknown");
}

What Arduino?
Image data stored how?
Image displayed where?
Image selected how?

It seems you copy/paste the code from your cross post which got mangled as you didn't use code tags - resulting in incorrect code here: you can't do a bit shift operation on an array...

the is arduino uno.

the image data is stored on the processing data folder of the processing sketch.

we want the image displayed on the processing ide.

each image is associated with a tag. each tag should trigger an individual image when scanned.

here is the arduino code we are using. I am not sure about the bit shift operation you are talking about but the code runs and detects our tag.

#include <SPI.h>
#include <MFRC522.h>

#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.

void setup()
{
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
Serial.println("Approximate your card to the reader...");
Serial.println();

}
void loop()
{
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
//Show UID on serial monitor
Serial.print("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
Serial.print(mfrc522.uid.uidByte < 0x10 ? " 0" : " ");
_ Serial.print(mfrc522.uid.uidByte*, HEX);_
_ content.concat(String(mfrc522.uid.uidByte < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte, HEX));
}
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
if (content.substring(1) == "BD 31 15 2B") //change here the UID of the card/cards that you want to give access*

* {
Serial.println("Authorized access");
Serial.println();
delay(3000);
}*_

else {
* Serial.println(" Access denied");*
* delay(3000);*
* }*
}

use code tags please

and where is your processing code?

Mdrou001:
here is the arduino code we are using. I am not sure about the bit shift operation you are talking about but the code runs and detects our tag.

This part of your code as posted in the OP won't work:

      for (int i = 0; i < 4; i++) {
        Serial.print(0x0F & (str >> 4), HEX);
        Serial.print(0x0F & str, HEX);
      }

Now you also know why you must use code tags.

@Mdrou001 this section of the forum is exclusively for people who are offering to pay for assistance with their project. Are you willing to pay? If not, then it's a cross post of your other topic:
https://forum.arduino.cc/index.php?topic=638710