Ikuti aku terus ya, disini :

Rabu, 02 Juli 2014

Help Me For Program Of RFID And LCD

do you know, this is where my headache program to program a tool that I made on the Arduino. I include an additional device for RFID my lcd. and I hung up on this program. if any of you can fix it?

#include
#include
#include

#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
LiquidCrystal lcd(7, 6, 5, 4, 3, 2); // initialize the library with the numbers of the interface pins


void setup() {
Serial.begin(9600); // Initialize serial communications with the PC
SPI.begin(); // Init SPI bus
mfrc522.PCD_Init(); // Init MFRC522 card
Serial.println("Scan PICC to see UID and type...");
lcd.begin(16, 2); // set up the LCD's number of columns and rows:
lcd.print(""); // Print a message to the LCD.
}

void loop() {
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent()) {

return;
}
{
lcd.print("Nomor Kendaraan");
lcd.setCursor(0,1);
lcd.print("B 3793 KDR");

}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial()) {

return;
}

// Dump debug info about the card. PICC_HaltA() is automatically called.
mfrc522.PICC_DumpToSerial(&(mfrc522.uid));

}

help me for it, and then i say assalamualaikum ^_^

Tidak ada komentar:

Posting Komentar