This is a RFID based attendance system. The current program is only for two users but can be easily scaled for more users. Apart from FRDM-K64F board, we have MFRC522, Nokia 5110 LCD and SD card as external hardware. Each time a legitimate card is flashed the name of the person will be displayed on the LCD and his information will be stored in SD card if it's already not there. I have used existing libraries for all the harware. Here is the list. MFRC522 - By Martin Olejar SDFileSystem - By Andrew Lindsay NOKIA_5110 - By Chris Yan.
Dependencies: MFRC522 NOKIA_5110 SDFileSystem mbed
Fork of FTF2014_lab4 by
Diff: main.cpp
- Revision:
- 6:bc2ca526022f
- Parent:
- 5:9f7e1200059e
- Child:
- 7:caeacf521320
--- a/main.cpp Sat May 02 20:52:44 2015 +0000 +++ b/main.cpp Sat May 02 21:42:05 2015 +0000 @@ -104,14 +104,14 @@ else if (flagAbi==0) { printf("\nWriting data to the sd card \n"); - fp = fopen("/sd/attendance.txt", "rw"); + fp = fopen("/sd/attendance.txt", "a+"); if (fp == NULL) { pc.printf("Unable to write the file \n"); } else { - while(!feof(fp)) {}; + // while(!feof(fp)) {}; fprintf(fp, "\nAbhishek PRESENT \n"); fclose(fp); } @@ -130,14 +130,14 @@ else if (flagSam==0) { printf("\nWriting data to the sd card \n"); - fp = fopen("/sd/attendance.txt", "w"); + fp = fopen("/sd/attendance.txt", "a+"); if (fp == NULL) { pc.printf("Unable to write the file \n"); } else { - while(!feof(fp)) {}; + // while(!feof(fp)) {}; fprintf(fp, "\nSAM PRESENT \n"); fclose(fp); }