Password circuit breaker project pdf
A fascinating project!
A password circuit breaker is a device that can detect and interrupt a circuit when a password is not entered correctly. Here's a PDF guide to help you build one:
Password Circuit Breaker Project PDF
Introduction
In this project, we will build a simple password circuit breaker using an Arduino board, a relay module, and a few other components. The circuit breaker will be triggered when the correct password is not entered within a certain time limit.
Components
- Arduino Uno board
- Relay module (5V)
- 10K ohm resistor
- 1K ohm resistor
- 220 ohm resistor
- 1N4007 diode
- 10uF capacitor
- Breadboard
- Jumper wires
- Power supply (5V)
Circuit Diagram
Here is the circuit diagram:
+---------------+
| Arduino Uno |
+---------------+
|
| Digital Pin 2
v
+---------------+
| Relay Module |
+---------------+
|
| Normally Open (NO)
v
+---------------+
| Load Circuit |
+---------------+
|
| Power Supply (5V)
v
+---------------+
| 10K ohm Resistor |
+---------------+
|
| 1K ohm Resistor
v
+---------------+
| 220 ohm Resistor |
+---------------+
|
| 1N4007 Diode
v
+---------------+
| 10uF Capacitor |
+---------------+
How it Works
- The Arduino board is connected to the relay module through digital pin 2.
- When the correct password is entered, the Arduino board sends a high signal to the relay module, which triggers the normally open (NO) contact.
- The NO contact connects the load circuit to the power supply, allowing the circuit to function normally.
- If the incorrect password is entered, the Arduino board sends a low signal to the relay module, which triggers the normally closed (NC) contact.
- The NC contact breaks the connection between the load circuit and the power supply, interrupting the circuit.
Code
Here is the Arduino code:
const int relayPin = 2; // Pin 2 for relay module
const int passwordLength = 4; // Length of the password
const char password[] = "1234"; // Correct password
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
int i;
char input[passwordLength];
// Read input from user
for (i = 0; i < passwordLength; i++) {
input[i] = Serial.read();
}
// Check if input matches password
if (strcmp(input, password) == 0) {
// Send high signal to relay module
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
digitalWrite(relayPin, LOW);
} else {
// Send low signal to relay module
digitalWrite(relayPin, LOW);
}
}
Conclusion
In this project, we built a simple password circuit breaker using an Arduino board and a relay module. The circuit breaker is triggered when the correct password is not entered within a certain time limit. This project can be used in various applications, such as securing a door or a room.
Note
This is a basic project, and you may want to add more features, such as:
- Increasing the password length
- Adding a delay between attempts
- Using a more secure encryption method
- Adding a reset button
Remember to always follow proper safety precautions when working with electricity.