This shows you the differences between two versions of the page.
pm:prj2023:avaduva:safebox [2023/05/29 21:38] alexia.marinescu [Bibliografie/Resurse] |
pm:prj2023:avaduva:safebox [2023/05/29 21:46] (current) alexia.marinescu [Concluzii] |
||
---|---|---|---|
Line 69: | Line 69: | ||
// C++ code | // C++ code | ||
// | // | ||
+ | |||
#include <SPI.h> | #include <SPI.h> | ||
+ | |||
#include <Servo.h> | #include <Servo.h> | ||
+ | |||
#include <Keypad.h> | #include <Keypad.h> | ||
+ | |||
#include <MFRC522.h> | #include <MFRC522.h> | ||
+ | |||
#define SERVO_PIN 2 | #define SERVO_PIN 2 | ||
+ | |||
#define LED_GREEN_PIN A3 | #define LED_GREEN_PIN A3 | ||
+ | |||
#define LED_RED_PIN A4 | #define LED_RED_PIN A4 | ||
+ | |||
#define BUZZER_PIN A5 | #define BUZZER_PIN A5 | ||
+ | |||
#define SDA_PIN 10 | #define SDA_PIN 10 | ||
+ | |||
#define RST_PIN 9 | #define RST_PIN 9 | ||
+ | |||
#define WAIT 1000 | #define WAIT 1000 | ||
+ | |||
#define WARNING_BUZZ_INTERVAL 700 | #define WARNING_BUZZ_INTERVAL 700 | ||
+ | |||
#define WARNING_TIMEOUT 10000 | #define WARNING_TIMEOUT 10000 | ||
+ | |||
#define MAX_PASSWD_LENGTH 64 | #define MAX_PASSWD_LENGTH 64 | ||
+ | |||
Servo servo; | Servo servo; | ||
+ | |||
const byte ROW_NUM = 4; //four rows | const byte ROW_NUM = 4; //four rows | ||
+ | |||
const byte COLUMN_NUM = 3; //3 columns | const byte COLUMN_NUM = 3; //3 columns | ||
+ | |||
char keys[ROW_NUM][COLUMN_NUM] = { | char keys[ROW_NUM][COLUMN_NUM] = { | ||
{ '1', '2', '3' }, | { '1', '2', '3' }, | ||
Line 255: | Line 273: | ||
<note tip> | <note tip> | ||
- | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | + | Am reusit realizarea unui seif conform descrierii. |
</note> | </note> | ||
===== Concluzii ===== | ===== Concluzii ===== | ||
+ | <note tip> | ||
+ | Proiectul a avut un rol benefic în dezvoltarea competențelor atât în programarea Arduino, cât și în implementarea componentelor hardware. | ||
+ | </note> | ||
===== Download ===== | ===== Download ===== | ||