امروز در دنیایی هستیم که دزدی به میزان زیادی افزایش یافته است. از این رو نیاز به محافظت از همه چیز با استفاده از یک سیستم امنیتی وجود دارد. در اینجا یک پروژه کوچک در مورد سیستم امنیتی به نام ULTRA SECURITY SYSTEM وجود دارد که بسیار مفید خواهد بود.
این سیستم سه طرفه محافظت می شود و از سه حسگر تشکیل شده است که در صورت بروز هرگونه اقدامی برای نقض به کاربر هشدار می دهد. برای ساده تر، سه بخش این سیستم امنیتی فوق العاده را به صورت جداگانه توضیح داده ام. بیایید ببینیم که امنیت سه سطح چیست.
سطح LDR و لیزر در سیستم فوق امنیتی:
این اولین سطح از کشف سرقت در BANK است. حسگر LDR در داخل قفسه قرار می گیرد، لیزر روی درب قفسه متمرکز می شود، هنگامی که سارق سعی می کند سلول بانک را باز کند، نور LDR در قفسه منحرف می شود و سپس آردوینو به ماژول GSM فرمان می دهد، سپس پیام متنی "BROBBERY" می فرستد. ” به شماره همراه ثبت شده یا نزدیکترین کلانتری.
1.1) اجزای مورد استفاده:
- LDR
- آردوینو
- ماژول GSM
- ترانزیستورهای NPN BC 547
- دیودها (1N 4007)
- LED قرمز
- خازن (1 uF)
- تنظیم کننده ولتاژ (7805)
- مقاومت ها
- باتری (9 ولت)
مدار شماتیک:
کد:
- #include <SoftwareSerial.h>
- نرم افزار سریال mySerial ( 9 , 10 ) ; //(tx,rx) aurdino
- float a=A2;
- int b,c;
- تنظیم خالی ( )
- {
- mySerial. شروع ( 9600 ) ; // تنظیم نرخ باود ماژول GSM
- سریال. شروع ( 9600 ) ; // تنظیم نرخ باود مانیتور سریال
- تاخیر ( 100 ) ;
- }
- حلقه خالی ( )
- {
- b= analogRead ( a ) ;
- c= نقشه ( b, 0 , 1023 , 0 , 10 ) ;
- سریال. چاپ ( ج ) ;
- سریال. چاپ ( "/" ) ;
- تاخیر ( 1000 ) ;
- اگر ( ج< 3 )
- {
- mySerial. println ( "AT+CMGF=1" ) ; // ماژول GSM را در حالت متنی تنظیم می کند
- تاخیر ( 1000 ) ; // تاخیر 1000 میلی ثانیه یا 1 ثانیه
- mySerial. println ( "AT+CMGS=\"+918500911427\"\r" ) ;
- تاخیر ( 1000 ) ;
- سریال. چاپ ( "ROBERRY" ) ;
- mySerial. println ( "ROBERRY" ) ;
- تاخیر ( 100 ) ;
- mySerial. println ( ( char ) 26 ) ;// کد اسکی CTRL+Z
- تاخیر ( 1000 ) ;
- }
- }
بیشتر بخوانید: سیستم امنیتی سه سطح اولترا با استفاده از آردوینو
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
Today we are in a world where robbery has increased to a great extent. Hence there is a need to protect everything using a security system. Here is a small project on security system called ULTRA SECURITY SYSTEM which will be very useful.
This system is three way protected and consists of three sensors which will alert the user in case if any attempt to breach occurs. For simplification i have explained the three parts of this Ultra security system individually. Let’s see what is that three level security.
LDR AND LASER LEVEL IN ULTRA SECURITY SYSTEM:
This is the first level of detecting the robbery in BANK. LDR sensor is placed inside the locker the laser is focused on the door of the locker, When the robber tries to open the BANK cell the LDR in locker is light deviates and then the Arduino commands the GSM module then this sends a text message “ROBBERY” to the registered mobile number or the nearest police station.
1.1) COMPONENTS USED:
- LDR
- ARDUINO
- GSM Module
- NPN Transistors BC 547
- Diodes (1N 4007)
- Red LED
- Capacitors (1 uF)
- Voltage Regulator(7805)
- Resistors
- Batteries (9V)
SCHEMATIC CIRCUIT:
CODE:
- #include <SoftwareSerial.h>
- SoftwareSerial mySerial(9,10); //(tx,rx) aurdino
- float a=A2;
- int b,c;
- void setup()
- {
- mySerial.begin(9600); // Setting the baud rate of GSM Module
- Serial.begin(9600); // Setting the baud rate of Serial Monitor
- delay(100);
- }
- void loop()
- {
- b=analogRead(a);
- c=map(b,0,1023,0,10);
- Serial.print(c);
- Serial.print(“/”);
- delay(1000);
- if(c<3)
- {
- mySerial.println(“AT+CMGF=1”); //Sets the GSM Module in Text Mode
- delay(1000); // Delay of 1000 milli seconds or 1 second
- mySerial.println(“AT+CMGS=\”+918500911427\”\r”);
- delay(1000);
- Serial.print(“ROBERRY”);
- mySerial.println(“ROBERRY”);
- delay(100);
- mySerial.println((char)26);// ASCII code of CTRL+Z
- delay(1000);
- }
- }