Toshkent axborot texnologiyalari universiteti “Telekommunikatsiya” kafedrasi Individual loyiha Mavzu



Yüklə 262,22 Kb.
səhifə5/6
tarix19.12.2022
ölçüsü262,22 Kb.
#76346
1   2   3   4   5   6
individual loyiha Ulugʻbek.kkk

8-rasm.Proteusda ishlab chiqarilgan RFID ishtirok etish tizimining sxemasi

PAD2PAD
Bu maxsus bosilgan elektron platalarni loyihalash va buyurtma qilishni osonlashtiradi! Pad2Pad - bu sizga bitta yoki 100 000 PCB yasash imkoniyatini beradigan ajoyib xizmat. Pad2Pad siz yuklab olgan bepul dizayn dasturini taqdim etadi. Dastur platangizni tekshiradi va bir zumda naneni hisoblab chiqadi va siz qulay tarzda onlayn buyurtma berishingiz mumkin.


Dastur kodi
//include the RFID libs
#include
#include
//include the LCD lib
#include
//declear the reset and SDA pins of RFID
#define SS_PIN 10
#define RST_PIN 9
// Create MFRC522 instance.
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
//declear what LCD pins u are sending data
LiquidCrystal lcd(3, 2, 6, 4, 7, 5);
String pass1 = "CHIBUEZE";
String acct1 = "6A 2D 67 07";
String pass2 = "SMART";
String acct2 = "77 1F 73 63";
int balance1 = 1000;
int balance2 = 1000;
int rate = 200;
void setup()
{
Serial.begin(9600);
// Initiate SPI system
SPI.begin();
// Initiate MFRC522
mfrc522.PCD_Init();
//begin the LCD
lcd.begin(16, 4);
//state your actuator pins
pinMode(A0, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A2, OUTPUT);
//display a welcome note
lcd.setCursor(0, 0);
lcd.print("WELCOME CHIBUEZE ");
delay(4000);
lcd.setCursor(0, 0);
lcd.print(" system number ");
lcd.setCursor(0, 1);
lcd.print(" smart SYSTEM ");
delay(2000);
lcd.clear();
//mfrc522.PCD_Init(); // Init MFRC522
lcd.setCursor(0, 2);
lcd.print(" ");
lcd.setCursor(0, 3);
lcd.print(" ");
}
void unregisted(){
tone(A0, 1000);
delay(500);
noTone(A0);
delay(500);
tone(A0, 1000);
delay(500);
noTone(A0);
delay(500);
tone(A0, 1000);
delay(500);
noTone(A0);
delay(500);
lcd.setCursor(0, 0);
lcd.print(" UNREGISTERED ");
delay(2000);
lcd.setCursor(0, 1);
lcd.print("smart number");
for (int positionCounter = 0; positionCounter < 43; positionCounter++) {
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(150);
}
//lcd.clear();
}
void loop() {
//turn off the actuators
digitalWrite(A0, LOW);
analogWrite(A1, 0);
analogWrite(A2, 0);
lcd.setCursor(0, 0);
lcd.print("Bus Fare is #");
lcd.println(rate);
lcd.println(" ");
lcd.setCursor(0, 1);
lcd.print(" Swipe To Pay ");
// Look for new cards
if ( ! mfrc522.PICC_IsnewnumberPresent())
{
return;
}
// Select one of the number
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[i] < 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte[i], HEX);
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
//this is where u put the UID of the card that you want to give access
if (content.substring(1) == "6A 2D 67 07") {
analogWrite(A2, 255);
delay(250);
analogWrite(A2, 0);
delay(250);
analogWrite(A2, 255);
if (balance1 >= rate){
balance1 -= rate;
lcd.setCursor(0, 0);
lcd.print(" Hi CHIBUEZE ");
lcd.setCursor(0, 1);
lcd.print("___system O.K___ ");
}
else{
lcd.setCursor(0, 0);
lcd.print(" Sorry CHIBUEZE ");
lcd.setCursor(0, 1);
lcd.print("Insuficient Fund");
}
delay(4000);
lcd.setCursor(0, 1);
lcd.print("_number is#");
lcd.println(smart 1);
lcd.println(". .");
delay(4000);
return;
}
if (content.substring(1) == "77 1F 73 63") {
analogWrite(A2, 255);
delay(250);
analogWrite(A2, 0);
delay(250);
analogWrite(A2, 255);
if (balance2 >= rate){
balance2 -= rate;
lcd.setCursor(0, 0);
lcd.print(" Hi SMART ");
lcd.setCursor(0, 1);
lcd.print("___system O.K___ ");
}
else{
lcd.setCursor(0, 0);
lcd.print(" Sorry SMART ");
lcd.setCursor(0, 1);
lcd.print("Insuficient Fund");
}
delay(4000);
lcd.setCursor(0, 1);
lcd.print("_Balance is #");
lcd.println(balance2);
lcd.println(". .");
delay(4000);
return;
}
else{
lcd.clear();
analogWrite(A1, 255);
delay(250);
analogWrite(A1, 0);
delay(250);
analogWrite(A1, 255);
unregisted();
}
lcd.clear();
}

XULOSA:

RFID texnologiyasi rivojlanib borar ekan, yanada murakkab ilovalar RFID-ning ma'lumotlarni qabul qilish, saqlash va masofaviy qabul qilish manbasiga yuborish qobiliyatidan foydalanadi. RFID-ning ko'p qirraliligi talabalarning kurslarga davom etishini hisobga olishning funktsional va avtomatik tizimini joriy qilishda ishlatilishi mumkin, bu talabalarga ma'ruza zallari kirish qismida joylashgan RFID o'quvchi orqali o'z ID kartalarini surish yoki ko'chirish orqali oddiygina davomatni to'ldirishga imkon beradi. fakultetimizda fbydalanishning muvaffaqiyati va maqbulligi. Bunday RFID-ga asoslangan davomat tizimi talabalarning sinfda ma'ruza davomatini monitoring qilish paradigmasini o'zgartirishi va maktabda talabalarning davomatini olishning yangi, aniq va kamroq noqulay usulini taqdim etishi mumkin. Ushbu loyiha har qanday institutga o'z ma'lumotlarini boshqarishda yordam beradi va buni ba'zi yangi imkoniyatlar va komponentlarni qo'shish orqali yaxshilash mumkin, mas al an, siz GSM qo'shishingiz va talabaning ota-onasiga har safar davomat kartasi skanerlanganda SMS yuborish mumkin va siz qo'shishingiz mumkin boshqa ko'p narsalarni. Karta skanerlanganda klaviaturani qo'shish va parol so'rashiz mumkin va har bir talaba uchun alohida oynalar qo'shishingiz va ularga ushbu oynani ko'rishga ruxsat berishingiz mumkin. Yaxshiroq taqdimot qilish uchun natijalar yoki ma’lumotlarni LCD displeyda ko‘rsatishingiz mumkin.





Yüklə 262,22 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin